org.browsecode.helpers.display
Class MethodPair

java.lang.Object
  extended by org.browsecode.helpers.display.BasicCanAddPropertyChangeListener
      extended by org.browsecode.helpers.display.MethodPair
All Implemented Interfaces:
BasicObject, BasicProperty, CanAddPropertyChangeListener, HasName

public class MethodPair
extends BasicCanAddPropertyChangeListener
implements BasicObject, BasicProperty


Field Summary
 java.lang.reflect.Method getMethod
           
 java.lang.reflect.Method setMethod
           
 
Constructor Summary
MethodPair(java.lang.reflect.Method getMethod, java.lang.reflect.Method setMethod, java.lang.Object theObject)
           
 
Method Summary
protected static boolean arePair(java.lang.reflect.Method getMethod, java.lang.reflect.Method setMethod)
           
 boolean canUseGetMethod(java.lang.reflect.Method getMethod)
           
 boolean canUseSetMethod(java.lang.reflect.Method setMethod)
           
 java.lang.Object get()
           
 java.lang.String getDescription()
           
 java.awt.Component getEditor()
           
 java.lang.reflect.Method getGetMethod()
           
 java.lang.String getName()
           
 java.lang.reflect.Method getSetMethod()
           
 void initName()
           
 void refresh()
           
 java.lang.Object set(java.lang.Object o)
           
 void setDescription(java.lang.String description)
           
 void setGetMethod(java.lang.reflect.Method getMethod)
           
 void setName(java.lang.String name)
           
 void setSetMethod(java.lang.reflect.Method setMethod)
           
 
Methods inherited from class org.browsecode.helpers.display.BasicCanAddPropertyChangeListener
addPropertyChangeListener, firePropertyChanged, firePropertyChanged, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.browsecode.helpers.display.CanAddPropertyChangeListener
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

getMethod

public java.lang.reflect.Method getMethod

setMethod

public java.lang.reflect.Method setMethod
Constructor Detail

MethodPair

public MethodPair(java.lang.reflect.Method getMethod,
                  java.lang.reflect.Method setMethod,
                  java.lang.Object theObject)
Method Detail

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)