public class ConfiguredControl extends ConfiguredWidget
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CONTROL_TYPE_CHECK_BOX
Check box control type.
|
static java.lang.String | CONTROL_TYPE_COMBO
Combo control type.
|
static java.lang.String | CONTROL_TYPE_COMPOSITE
Composite control type.
|
static java.lang.String | CONTROL_TYPE_EXPANDABLE_COMPOSITE
Expandable composite control type.
|
static java.lang.String | CONTROL_TYPE_GROUP
Group control type.
|
static java.lang.String | CONTROL_TYPE_LABEL
Label control type.
|
static java.lang.String | CONTROL_TYPE_LIST
List control type.
|
static java.lang.String | CONTROL_TYPE_PUSH_BUTTON
Push button control type.
|
static java.lang.String | CONTROL_TYPE_RADIO_BUTTON
Radio button control type.
|
static java.lang.String | CONTROL_TYPE_READ_ONLY_TEXT
Text control type.
|
static java.lang.String | CONTROL_TYPE_REQUIRED_LABEL
Required label control type.
|
static java.lang.String | CONTROL_TYPE_SCROLLED_COMPOSITE
Scrolled composite control type.
|
static java.lang.String | CONTROL_TYPE_SEPARATOR
Separator control type.
|
static java.lang.String | CONTROL_TYPE_STYLED_TEXT
Styled Text control type.
|
static java.lang.String | CONTROL_TYPE_TAB_FOLDER
Tab folder control type.
|
static java.lang.String | CONTROL_TYPE_TABLE
Table button control type.
|
static java.lang.String | CONTROL_TYPE_TEXT
Text control type.
|
static java.lang.String | CONTROL_TYPE_TEXT_AREA
Text area control type.
|
static java.lang.String | PROP_DEFAULT_VALUE
Default value property.
|
static java.lang.String | PROP_DESELECTED_VALUE
Deselected value property.
|
static java.lang.String | PROP_DIRTY
Dirty property.
|
static java.lang.String | PROP_FIELD_ID
Field ID property.
|
static java.lang.String | PROP_LABEL_CONTROL
Label control property.
|
static java.lang.String | PROP_LIST
List property.
|
static java.lang.String | PROP_LIST_VALUES
List values property.
|
static java.lang.String | PROP_REPEATABLE_FRAGMENT_PROPERTIES
Repeatable fragment properties property.
|
static java.lang.String | PROP_SAVE_ON_MODIFY
Save on modify property.
|
static java.lang.String | PROP_SELECTED_VALUE
Selected value property.
|
static java.lang.String | PROP_SET_FOCUS
Set focus control property.
|
static java.lang.String | PROP_TREE_PATH
Tree path property.
|
static java.lang.String | PROP_TYPE
Type property.
|
static java.lang.String | PROP_USER_DATA
User data property.
|
Constructor and Description |
---|
ConfiguredControl(java.lang.String id, org.eclipse.swt.widgets.Control control, java.util.Map properties)
Constructs a new instance of this class given its ID and the constructed control.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.widgets.Control | getControl()
Returns the control.
|
java.lang.String | getDefaultValue()
Returns the default value for this control.
|
java.lang.String | getDeselectedValue()
Returns the value for this control when it is deselected.
|
java.lang.String | getFieldId()
Get the field ID.
|
ConfiguredControl | getLabelControl()
Get the label control for this configured control.
|
java.lang.String[] | getListValues()
Returns the list values.
|
java.lang.String | getModelPath()
Gets the model path for this control.
|
ConfiguredComposite | getParent()
Returns the parent configured composite.
|
ModelObject | getRepeatableFragmentProperties()
Get the repeatable fragment properties.
|
boolean | getSaveOnModify()
Returns true if modifications to this control should be saved immediately.
|
java.lang.String | getSelectedValue()
Returns the value for this control when it is selected.
|
boolean | getSetFocus()
Returns true if this control should receive the focus.
|
java.lang.String | getTreePath()
Get the tree path.
|
java.lang.String | getType()
Gets the configured control type.
|
boolean | getUserData()
Returns true if this is a "user data" field.
|
org.eclipse.jface.dialogs.IInputValidator | getValidator()
Returns the input validator .
|
boolean | isDirty()
Returns true if this configured control has been modified by the user since the last save.
|
void | setControl(org.eclipse.swt.widgets.Control control)
Sets the control.
|
void | setDefaultValue(java.lang.String defaultValue)
Sets the default value.
|
void | setDeselectedValue(java.lang.String deselectedValue)
Set the deselected value.
|
void | setDirty(boolean dirty)
Sets the flag that indicates that this configured control has been changed since the last save.
|
void | setFieldId(java.lang.String fieldId)
Set the field ID.
|
void | setLabelControl(ConfiguredControl labelControl)
Set the label control for this configured control.
|
void | setListValues(java.lang.String[] listValues)
Set the list values
|
void | setParent(ConfiguredComposite parent)
Set the parent configured composite.
|
void | setRepeatableFragmentProperties(ModelObject repeatableFragmentProperties)
Set the repeatable fragment properties.
|
void | setSaveOnModify(boolean saveOnModify)
Set the save on modify property.
|
void | setSelectedValue(java.lang.String selectedValue)
Set the selected value.
|
void | setSetFocus(boolean setFocus)
Set the set focus property.
|
void | setType(java.lang.String type)
Set the control type.
|
void | setUserData(boolean userData)
Set the user data property.
|
void | setValidator(org.eclipse.jface.dialogs.IInputValidator validator)
Sets the input validator .
|
public static final java.lang.String PROP_TYPE
public static final java.lang.String PROP_USER_DATA
public static final java.lang.String PROP_LIST
public static final java.lang.String PROP_LIST_VALUES
public static final java.lang.String PROP_SELECTED_VALUE
public static final java.lang.String PROP_DESELECTED_VALUE
public static final java.lang.String PROP_DEFAULT_VALUE
public static final java.lang.String PROP_DIRTY
public static final java.lang.String PROP_FIELD_ID
public static final java.lang.String PROP_LABEL_CONTROL
public static final java.lang.String PROP_SET_FOCUS
public static final java.lang.String PROP_REPEATABLE_FRAGMENT_PROPERTIES
public static final java.lang.String PROP_TREE_PATH
public static final java.lang.String PROP_SAVE_ON_MODIFY
public static final java.lang.String CONTROL_TYPE_TEXT
public static final java.lang.String CONTROL_TYPE_TEXT_AREA
public static final java.lang.String CONTROL_TYPE_READ_ONLY_TEXT
public static final java.lang.String CONTROL_TYPE_STYLED_TEXT
public static final java.lang.String CONTROL_TYPE_LABEL
public static final java.lang.String CONTROL_TYPE_REQUIRED_LABEL
public static final java.lang.String CONTROL_TYPE_COMBO
public static final java.lang.String CONTROL_TYPE_LIST
public static final java.lang.String CONTROL_TYPE_PUSH_BUTTON
public static final java.lang.String CONTROL_TYPE_CHECK_BOX
public static final java.lang.String CONTROL_TYPE_RADIO_BUTTON
public static final java.lang.String CONTROL_TYPE_TABLE
public static final java.lang.String CONTROL_TYPE_COMPOSITE
public static final java.lang.String CONTROL_TYPE_GROUP
public static final java.lang.String CONTROL_TYPE_SEPARATOR
public static final java.lang.String CONTROL_TYPE_SCROLLED_COMPOSITE
public static final java.lang.String CONTROL_TYPE_TAB_FOLDER
public static final java.lang.String CONTROL_TYPE_EXPANDABLE_COMPOSITE
public ConfiguredControl(java.lang.String id, org.eclipse.swt.widgets.Control control, java.util.Map properties)
public org.eclipse.swt.widgets.Control getControl()
public void setControl(org.eclipse.swt.widgets.Control control)
public java.lang.String getType()
public void setType(java.lang.String type)
public ConfiguredComposite getParent()
public void setParent(ConfiguredComposite parent)
public boolean getUserData()
public void setUserData(boolean userData)
public java.lang.String[] getListValues()
public void setListValues(java.lang.String[] listValues)
public java.lang.String getSelectedValue()
public void setSelectedValue(java.lang.String selectedValue)
public java.lang.String getDeselectedValue()
public void setDeselectedValue(java.lang.String deselectedValue)
public java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String defaultValue)
public boolean isDirty()
public void setDirty(boolean dirty)
public org.eclipse.jface.dialogs.IInputValidator getValidator()
public void setValidator(org.eclipse.jface.dialogs.IInputValidator validator)
public java.lang.String getFieldId()
public void setFieldId(java.lang.String fieldId)
public ConfiguredControl getLabelControl()
public void setLabelControl(ConfiguredControl labelControl)
public boolean getSetFocus()
public void setSetFocus(boolean setFocus)
public ModelObject getRepeatableFragmentProperties()
public void setRepeatableFragmentProperties(ModelObject repeatableFragmentProperties)
public java.lang.String getModelPath()
public java.lang.String getTreePath()
public boolean getSaveOnModify()
public void setSaveOnModify(boolean saveOnModify)