|
||||||||||
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.AbstractObjectEditor com.ibm.commons.swt.data.editors.ObjectEditor
public class ObjectEditor
An editor for objects whose type is known/defined via ObjectValueNode.
ObjectValueNode
Field Summary |
---|
Fields inherited from class com.ibm.commons.swt.data.editors.api.AbstractObjectEditor |
---|
currentValue |
Constructor Summary | |
---|---|
ObjectEditor(ObjectValueNode objValueNode)
Constructs a new instance of this class with the given ObjectValueNode. |
|
ObjectEditor(ObjectValueNode objValueNode,
java.lang.String value)
Constructs a new instance of this class with the given ObjectValueNode and the current string value of the object. |
Method Summary | |
---|---|
protected void |
addObject(IClassDef classDef)
Called when the 'Add' button is pressed. |
protected java.lang.String |
getAddText()
Returns the text to appear on the 'Add' button, that is the button for creating a new 'Object'. |
protected java.lang.String |
getDeleteText()
Returns the text to appear on the 'Delete' button, that is the button for deleting an existing 'Object'. |
protected IClassDef |
getExpectedClassDef()
Returns the com.ibm.commons.iloader.node.IClassDef required to create a new Object. |
protected void |
removeObject()
Called when the 'Remove' (or delete) button is pressed. |
void |
setCurrentValue(java.lang.String value)
|
Methods inherited from class com.ibm.commons.swt.data.editors.api.AbstractObjectEditor |
---|
createControl, doAddObject, doRemoveObject, initControlValue, setId, stopEdit |
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 ObjectEditor(ObjectValueNode objValueNode)
objValueNode
- ObjectValueNode
public ObjectEditor(ObjectValueNode objValueNode, java.lang.String value)
objValueNode
- value
- ObjectValueNode
Method Detail |
---|
protected IClassDef getExpectedClassDef()
AbstractObjectEditor
com.ibm.commons.iloader.node.IClassDef
required to create a new Object.
getExpectedClassDef
in class AbstractObjectEditor
IClassDef
protected java.lang.String getAddText()
AbstractObjectEditor
getAddText
in class AbstractObjectEditor
protected java.lang.String getDeleteText()
AbstractObjectEditor
getDeleteText
in class AbstractObjectEditor
protected void addObject(IClassDef classDef)
AbstractObjectEditor
addObject
in class AbstractObjectEditor
IClassDef
protected void removeObject()
AbstractObjectEditor
removeObject
in class AbstractObjectEditor
public void setCurrentValue(java.lang.String value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |