public abstract class ControlDescriptor extends WidgetDescriptor
Modifier and Type | Field and Description |
---|---|
static java.lang.String | ALIGN_LEAD
Lead text alignment property.
|
static java.lang.String | ALIGN_NONE
No Wrap text alignment property.
|
static java.lang.String | ALIGN_TRAIL
Trail text alignment property.
|
static java.lang.String | ALIGN_WRAP
Wrap text alignment property.
|
static java.lang.String | ATT_ACTIVITY_ID
Value attribute.
|
static java.lang.String | ATT_BACKGROUND
Background attribute.
|
static java.lang.String | ATT_BORDER
Border attribute.
|
static java.lang.String | ATT_CHECK
Check attribute.
|
static java.lang.String | ATT_CHILD_CONTROL_ID
Child control ID attribute.
|
static java.lang.String | ATT_COMPOSITE_DEFINITION_ID
Composite definition ID attribute.
|
static java.lang.String | ATT_DEFAULT_VALUE
Default value attribute.
|
static java.lang.String | ATT_DESELECTED_VALUE
Deselected value attribute.
|
static java.lang.String | ATT_EDITABLE
Editable attribute.
|
static java.lang.String | ATT_ENABLED
Enabled attribute.
|
static java.lang.String | ATT_FIELD_ID
Field ID attribute.
|
static java.lang.String | ATT_FONT
Font attribute.
|
static java.lang.String | ATT_FOREGROUND
Foreground attribute.
|
static java.lang.String | ATT_ID
ID attribute name.
|
static java.lang.String | ATT_IMAGE_PATH
Image path attribute.
|
static java.lang.String | ATT_LABEL
Label attribute.
|
static java.lang.String | ATT_MANAGER_TYPE
Manager type attribute.
|
static java.lang.String | ATT_MODEL_PATH
Model path attribute.
|
static java.lang.String | ATT_MULTI
Multiple selection attribute.
|
static java.lang.String | ATT_REFERENCE_ID
Reference ID attribute.
|
static java.lang.String | ATT_REQUIRED
Required attribute.
|
static java.lang.String | ATT_SELECTED_VALUE
Selected value attribute.
|
static java.lang.String | ATT_SELECTION
Selection attribute.
|
static java.lang.String | ATT_SINGLE
Single selection attribute.
|
static java.lang.String | ATT_TAB_FOLDER_DEFINITION_ID
Tab folder definition ID attribute.
|
static java.lang.String | ATT_TABLE_DEFINITION_ID
Table definition ID attribute.
|
static java.lang.String | ATT_TEXT
Type attribute name.
|
static java.lang.String | ATT_TEXT_ALIGNMENT
Text alignment attribute.
|
static java.lang.String | ATT_TEXT_LIMIT
Text limit attribute.
|
static java.lang.String | ATT_TOOLTIP
Tooltip attribute.
|
static java.lang.String | ATT_TREE_DEFINITION_ID
Tree definition ID attribute.
|
static java.lang.String | ATT_TYPE
Type attribute name.
|
static java.lang.String | ATT_USER_DATA
User data attribute name.
|
static java.lang.String | ATT_VALIDATOR_TYPE
ATT_VALIDATOR_TYPE property.
|
static java.lang.String | ATT_VERIFY_LISTENER_TYPE
Verify listener type attribute.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.String | TAG_CONTROL
Control element name.
|
Constructor and Description |
---|
ControlDescriptor(java.lang.String controlId, org.eclipse.core.runtime.IConfigurationElement element, ControlDescriptor referenceDescriptor)
Construct a new control descriptor.
|
Modifier and Type | Method and Description |
---|---|
abstract ConfiguredControl | createConfiguredControl(org.eclipse.swt.widgets.Composite parent, ResolverContext resolverContext)
Creates a new configured control that matches the configuration in this descriptor.
|
java.lang.String | getActivityId()
Returns the activity ID.
|
org.eclipse.swt.graphics.Color | getBackground()
Returns the background color for this control.
|
boolean | getBorder()
Returns true if this control should have a border.
|
boolean | getCheck()
Returns true if this control has the check style.
|
java.lang.String | getChildControlId()
Returns the child control ID property.
|
java.lang.String | getCompositeDefinitionId()
Returns the composite definition ID property.
|
java.lang.String | getControlId()
Returns the control's unique ID.
|
java.lang.String | getDefaultValue()
Returns the default values for this control.
|
boolean | getEditable()
Returns true if this is an editable field.
|
boolean | getEnabled()
Returns true if this field should be enabled.
|
java.lang.String | getFieldId()
Returns the field ID property.
|
java.lang.String | getFont()
Returns the font property.
|
org.eclipse.swt.graphics.Color | getForeground()
Returns the foreground color for this control.
|
java.lang.String | getImagePath()
Returns the image path of the image to be displayed by control.
|
java.lang.String | getLabel()
Returns the label property.
|
java.lang.String[] | getList()
Returns the list of items associated with this control.
|
java.lang.String[] | getListValues()
Returns the list of values associated with the list items.
|
boolean | getMulti()
Returns true if this control should allow multiple selection.
|
java.lang.String | getReferenceId()
Returns the reference ID property.
|
boolean | getRequired()
Returns true if this is a required field.
|
boolean | getSelection()
Returns true if this field should be selected.
|
boolean | getSingle()
Returns true if this control should allow single selection.
|
java.lang.String | getTabFolderDefinitionId()
Returns the tab folder definition ID property.
|
java.lang.String | getTableDefinitionId()
Returns the table definition ID property.
|
java.lang.String | getText()
Returns the text property.
|
java.lang.String | getTextAlignment()
Returns the text alignment for this control.
|
int | getTextLimit()
Returns the text limit for this control.
|
java.lang.String | getTooltip()
Returns the resource key for the tooltip text.
|
java.lang.String | getTreeDefinitionId()
Returns the tree definition ID property.
|
java.lang.String | getType()
Returns the control type.
|
boolean | isActivityEnabled()
Returns whether the controls activity ID is enabled.
|
void | setControlId(java.lang.String id)
Sets the control's ID.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String TAG_CONTROL
public static final java.lang.String ATT_ID
public static final java.lang.String ATT_TYPE
public static final java.lang.String ATT_TEXT
public static final java.lang.String ATT_TOOLTIP
public static final java.lang.String ATT_FONT
public static final java.lang.String ATT_MODEL_PATH
public static final java.lang.String ATT_REQUIRED
public static final java.lang.String ATT_FIELD_ID
public static final java.lang.String ATT_MANAGER_TYPE
public static final java.lang.String ATT_USER_DATA
public static final java.lang.String ATT_EDITABLE
public static final java.lang.String ATT_ENABLED
public static final java.lang.String ATT_SELECTION
public static final java.lang.String ATT_REFERENCE_ID
public static final java.lang.String ATT_LABEL
public static final java.lang.String ATT_COMPOSITE_DEFINITION_ID
public static final java.lang.String ATT_CHILD_CONTROL_ID
public static final java.lang.String ATT_TABLE_DEFINITION_ID
public static final java.lang.String ATT_TREE_DEFINITION_ID
public static final java.lang.String ATT_TAB_FOLDER_DEFINITION_ID
public static final java.lang.String ATT_MULTI
public static final java.lang.String ATT_SINGLE
public static final java.lang.String ATT_CHECK
public static final java.lang.String ATT_VALIDATOR_TYPE
public static final java.lang.String ATT_ACTIVITY_ID
public static final java.lang.String ATT_SELECTED_VALUE
public static final java.lang.String ATT_DESELECTED_VALUE
public static final java.lang.String ATT_VERIFY_LISTENER_TYPE
public static final java.lang.String ATT_DEFAULT_VALUE
public static final java.lang.String ATT_TEXT_LIMIT
public static final java.lang.String ATT_TEXT_ALIGNMENT
public static final java.lang.String ATT_BACKGROUND
public static final java.lang.String ATT_FOREGROUND
public static final java.lang.String ATT_IMAGE_PATH
public static final java.lang.String ATT_BORDER
public static final java.lang.String ALIGN_TRAIL
public static final java.lang.String ALIGN_WRAP
public static final java.lang.String ALIGN_NONE
public static final java.lang.String ALIGN_LEAD
public ControlDescriptor(java.lang.String controlId, org.eclipse.core.runtime.IConfigurationElement element, ControlDescriptor referenceDescriptor)
public java.lang.String getControlId()
public void setControlId(java.lang.String id)
public java.lang.String getType()
public java.lang.String getText()
public java.lang.String getTooltip()
public java.lang.String getFont()
public java.lang.String getFieldId()
public boolean getRequired()
public boolean getEditable()
public boolean getEnabled()
public boolean getSelection()
public java.lang.String getReferenceId()
public java.lang.String getLabel()
public java.lang.String getCompositeDefinitionId()
public java.lang.String getChildControlId()
public java.lang.String getTableDefinitionId()
public java.lang.String getTreeDefinitionId()
public java.lang.String getTabFolderDefinitionId()
public boolean getMulti()
public boolean getSingle()
public boolean getCheck()
public java.lang.String getActivityId()
public boolean isActivityEnabled()
public java.lang.String[] getList()
public java.lang.String[] getListValues()
public java.lang.String getDefaultValue()
public int getTextLimit()
public java.lang.String getTextAlignment()
public org.eclipse.swt.graphics.Color getBackground()
public org.eclipse.swt.graphics.Color getForeground()
public java.lang.String getImagePath()
public boolean getBorder()
public abstract ConfiguredControl createConfiguredControl(org.eclipse.swt.widgets.Composite parent, ResolverContext resolverContext)