public interface IWidgetManager
Widget managers are declared using the "com.ibm.commerce.telesales.widgets.widgetManagers" extension point.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.String | EVENT_ID_CANCEL
This event is triggered when the user input is cancelled.
|
static java.lang.String | EVENT_ID_INPUT_MODIFIED
This event is triggered when a control's input data is modified.
|
static java.lang.String | EVENT_ID_REFRESH
This event is triggered when the managed composite needs to be refreshed.
|
static java.lang.String | EVENT_ID_SAVE
This event is triggered when the user input needs to be saved.
|
static java.lang.String | EVENT_ID_SET_FOCUS_INVALID
This event is triggered when the focus needs to be recalculated.
|
Modifier and Type | Method and Description |
---|---|
void | activate()
Handle activation.
|
void | addWidgetManagerListener(IWidgetManagerListener widgetManagerListener)
Adds a listener for events triggered by this widget manager.
|
java.lang.Boolean | canModify(java.lang.Object element, ConfiguredTableColumn tableColumn, ConfiguredTable configuredTable)
Checks whether the given property of the given element can be modified.
|
java.lang.Integer | compare(ConfiguredTableColumn tableColumn, java.lang.Object element1, java.lang.Object element2)
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 | deactivate()
Handle deactivation.
|
void | dispose()
Dispose of resources created by this widget manager.
|
void | disposeControl(ConfiguredControl configuredControl)
Dispose of the resources created for the specified control.
|
void | disposeTableColumn(ConfiguredTableColumn configuredTableColumn)
Dispose of the specified table column.
|
void | disposeTreeColumn(com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn configuredTreeColumn)
Dispose of the specified tree column.
|
java.lang.Object | getColumnCellValue(java.lang.Object element, ConfiguredTableColumn tableColumn)
Returns the value for the given table column cell of the given element.
|
org.eclipse.swt.graphics.Image | getTableColumnImage(java.lang.Object element, ConfiguredTableColumn tableColumn)
Returns the table column image for the specified row element and table column.
|
java.lang.String | getTableColumnText(java.lang.Object element, ConfiguredTableColumn tableColumn)
Returns the table column text for the specified row element and table column.
|
java.lang.Object | getTableDefaultElement(ConfiguredTable table)
Returns a default model object to populate the table.
|
org.eclipse.swt.graphics.Image | getTreeColumnImage(java.lang.Object element, com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn treeColumn)
Returns the tree column image for the specified row element and tree column.
|
java.lang.String | getTreeColumnText(java.lang.Object element, com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn treeColumn)
Returns the tree column text for the specified row element and tree column.
|
void | init(ConfiguredComposite configuredComposite, WidgetManagerInputProperties inputProperties)
Initialize this composite manager with the specified configured composite and input properties.
|
void | initControl(ConfiguredControl configuredControl)
Initialize the specified control.
|
void | initTableColumn(ConfiguredTableColumn configuredTableColumn)
Initialize the specified table column.
|
void | initTreeColumn(com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn configuredTreeColumn)
Initialize the specified tree column.
|
boolean | isFocusCandidate(ConfiguredControl configuredControl)
Returns true if the specified configured widget is available to receive focus.
|
void | refreshControl(ConfiguredControl configuredControl)
Refresh the specified configured control.
|
void | refreshControlDirty(ConfiguredControl configuredControl)
Refresh the dirty state for the specified control.
|
void | refreshTableColumn(ConfiguredTableColumn configuredTableColumn)
Refresh the specified configured table column.
|
void | refreshTreeColumn(com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn configuredTreeColumn)
Refresh the specified configured tree column.
|
void | removeWidgetManagerListener(IWidgetManagerListener widgetManagerListener)
Removes the given widget manager listener from this widget manager.
|
void | saveColumnText(java.lang.Object element, ConfiguredTableColumn tableColumn, java.lang.Object value)
Saves the contents of the column.
|
void | saveControl(ConfiguredControl configuredControl)
Save the content of configured control.
|
static final java.lang.String COPYRIGHT
static final java.lang.String EVENT_ID_INPUT_MODIFIED
static final java.lang.String EVENT_ID_SAVE
static final java.lang.String EVENT_ID_CANCEL
static final java.lang.String EVENT_ID_SET_FOCUS_INVALID
static final java.lang.String EVENT_ID_REFRESH
void init(ConfiguredComposite configuredComposite, WidgetManagerInputProperties inputProperties)
void initControl(ConfiguredControl configuredControl)
void disposeControl(ConfiguredControl configuredControl)
void dispose()
void activate()
void deactivate()
void refreshControl(ConfiguredControl configuredControl)
void addWidgetManagerListener(IWidgetManagerListener widgetManagerListener)
void removeWidgetManagerListener(IWidgetManagerListener widgetManagerListener)
void saveControl(ConfiguredControl configuredControl)
boolean isFocusCandidate(ConfiguredControl configuredControl)
java.lang.String getTableColumnText(java.lang.Object element, ConfiguredTableColumn tableColumn)
org.eclipse.swt.graphics.Image getTableColumnImage(java.lang.Object element, ConfiguredTableColumn tableColumn)
java.lang.String getTreeColumnText(java.lang.Object element, com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn treeColumn)
org.eclipse.swt.graphics.Image getTreeColumnImage(java.lang.Object element, com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn treeColumn)
java.lang.Integer compare(ConfiguredTableColumn tableColumn, java.lang.Object element1, java.lang.Object element2)
void refreshControlDirty(ConfiguredControl configuredControl)
void saveColumnText(java.lang.Object element, ConfiguredTableColumn tableColumn, java.lang.Object value)
void initTableColumn(ConfiguredTableColumn configuredTableColumn)
void initTreeColumn(com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn configuredTreeColumn)
void disposeTreeColumn(com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn configuredTreeColumn)
void disposeTableColumn(ConfiguredTableColumn configuredTableColumn)
java.lang.Object getTableDefaultElement(ConfiguredTable table)
java.lang.Object getColumnCellValue(java.lang.Object element, ConfiguredTableColumn tableColumn)
java.lang.Boolean canModify(java.lang.Object element, ConfiguredTableColumn tableColumn, ConfiguredTable configuredTable)
void refreshTableColumn(ConfiguredTableColumn configuredTableColumn)
void refreshTreeColumn(com.ibm.commerce.telesales.widgets.trees.ConfiguredTreeColumn configuredTreeColumn)