public interface IField
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.widgets.Composite |
getComposite()
Gets the top most container control of the field which must be a
Composite . |
org.eclipse.swt.widgets.Control |
getControl()
Gets the control in charge of displaying/editing the field value.
|
IFormFieldData |
getModel()
Gets the IfieldData model of this field.
|
void |
layout(org.eclipse.swt.widgets.Label label,
org.eclipse.swt.widgets.Control control,
org.eclipse.ui.forms.widgets.ImageHyperlink helpButton)
Layouts the label, edition control and help button in their container (
getComposite() )
This method can be redefined by subclasses who need to change the standard layout for label, control and help button.When it is called default LayoutData have already been applied to the widgets so that this method can typically either modify or replace the existing LayoutData of the widgets. |
void |
refresh()
Refresh the value displayed by the field.
|
void |
setEditable(boolean onoff) |
void |
setHelpText(String s)
Set the text to be displayed in the help field of the control.
|
void |
setModel(IFormFieldData data) |
void layout(org.eclipse.swt.widgets.Label label, org.eclipse.swt.widgets.Control control, org.eclipse.ui.forms.widgets.ImageHyperlink helpButton)
getComposite()
)
This method can be redefined by subclasses who need to change the standard layout for label, control and help button.label
- control
- helpButton
- org.eclipse.swt.widgets.Composite getComposite()
Composite
.org.eclipse.swt.widgets.Control getControl()
void setHelpText(String s)
s
- void refresh()
void setEditable(boolean onoff)
IFormFieldData getModel()
void setModel(IFormFieldData data)