public class StandardWidgetManager extends AbstractWidgetManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.String | MANAGER_TYPE_STANDARD
Standard manager type.
|
static java.lang.String | VERIFY_LISTENER_TYPE_INTEGER
IntegerVerify listener type.
|
static java.lang.String | VERIFY_LISTENER_TYPE_LONG_INTEGER
LongIntegerVerify listener type.
|
Constructor and Description |
---|
StandardWidgetManager()
Construct a new standard widget manager.
|
Modifier and Type | Method and Description |
---|---|
void | clearControl(ConfiguredControl configuredControl)
This method clears a control (this method is supported for text, combo and checkbox).
|
java.lang.Integer | compare(ConfiguredTableColumn tableColumn, java.lang.Object element1, java.lang.Object element2)
This method returns a negative, zero, or positive number depending on whether the first element is less than, equal to, or greater than the second element.
|
java.lang.Integer | compare(com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn treeColumn, java.lang.Object element1, java.lang.Object element2)
This method returns a negative, zero, or positive number depending on whether the first element is less than, equal to, or greater than the second element.
|
void | dispose()
This method disposes of widget manager resources.
|
void | disposeControl(ConfiguredControl configuredControl)
Dispose the specified control.
|
void | disposeTableColumn(ConfiguredTableColumn configuredTableColumn)
This method disposes the table column.
|
void | disposeTreeColumn(com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn configuredTreeColumn)
This method disposes the tree column.
|
java.lang.Object | getColumnCellValue(java.lang.Object element, ConfiguredTableColumn tableColumn)
This method returns the value for the given table column cell of the given element.
|
protected void | getColumnStatusMessage(ConfiguredTableColumn activeChild)
This method gets the status message for the active table column from cell validator and sets it to configured table column.
|
protected boolean | getControlHasRequiredInput(ConfiguredControl configuredControl)
This method returns true if the specified control has its required input for the specified action.
|
protected org.eclipse.core.runtime.IStatus | getControlStatusMessage(ConfiguredControl configuredControl)
This method returns the status message for the control.
|
java.lang.Object | getModelProperty(ModelObject modelObject, java.lang.String modelPath)
This method parses the model path and return the model property.
|
java.lang.Object | getModelProperty(java.lang.String modelPath)
This method parses the model path and return the model property.
|
java.lang.Object | getModelProperty(java.lang.String modelPath, java.lang.Object defaultValue)
This method parses the model path and return the model property.
|
protected boolean | getTableColumnHasRequiredInput(ConfiguredTableColumn activeTableColumn)
This method returns true if the specified table column cell has its required input for the specified action.
|
java.lang.String | getTableColumnText(java.lang.Object element, ConfiguredTableColumn tableColumn)
This method returns the table cell text for the specified row element and column.
|
java.lang.String | getTreeColumnText(java.lang.Object element, com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn treeColumn)
This method returns the tree cell text for the specified row element and column.
|
void | init(ConfiguredComposite configuredComposite, WidgetManagerInputProperties inputProperties)
This method initializes the standard widget manager.
|
void | initControl(ConfiguredControl configuredControl)
This method initializes the specified control.
|
void | initTableColumn(ConfiguredTableColumn configuredTableColumn)
This method initializes the table column.
|
void | initTreeColumn(com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn configuredTreeColumn)
This method initializes the tree column.
|
protected boolean | isControlDirty(ConfiguredControl configuredControl)
This method checks to see if the specified configured control has been modified since the last save.
|
boolean | isFocusCandidate(ConfiguredControl configuredControl)
This method returns true if the specified control can receive focus.
|
void | refreshControl(ConfiguredControl configuredControl)
This method refreshes the specified control base on information found in the widget manager's input properties.
|
void | refreshControlDirty(ConfiguredControl configuredControl)
This method refreshes the dirty state for the specified configured control.
|
void | saveColumnText(java.lang.Object element, ConfiguredTableColumn tableColumn, java.lang.Object value)
This method saves the contents of the column.
|
void | saveControl(ConfiguredControl configuredControl)
This method saves the contents of the specified configured control.
|
void | storeModelProperty(java.lang.String modelPath, java.lang.Object value, boolean userData)
This method stores the specified property in the input properties using the specified path.
|
java.lang.Object | updateColumnProperty(java.lang.String modelPath, java.lang.Object value, java.lang.Object model)
This method stores the specified property in the input properties using the specified path.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String MANAGER_TYPE_STANDARD
public static final java.lang.String VERIFY_LISTENER_TYPE_INTEGER
public static final java.lang.String VERIFY_LISTENER_TYPE_LONG_INTEGER
public StandardWidgetManager()
public void init(ConfiguredComposite configuredComposite, WidgetManagerInputProperties inputProperties)
public void dispose()
public void initControl(ConfiguredControl configuredControl)
public void disposeControl(ConfiguredControl configuredControl)
public void initTableColumn(ConfiguredTableColumn configuredTableColumn)
public void initTreeColumn(com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn configuredTreeColumn)
public void disposeTableColumn(ConfiguredTableColumn configuredTableColumn)
public void disposeTreeColumn(com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn configuredTreeColumn)
protected boolean isControlDirty(ConfiguredControl configuredControl)
protected org.eclipse.core.runtime.IStatus getControlStatusMessage(ConfiguredControl configuredControl)
protected void getColumnStatusMessage(ConfiguredTableColumn activeChild)
protected boolean getControlHasRequiredInput(ConfiguredControl configuredControl)
protected boolean getTableColumnHasRequiredInput(ConfiguredTableColumn activeTableColumn)
public void refreshControl(ConfiguredControl configuredControl)
public java.lang.Object getModelProperty(java.lang.String modelPath)
public java.lang.Object getModelProperty(java.lang.String modelPath, java.lang.Object defaultValue)
public java.lang.Object getModelProperty(ModelObject modelObject, java.lang.String modelPath)
public void storeModelProperty(java.lang.String modelPath, java.lang.Object value, boolean userData)
public void saveControl(ConfiguredControl configuredControl)
public void refreshControlDirty(ConfiguredControl configuredControl)
public boolean isFocusCandidate(ConfiguredControl configuredControl)
public java.lang.String getTableColumnText(java.lang.Object element, ConfiguredTableColumn tableColumn)
public java.lang.String getTreeColumnText(java.lang.Object element, com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn treeColumn)
public java.lang.Object getColumnCellValue(java.lang.Object element, ConfiguredTableColumn tableColumn)
public void saveColumnText(java.lang.Object element, ConfiguredTableColumn tableColumn, java.lang.Object value)
public java.lang.Object updateColumnProperty(java.lang.String modelPath, java.lang.Object value, java.lang.Object model)
public java.lang.Integer compare(ConfiguredTableColumn tableColumn, java.lang.Object element1, java.lang.Object element2)
public java.lang.Integer compare(com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn treeColumn, java.lang.Object element1, java.lang.Object element2)
public void clearControl(ConfiguredControl configuredControl)