java.lang.Object
de.grogra.pf.ui.edit.SelectionBase
- Direct Known Subclasses:
FieldSelection,GraphSelectionImpl,MapSource,OptionsSelection,ProjectSelection
-
Field Summary
FieldsFields inherited from interface de.grogra.util.Described
ACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLEFields inherited from interface de.grogra.pf.ui.edit.Selection
DELETABLE, HIERARCHICAL, TRANSFERABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns an editor component for the GUI.Returns an editor menu component for the GUI.protected PropertyEditorTree.NodecreatePropertyNodes(PropertyEditorTree tree, Property p, Item item) protected abstract PropertyEditorTree.NodecreatePropertyNodes(PropertyEditorTree tree, Property p, UITree sourceTree, Object sourceNode) protected abstract PropertyEditorTree.NodecreatePropertyNodesInGroup(PropertyEditorTree tree, Property p, UITree sourceTree, Object sourceGroup) protected abstract PropertyEditorTreevoiddelete(boolean includeChildren) Deletes this selection.intReturns the capabilities of this selection.protected PropertyEditorgetEditorFor(Property p, Item item) protected abstract UITreeprotected abstract ObjectgetHierarchySourceRoot(UITree source) protected abstract Stringprotected abstract Listvoidremove()toTransferable(boolean includeChildren) Converts this selection intoTransferablefor the clipboard.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.grogra.util.Described
getDescription
-
Field Details
-
context
-
-
Constructor Details
-
SelectionBase
-
-
Method Details
-
remove
public void remove() -
getCapabilities
public int getCapabilities()Description copied from interface:SelectionReturns the capabilities of this selection. The returned value is a combination of the flagsSelection.TRANSFERABLE,Selection.DELETABLE,Selection.HIERARCHICAL.- Specified by:
getCapabilitiesin interfaceSelection- Returns:
- this selection's capabilities
-
getContext
- Specified by:
getContextin interfaceSelection
-
getEditorFor
-
createPropertyNodes
protected PropertyEditorTree.Node createPropertyNodes(PropertyEditorTree tree, Property p, Item item) -
getLabelFor
-
getProperties
-
createPropertyNodes
protected abstract PropertyEditorTree.Node createPropertyNodes(PropertyEditorTree tree, Property p, UITree sourceTree, Object sourceNode) -
createPropertyNodesInGroup
protected abstract PropertyEditorTree.Node createPropertyNodesInGroup(PropertyEditorTree tree, Property p, UITree sourceTree, Object sourceGroup) -
getHierarchySource
-
getHierarchySourceRoot
-
createTree
-
createPropertyEditorComponent
Description copied from interface:SelectionReturns an editor component for the GUI. The component is used in in the GUI to edit the properties of this selection.- Specified by:
createPropertyEditorComponentin interfaceSelection- Returns:
- a component responsible for editing this selection
-
createPropertyEditorMenu
Description copied from interface:SelectionReturns an editor menu component for the GUI. The component is used in in the GUI to edit the properties of this selection as part of a menu.- Specified by:
createPropertyEditorMenuin interfaceSelection- Returns:
- a menu component responsible for editing this selection
-
toTransferable
Description copied from interface:SelectionConverts this selection intoTransferablefor the clipboard. This method is only invoked if this selection has the capabilitySelection.TRANSFERABLE.- Specified by:
toTransferablein interfaceSelection- Parameters:
includeChildren-trueiff children in the hierarchy shall be included- Returns:
- a transferable object representing the data of this selection
-
delete
public void delete(boolean includeChildren) Description copied from interface:SelectionDeletes this selection. The precise semantics of deletion depends on the selection. This method is only invoked if this selection has the capabilitySelection.DELETABLE.
-