public interface PropertyControl
Modifier and Type | Method and Description |
---|---|
void |
dataModelUpdated(DataModel dataModel)
Called to notify the control that the data model seen by the control is updated.
|
void |
disposeControl()
Called to notify the control that the window which contains the control is
being destroyed.
|
java.lang.Object |
getControlValue()
Returns the current value of the control.
|
javax.swing.JComponent |
getUIComponent()
Returns the UI object that will be used to display the property
control component.
|
void |
initControl(java.lang.String property,
ExtensionObjectWindowHandle windowHandle,
ManagedSession managedSession)
This is the first method to be called on the control after
the property control instance has been created.
|
boolean |
isControlEnabled()
Returns the enabled state of the control.
|
void |
setControlEnabled(boolean value)
Called to notify the control that the enabled state of the control should be changed.
|
void |
setControlValue(java.lang.Object value)
Sets the current value of the control.
|
void initControl(java.lang.String property, ExtensionObjectWindowHandle windowHandle, ManagedSession managedSession)
property
- the property declared in the spec file that this control
is associated withwindowHandle
- the handle of the window that will contain this controlmanagedSession
- the ManagedSessionjavax.swing.JComponent getUIComponent()
java.lang.Object getControlValue()
String
Integer
Double
Boolean
Date
void setControlValue(java.lang.Object value)
String
Integer
Double
Boolean
Date
Custom controls for "enum" values are not currently supported.
value
- the value to be displayed in the controlvoid setControlEnabled(boolean value)
value
- true
if the control should be enabled, false
if notboolean isControlEnabled()
void dataModelUpdated(DataModel dataModel)
dataModel
- the updated data modelvoid disposeControl()
(C) Copyright IBM Corp. 1994, 2015. All Rights Reserved.