de.grogra.pf.ui.edit
public abstract class SelectionBase extends java.lang.Object implements Selection
| Modifier and Type | Field and Description |
|---|---|
protected Context |
context |
DELETABLE, HIERARCHICAL, TRANSFERABLEACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLE| Constructor and Description |
|---|
SelectionBase(Context context) |
| Modifier and Type | Method and Description |
|---|---|
ComponentWrapper |
createPropertyEditorComponent()
Returns an editor component for the GUI.
|
ComponentWrapper |
createPropertyEditorMenu()
Returns an editor menu component for the GUI.
|
protected PropertyEditorTree.Node |
createPropertyNodes(PropertyEditorTree tree,
Property p,
Item item) |
protected abstract PropertyEditorTree.Node |
createPropertyNodes(PropertyEditorTree tree,
Property p,
UITree sourceTree,
java.lang.Object sourceNode) |
protected abstract PropertyEditorTree.Node |
createPropertyNodesInGroup(PropertyEditorTree tree,
Property p,
UITree sourceTree,
java.lang.Object sourceGroup) |
protected abstract PropertyEditorTree |
createTree() |
void |
delete(boolean includeChildren)
Deletes this selection.
|
int |
getCapabilities()
Returns the capabilities of this selection.
|
Context |
getContext() |
protected PropertyEditor |
getEditorFor(Property p,
Item item) |
protected abstract UITree |
getHierarchySource() |
protected abstract java.lang.Object |
getHierarchySourceRoot(UITree source) |
protected abstract java.lang.String |
getLabelFor(Property p) |
protected abstract java.util.List |
getProperties(PropertyEditorTree tree) |
void |
remove() |
java.awt.datatransfer.Transferable |
toTransferable(boolean includeChildren)
Converts this selection into
Transferable for the
clipboard. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescriptionprotected final Context context
public SelectionBase(Context context)
public ComponentWrapper createPropertyEditorComponent()
SelectioncreatePropertyEditorComponent in interface Selectionpublic ComponentWrapper createPropertyEditorMenu()
SelectioncreatePropertyEditorMenu in interface Selectionprotected PropertyEditorTree.Node createPropertyNodes(PropertyEditorTree tree, Property p, Item item)
protected abstract PropertyEditorTree.Node createPropertyNodes(PropertyEditorTree tree, Property p, UITree sourceTree, java.lang.Object sourceNode)
protected abstract PropertyEditorTree.Node createPropertyNodesInGroup(PropertyEditorTree tree, Property p, UITree sourceTree, java.lang.Object sourceGroup)
protected abstract PropertyEditorTree createTree()
public void delete(boolean includeChildren)
SelectionSelection.DELETABLE.public int getCapabilities()
SelectionSelection.TRANSFERABLE,
Selection.DELETABLE, Selection.HIERARCHICAL.getCapabilities in interface Selectionpublic Context getContext()
getContext in interface Selectionprotected PropertyEditor getEditorFor(Property p, Item item)
protected abstract UITree getHierarchySource()
protected abstract java.lang.Object getHierarchySourceRoot(UITree source)
protected abstract java.lang.String getLabelFor(Property p)
protected abstract java.util.List getProperties(PropertyEditorTree tree)
public void remove()
public java.awt.datatransfer.Transferable toTransferable(boolean includeChildren)
SelectionTransferable for the
clipboard. This method is only invoked if this selection
has the capability Selection.TRANSFERABLE.toTransferable in interface SelectionincludeChildren - true iff children in the hierarchy
shall be included