|
|||||||||
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
public abstract class AbstractObjectEditor
Base class for editing an object.
PropertyEditor
Field Summary | |
---|---|
java.lang.String |
currentValue
|
Constructor Summary | |
---|---|
AbstractObjectEditor()
|
Method Summary | |
---|---|
protected abstract void |
addObject(IClassDef newClassDef)
Called when the 'Add' button is pressed. |
org.eclipse.swt.widgets.Control |
createControl(CompositeEditor parent)
This method is called by the PropertyEditor during initialization. |
protected void |
doAddObject(IClassDef newClassDef)
|
protected void |
doRemoveObject()
|
protected abstract java.lang.String |
getAddText()
Returns the text to appear on the 'Add' button, that is the button for creating a new 'Object'. |
protected abstract java.lang.String |
getDeleteText()
Returns the text to appear on the 'Delete' button, that is the button for deleting an existing 'Object'. |
protected abstract IClassDef |
getExpectedClassDef()
Returns the com.ibm.commons.iloader.node.IClassDef required to create a new Object. |
void |
initControlValue(CompositeEditor parent,
java.lang.String value)
Set the given value into the control created for this property editor. |
protected abstract void |
removeObject()
Called when the 'Remove' (or delete) button is pressed. |
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 |
Field Detail |
---|
public java.lang.String currentValue
Constructor Detail |
---|
public AbstractObjectEditor()
Method Detail |
---|
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
protected abstract IClassDef getExpectedClassDef()
com.ibm.commons.iloader.node.IClassDef
required to create a new Object.
IClassDef
protected abstract java.lang.String getAddText()
protected abstract java.lang.String getDeleteText()
protected void doAddObject(IClassDef newClassDef)
protected void doRemoveObject()
protected abstract void addObject(IClassDef newClassDef)
newClassDef
- IClassDef
protected abstract void removeObject()
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |