|
||||||||||
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.TreeComboEditor
public class TreeComboEditor
An editor that represents a selectable user interface object that combines a text field and a tree and issues notification when an item is selected from the tree.
Note that although this class is a subclass of Composite
, it
does not make sense to add children to it, or set a layout on it.
Constructor Summary | |
---|---|
TreeComboEditor(org.eclipse.jface.viewers.ITreeContentProvider provider,
CTreeCombo.IPathSerializer serializer)
Creates a new instance of this class with the given content provider and path serializer. |
|
TreeComboEditor(IValidator validator,
org.eclipse.jface.viewers.ITreeContentProvider provider,
CTreeCombo.IPathSerializer serializer)
Creates a new instance of this class with the given validator, content provider and path serializer. |
Method Summary | |
---|---|
org.eclipse.swt.widgets.Control |
createControl(CompositeEditor parent)
This method is called by the PropertyEditor during initialization. |
void |
initControlValue(CompositeEditor parent,
java.lang.String value)
Set the given value into the control created for this property editor. |
boolean |
isImmediateUpdate()
|
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 TreeComboEditor(org.eclipse.jface.viewers.ITreeContentProvider provider, CTreeCombo.IPathSerializer serializer)
provider
- a content provider that will populate the treeserializer
- a serializer that can resolve a node in the tree into a pathpublic TreeComboEditor(IValidator validator, org.eclipse.jface.viewers.ITreeContentProvider provider, CTreeCombo.IPathSerializer serializer)
validator
- a validator that will be used to validate the text entered by the userprovider
- a content provider that will populate the treeserializer
- a serializer that can resolve a node in the tree into a pathMethod 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
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 boolean isImmediateUpdate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |