|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface defining what a ComponentDelegate used by the wt.clients.beans.AttributesForm
must implement.
Supported API: true
Extendable: true
Method Summary | |
void |
addObjectPropertyChangeListener(PropertyChangeListener listener)
Add a property change listener which should be notified when the attribute value changes in the component. |
Component |
getComponent()
Return the component to be used. |
Dimension |
getComponentPreferredGridSize()
Return the preferred grid size of the component. |
Object |
getObject()
|
Object |
getValue()
Return the current value for the attribute as contained in the component used to display the attribute value. |
boolean |
hasOwnLabel()
Returns true if the component supplies its own label and one should not be created for it by the AttributesForm. |
boolean |
isDirect()
Return true if the ComponentDelegate works directly with the object containing the attribute, instead of with the individual attribute. |
boolean |
isDirty()
Return true if the value of the attribute has been modified in user interface. |
void |
removeObjectPropertyChangeListener(PropertyChangeListener listener)
Remove a property change listener. |
void |
setComponentContext(ComponentContext context)
Set the context for the component. |
void |
setObject(Object object)
|
void |
setPropertyDescriptor(PropertyDescriptor descriptor)
Sets the property descriptor for the attribute. |
void |
setValue(Object value)
Sets the current value for the attribute. |
Method Detail |
public Component getComponent()
public boolean isDirect()
public boolean isDirty()
public Object getValue() throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public void setValue(Object value) throws WTException
value
-
WTException
public Object getObject() throws WTException
WTException
public void setObject(Object object) throws WTException
object
-
WTException
public void setPropertyDescriptor(PropertyDescriptor descriptor)
descriptor
- public void setComponentContext(ComponentContext context)
context
- public boolean hasOwnLabel()
public Dimension getComponentPreferredGridSize()
public void addObjectPropertyChangeListener(PropertyChangeListener listener)
listener
- public void removeObjectPropertyChangeListener(PropertyChangeListener listener)
listener
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |