|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.commons.swt.data.editors.api.PropertyEditor com.ibm.commons.swt.data.editors.api.AbstractTableEditor
public abstract class AbstractTableEditor
A table editor used to edit a particular property.
ITableEditorValuePopulator
Constructor Summary | |
---|---|
AbstractTableEditor(int style,
ITableEditorValuePopulator populator)
Constructs a new instance of the class given the style flags which are used to set the look/behavior of the control, and a populator which is used to determine the contents of the table. |
|
AbstractTableEditor(IValidator validator)
Constructs a new instance of the class given a particular validator. |
Method Summary | |
---|---|
org.eclipse.swt.widgets.Control |
createControl(CompositeEditor parent)
This method is called by the PropertyEditor during initialization. |
void |
fillTable(org.eclipse.swt.widgets.Table table,
java.lang.String value)
Fills the contents of the table based on the value of the associated property. |
com.ibm.commons.iloader.node.lookups.TableLookup |
getLookup()
|
int |
getStyle()
Returns the style bits for the control in question. |
void |
initControlValue(CompositeEditor parent,
java.lang.String value)
Set the given value into the control created for this property editor. |
void |
setId(java.lang.String id)
Allows the implementor to associate an ID attribute with this control. |
void |
setLookup(com.ibm.commons.iloader.node.lookups.TableLookup lookup,
org.eclipse.swt.widgets.Table table)
Sets a lookup for the table. |
void |
setTableEditorValuePopulator(ITableEditorValuePopulator populator)
Sets the table populator for the current table. |
boolean |
stopEdit(CompositeEditor parent)
Called to tell the current editor to stop editing the associated attribute. |
Methods inherited from class com.ibm.commons.swt.data.editors.api.PropertyEditor |
---|
addPropertyEditorUpdateListener, addValidator, callDialog, getContextAttribute, getContextObject, getDefaultEditor, getDialogButtonAltText, getDialogButtonImage, getDialogButtonText, getEditor, getRenderedValue, getScriptMode, getTextValidator, getValidator, getWorkBenchPart, hasDialogButton, isScriptModeFixed, postModelUpdate, preModelUpdate, removePropertyEditorUpdateListener, setContextAttribute, setContextObject, setScriptMode, setValidator, setWorkBenchPart |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTableEditor(int style, ITableEditorValuePopulator populator)
style
- - the style of control to constructpopulator
- - the populator to fill the contents of the tableITableEditorValuePopulator
public AbstractTableEditor(IValidator validator)
validator
- IValidator
Method Detail |
---|
public final int getStyle()
public org.eclipse.swt.widgets.Control createControl(CompositeEditor parent)
PropertyEditor
createControl
in class PropertyEditor
parent
- - The parent of the control
public void setId(java.lang.String id)
PropertyEditor
setId
in class PropertyEditor
public void fillTable(org.eclipse.swt.widgets.Table table, java.lang.String value)
table
- value
- ITableEditorValuePopulator
public void initControlValue(CompositeEditor parent, java.lang.String value)
PropertyEditor
initControlValue
in class PropertyEditor
CompositeEditor
public boolean stopEdit(CompositeEditor parent)
PropertyEditor
stopEdit
in class PropertyEditor
parent
- - CompositeEditor
public void setLookup(com.ibm.commons.iloader.node.lookups.TableLookup lookup, org.eclipse.swt.widgets.Table table)
lookup
- table
- TableLookup
public com.ibm.commons.iloader.node.lookups.TableLookup getLookup()
public void setTableEditorValuePopulator(ITableEditorValuePopulator populator)
populator
- ITableEditorValuePopulator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |