org.browsecode.helpers.display
Class MethodPair
java.lang.Object
org.browsecode.helpers.display.BasicCanAddPropertyChangeListener
org.browsecode.helpers.display.MethodPair
- All Implemented Interfaces:
- BasicObject, BasicProperty, CanAddPropertyChangeListener, HasName
public class MethodPair
- extends BasicCanAddPropertyChangeListener
- implements BasicObject, BasicProperty
Constructor Summary |
MethodPair(java.lang.reflect.Method getMethod,
java.lang.reflect.Method setMethod,
java.lang.Object theObject)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getMethod
public java.lang.reflect.Method getMethod
setMethod
public java.lang.reflect.Method setMethod
MethodPair
public MethodPair(java.lang.reflect.Method getMethod,
java.lang.reflect.Method setMethod,
java.lang.Object theObject)
initName
public void initName()
arePair
protected static boolean arePair(java.lang.reflect.Method getMethod,
java.lang.reflect.Method setMethod)
canUseSetMethod
public boolean canUseSetMethod(java.lang.reflect.Method setMethod)
canUseGetMethod
public boolean canUseGetMethod(java.lang.reflect.Method getMethod)
setSetMethod
public void setSetMethod(java.lang.reflect.Method setMethod)
setGetMethod
public void setGetMethod(java.lang.reflect.Method getMethod)
getGetMethod
public java.lang.reflect.Method getGetMethod()
getSetMethod
public java.lang.reflect.Method getSetMethod()
set
public java.lang.Object set(java.lang.Object o)
- Specified by:
set
in interface BasicProperty
get
public java.lang.Object get()
- Specified by:
get
in interface BasicProperty
getEditor
public java.awt.Component getEditor()
- Specified by:
getEditor
in interface BasicObject
refresh
public void refresh()
- Specified by:
refresh
in interface BasicObject
getName
public java.lang.String getName()
- Specified by:
getName
in interface HasName
setName
public void setName(java.lang.String name)
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface BasicProperty
setDescription
public void setDescription(java.lang.String description)