- All Superinterfaces:
 Described
- All Known Subinterfaces:
 GraphSelection
- All Known Implementing Classes:
 FieldSelection,GraphObjectSelection,GraphSelectionImpl,MapSource,NodeSelection,ObjectSelection,OptionsSelection,ProjectSelection,SelectionBase
A 
Selection represents a selection for the GUI.
 Only instances of Selection may be used as values
 of the workbench selection (see
 UIProperty.WORKBENCH_SELECTION).- Author:
 - Ole Kniemeyer
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCapability flag indicating that this selection can be deleted bydelete(boolean).static final intCapability flag indicating that this selection is part of a hierarchical structure.static final intCapability flag indicating that this selection can be converted toTransferableviatoTransferable(boolean).Fields inherited from interface de.grogra.util.Described
ACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLE - 
Method Summary
Modifier and TypeMethodDescriptionReturns an editor component for the GUI.Returns an editor menu component for the GUI.voiddelete(boolean includeChildren) Deletes this selection.intReturns the capabilities of this selection.toTransferable(boolean includeChildren) Converts this selection intoTransferablefor the clipboard.Methods inherited from interface de.grogra.util.Described
getDescription 
- 
Field Details
- 
TRANSFERABLE
static final int TRANSFERABLECapability flag indicating that this selection can be converted toTransferableviatoTransferable(boolean).- See Also:
 
 - 
DELETABLE
static final int DELETABLECapability flag indicating that this selection can be deleted bydelete(boolean).- See Also:
 
 - 
HIERARCHICAL
static final int HIERARCHICALCapability flag indicating that this selection is part of a hierarchical structure.- See Also:
 
 
 - 
 - 
Method Details
- 
getCapabilities
int getCapabilities()Returns the capabilities of this selection. The returned value is a combination of the flagsTRANSFERABLE,DELETABLE,HIERARCHICAL.- Returns:
 - this selection's capabilities
 
 - 
createPropertyEditorComponent
ComponentWrapper createPropertyEditorComponent()Returns an editor component for the GUI. The component is used in in the GUI to edit the properties of this selection.- Returns:
 - a component responsible for editing this selection
 
 - 
createPropertyEditorMenu
ComponentWrapper createPropertyEditorMenu()Returns 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.- Returns:
 - a menu component responsible for editing this selection
 
 - 
toTransferable
Converts this selection intoTransferablefor the clipboard. This method is only invoked if this selection has the capabilityTRANSFERABLE.- Parameters:
 includeChildren-trueiff children in the hierarchy shall be included- Returns:
 - a transferable object representing the data of this selection
 
 - 
delete
void delete(boolean includeChildren) Deletes this selection. The precise semantics of deletion depends on the selection. This method is only invoked if this selection has the capabilityDELETABLE.- Parameters:
 includeChildren-trueiff children in the hierarchy shall be included
 - 
getContext
Context getContext() 
 -