D
- the Dockable typeDATA
- the Dockable data typeE
- the Dockable entry typepublic interface DockingAreaContainer<D,DATA extends DockableData,E extends DockableEntry<D,DATA>>
extends org.softsmithy.lib.beans.Bean
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVE_DOCKABLE_PROPERTY_NAME
The name of the 'activeDockable' property.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addDockable(E dockableEntry,
boolean active,
Context... implicitLocalContexts)
Adds a Dockable to this container.
|
void |
addDockableSetChangeListener(org.softsmithy.lib.util.SetChangeListener<E> listener)
Adds a Dockable set change listener.
|
boolean |
addDockingArea(DockingAreaDescriptor dockingAreaDescriptor)
Adds a Docking Area to this container.
|
void |
addDockingAreaSetChangeListener(org.softsmithy.lib.util.SetChangeListener<DockingAreaDescriptor> listener)
Adds a Docking Area set change listener.
|
void |
closeAndUnregisterView(E viewEntry)
Closes and unregisters a view.
|
void |
closeEditors(Class<? extends D> editorType)
Closes all editors of the specified type.
|
E |
getActiveDockable()
Gets the active Dockable.
|
String |
getDefaultEditorAreaId()
Gets the default editor Docking Area id.
|
DockablePreferences |
getDockablePreferences(D dockable)
Gets the
DockablePreferences for the specified Dockable. |
Set<E> |
getDockables()
Gets all Dockables of this Docking Area container.
|
SortedSet<E> |
getSortedModifiedDockables()
Gets all modified Dockables of this Docking Area container, sorted by their titles.
|
E |
openAndRegisterNewView(Class<? extends D> viewType,
boolean active,
String displayName,
String icon,
org.softsmithy.lib.util.ResourceLoader resourceLoader)
Opens and registers a new view Dockable.
|
E |
openEditorForContent(Object content,
Class<? extends D> editorType,
String icon,
org.softsmithy.lib.util.ResourceLoader resourceLoader)
Opens an Editor for the specified content.
|
void |
registerDefaultDockablePreferences(Class<?> dockableClass,
DockablePreferences dockablePreferences)
Registers the default
DockablePreferences for the specified Dockable class. |
void |
removeDockableSetChangeListener(org.softsmithy.lib.util.SetChangeListener<E> listener)
Removes a Dockable set change listener.
|
void |
removeDockingAreaSetChangeListener(org.softsmithy.lib.util.SetChangeListener<DockingAreaDescriptor> listener)
Removes a Docking Area set change listener.
|
void |
setActiveDockable(E dockableEntry)
Sets the active Dockable.
|
DockablePreferences |
unregisterDefaultDockablePreferences(Class<?> dockableClass)
Unregisters the default
DockablePreferences for the specified Dockable class. |
static final String ACTIVE_DOCKABLE_PROPERTY_NAME
()
,
Constant Field Valuesboolean addDockingArea(DockingAreaDescriptor dockingAreaDescriptor)
dockingAreaDescriptor
- the Docking Area descriptorboolean addDockable(E dockableEntry, boolean active, Context... implicitLocalContexts)
dockableEntry
- the Dockable entry to addactive
- flag if the added Dockable entry should be activeimplicitLocalContexts
- a list of implicit local contexts to be associated with the Dockablevoid addDockingAreaSetChangeListener(org.softsmithy.lib.util.SetChangeListener<DockingAreaDescriptor> listener)
listener
- a Docking Area set change listenervoid removeDockingAreaSetChangeListener(org.softsmithy.lib.util.SetChangeListener<DockingAreaDescriptor> listener)
listener
- a Docking Area set change listenervoid addDockableSetChangeListener(org.softsmithy.lib.util.SetChangeListener<E> listener)
listener
- a Dockable set change listenervoid removeDockableSetChangeListener(org.softsmithy.lib.util.SetChangeListener<E> listener)
listener
- a Dockable set change listenerString getDefaultEditorAreaId()
DockingAreaKind.EDITOR
Set<E> getDockables()
SortedSet<E> getSortedModifiedDockables()
DockableData.getTitle()
void setActiveDockable(E dockableEntry)
dockableEntry
- the Dockable to set activeACTIVE_DOCKABLE_PROPERTY_NAME
E getActiveDockable()
ACTIVE_DOCKABLE_PROPERTY_NAME
E openAndRegisterNewView(Class<? extends D> viewType, boolean active, String displayName, String icon, org.softsmithy.lib.util.ResourceLoader resourceLoader)
viewType
- the view typeactive
- flag if the new view should be set as the active Dockable in this container.displayName
- the display name of th the viewicon
- the icon name pattern to get icon for the viewresourceLoader
- the resource loader to load the iconvoid closeAndUnregisterView(E viewEntry)
viewEntry
- the view entry for the view to close and unregisterE openEditorForContent(Object content, Class<? extends D> editorType, String icon, org.softsmithy.lib.util.ResourceLoader resourceLoader)
content
- the content for the editor to open/ select.editorType
- the type of the Editor. It must provide a constructor which takes the specified content as its single parameter.icon
- the icon to use for the EditorresourceLoader
- the ResourceLoader
to load the iconvoid closeEditors(Class<? extends D> editorType)
editorType
- the editor typevoid registerDefaultDockablePreferences(Class<?> dockableClass, DockablePreferences dockablePreferences)
DockablePreferences
for the specified Dockable class.dockableClass
- the Dockable classdockablePreferences
- the default DockablePreferencesDockablePreferences unregisterDefaultDockablePreferences(Class<?> dockableClass)
DockablePreferences
for the specified Dockable class.dockableClass
- the Dockable classDockablePreferences getDockablePreferences(D dockable)
DockablePreferences
for the specified Dockable.dockable
- the DockableCopyright © 2012–2019 Drombler. All rights reserved.