| net.sf.jmoney.model2.IPropertyControl
All known Subclasses: net.sf.jmoney.stocks.RatesEditor, net.sf.jmoney.fields.CurrencyEditor, net.sf.jmoney.fields.AccountEditor, net.sf.jmoney.reconciliation.StatusEditor, net.sf.jmoney.fields.CheckMarkEditor, net.sf.jmoney.fields.DateEditor, net.sf.jmoney.fields.AmountEditor, net.sf.jmoney.fields.TextEditor,
IPropertyControl | public interface IPropertyControl (Code) | | Interface into a control that edits a property value.
All registered properties must include an implementation
of the IPropertyControlFactory interface. This interface
contains the createPropertyControl method which is called
to create a Control that can edit the property.
The Control is wrapped in an IPropertyControl
implementation that handles the movement of data between the
property and the control.
See Also: IPropertyControlFactory See Also: org.eclipse.swt.widgets.Control author: Nigel Westbury author: Johann Gyger |
Method Summary | |
Control | getControl() This method gives access to the underlying control.
Do not use this method to get the control for the
purposes of getting and setting property values
to and from the control. | void | load(ExtendableObject object) Load the value into the control. | void | save() This method takes the data in the control and sets it
into the datastore. |
getControl | Control getControl()(Code) | | This method gives access to the underlying control.
Do not use this method to get the control for the
purposes of getting and setting property values
to and from the control. Instead use the methods in
this interface. Use this method to get the control
for the purpose of adding focus listeners and other
such functionality.
The underlying control. |
load | void load(ExtendableObject object)(Code) | | Load the value into the control. If the
object is null then the control must both have its
value blanked out and be disabled.
Parameters: object - The object that contains the value ofthe property. |
save | void save()(Code) | | This method takes the data in the control and sets it
into the datastore. This method must be called before
a control is destroyed, otherwise data entered by the user
may not be saved.
Some controls will save data in response to user edits.
Combo boxes typically do this. Other controls, such as
text boxes, do not.
|
|
|