|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.commons.swt.data.editors.api.PropertyEditor
com.ibm.commons.swt.data.editors.PrimitiveCollectionEditor
public class PrimitiveCollectionEditor
Editor for adding and removing primitives to/from the model. The primative is defined via PrimitiveCollectionNode.
PrimitiveCollectionNode| Constructor Summary | |
|---|---|
PrimitiveCollectionEditor(PrimitiveCollectionNode node)
Constructs a new instance of this class given the PrimitiveCollectionNode that is to be used to add and delete primitives. |
|
| Method Summary | |
|---|---|
org.eclipse.swt.widgets.Control |
createControl(CompositeEditor parent)
This method is called by the PropertyEditor during initialization. |
void |
handleDeleteButton(int index)
Invoked when the delete button is pressed. |
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. |
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 PrimitiveCollectionEditor(PrimitiveCollectionNode node)
node - | Method Detail |
|---|
public org.eclipse.swt.widgets.Control createControl(CompositeEditor parent)
PropertyEditor
createControl in class PropertyEditorparent - - The parent of the control
public void setId(java.lang.String id)
PropertyEditor
setId in class PropertyEditorpublic void handleDeleteButton(int index)
index - the index of the primitive in the collection
public void initControlValue(CompositeEditor parent,
java.lang.String value)
PropertyEditor
initControlValue in class PropertyEditorCompositeEditorpublic boolean stopEdit(CompositeEditor parent)
PropertyEditor
stopEdit in class PropertyEditorparent - - CompositeEditor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||