|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.window.descriptor.AbstractGUIWindowDescriptor<B>
net.sf.doolin.gui.window.descriptor.AbstractCompositeGUIWindowDescriptor<B,DockingConstraint>
net.sf.doolin.gui.docking.DockingWindowDescriptor<B>
B - Type of bean for the windowpublic class DockingWindowDescriptor<B>
Window descriptor based on Javadocking API.
| Nested Class Summary | |
|---|---|
protected static class |
DockingWindowDescriptor.CloseAction
Decorator for the close action that controls if the view can be closed |
| Field Summary | |
|---|---|
protected static String |
CLIENT_PROPERTY_DOCK_MODEL
Client property that stores in the window the DockModel. |
protected static String |
VIEW_PROPERTY_DOCKING_CLOSE_ACTION
View property that stores the Javadocking close action |
| Constructor Summary | |
|---|---|
DockingWindowDescriptor()
|
|
| Method Summary | ||
|---|---|---|
void |
activateView(GUIWindow<B> window,
GUIView<?> view)
Does nothing. |
|
protected
|
arrangeViewInWindow(GUIWindow<B> window,
GUIView<V> view,
JComponent viewDecoratedComponent,
DockingConstraint constraint)
Arrange view. |
|
protected void |
arrangeViews(GUIWindow<B> window)
Arranges the views inside the window. |
|
protected void |
arrangeWindow(GUIWindow<B> window)
Arranges the window. |
|
protected
|
createViewDockable(GUIWindow<B> window,
GUIView<V> view,
JComponent viewDecoratedComponent,
DockingConstraint constraint)
Creates a Dockable for a view. |
|
protected void |
fillDockDescription(DockDescription dockDescription,
com.javadocking.dock.CompositeDock parentDock)
Fills the dock description for a dock. |
|
protected
|
findViewReference(GUIWindow<B> parentWindow,
GUIViewDescriptor<V> viewDescriptor,
V viewModel)
Finds a view reference for the given view descriptor and view model. |
|
protected com.javadocking.dock.Dock |
getDock(com.javadocking.dock.Dock dock,
String dockingPath)
Gets the dock from a root dock using a docking path |
|
protected com.javadocking.dockable.Dockable |
getDockable(GUIView<?> view)
Gets the Dockable for a view. |
|
protected com.javadocking.dock.Dock |
getDockAt(com.javadocking.dock.CompositeDock compositeDock,
com.javadocking.dock.Position position)
Gets the dock at a given position |
|
protected String |
getDockingPath(com.javadocking.dock.Dock dock)
Gets the docking path for a given dock, starting from the root. |
|
protected String |
getDockingPath(com.javadocking.dockable.Dockable dockable)
Gets the docking path for a Dockable from the root. |
|
protected com.javadocking.model.DockModel |
getDockModel(GUIWindow<B> window)
Gets the DockModel that is associated to a window using its
client property CLIENT_PROPERTY_DOCK_MODEL. |
|
void |
hideView(GUIWindow<B> window,
GUIView<?> view)
Does nothing. |
|
void |
init()
General initialisation of the DockingManager |
|
boolean |
isSaveWorkspace()
Checks if the docking must be saved when the window is closed. |
|
protected com.javadocking.dock.Position |
normalizePosition(com.javadocking.dock.Position p)
Normalises a Position by converting to horizontal instead of
vertical positions. |
|
void |
onClosingWindow(GUIWindow<B> window)
Saves the docking paths |
|
protected void |
restore(GUIWindow<B> window,
com.javadocking.dock.CompositeDock parentDock,
DockDescription dockDescription)
Restores the docking description for a window. |
|
protected void |
restore(GUIWindow<B> window,
DockDescription dockDescription)
Restores the docking for a window |
|
protected
|
restoreView(GUIWindow<B> window,
ViewReference<V,DockingConstraint> viewReference,
com.javadocking.dock.Dock dock)
Restores the docking for a view |
|
void |
setDockingStorage(DockingStorage dockingStorage)
Sets the storage used to store the docking information. |
|
void |
setSaveWorkspace(boolean saveWorkspace)
Sets if the docking must be saved when the window is closed. |
|
protected String |
toString(com.javadocking.dock.Position position)
Converts a position to a string. |
|
| Methods inherited from class net.sf.doolin.gui.window.descriptor.AbstractCompositeGUIWindowDescriptor |
|---|
arrangeView, arrangeViewReference, arrangeViewWithReference, getViewDecorator, getViewReferences, openView, setViewDecorator, setViewReferences |
| Methods inherited from class net.sf.doolin.gui.window.descriptor.AbstractGUIWindowDescriptor |
|---|
arrange, arrangeActionBars, createWindow, getActionFactory, getCloseAction, getIconId, getIconService, getMenuBar, getSize, getTitleExpression, getToolBars, getWindow, getWindowId, getWindowId, getWindowListeners, initViewComponent, onCloseWindow, onOpenedWindow, setActionFactory, setBeanName, setCloseAction, setIconId, setIconService, setMenuBar, setSize, setTitleExpression, setToolBars, setWindowFactory, setWindowId, setWindowListeners |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.beans.factory.BeanNameAware |
|---|
setBeanName |
| Field Detail |
|---|
protected static final String VIEW_PROPERTY_DOCKING_CLOSE_ACTION
PropertyContainer.getProperty(Object),
PropertyContainer.setProperty(Object, Object),
Constant Field Valuesprotected static final String CLIENT_PROPERTY_DOCK_MODEL
DockModel.
| Constructor Detail |
|---|
public DockingWindowDescriptor()
| Method Detail |
|---|
public void activateView(GUIWindow<B> window,
GUIView<?> view)
AbstractGUIWindowDescriptor
activateView in interface GUIWindowDescriptor<B>activateView in class AbstractGUIWindowDescriptor<B>window - the windowview - the viewGUIView.show()
public void hideView(GUIWindow<B> window,
GUIView<?> view)
AbstractGUIWindowDescriptor
hideView in interface GUIWindowDescriptor<B>hideView in class AbstractGUIWindowDescriptor<B>window - the windowview - the view@PostConstruct public void init()
DockingManager
public boolean isSaveWorkspace()
true if the docking must be saved when the window is
closed.public void onClosingWindow(GUIWindow<B> window)
onClosingWindow in interface GUIWindowDescriptor<B>onClosingWindow in class AbstractGUIWindowDescriptor<B>window - Window to closepublic void setDockingStorage(DockingStorage dockingStorage)
dockingStorage - Storage to usepublic void setSaveWorkspace(boolean saveWorkspace)
saveWorkspace - true if the docking must be saved when the window
is closed.
protected <V> void arrangeViewInWindow(GUIWindow<B> window,
GUIView<V> view,
JComponent viewDecoratedComponent,
DockingConstraint constraint)
AbstractCompositeGUIWindowDescriptor
arrangeViewInWindow in class AbstractCompositeGUIWindowDescriptor<B,DockingConstraint>V - Type of data for the viewwindow - the windowview - the viewviewDecoratedComponent - the view decorated componentconstraint - the constraintprotected void arrangeViews(GUIWindow<B> window)
AbstractCompositeGUIWindowDescriptor
arrangeViews in class AbstractCompositeGUIWindowDescriptor<B,DockingConstraint>window - Window to arrangeprotected void arrangeWindow(GUIWindow<B> window)
AbstractCompositeGUIWindowDescriptor
arrangeWindow in class AbstractCompositeGUIWindowDescriptor<B,DockingConstraint>window - Window
protected <V> com.javadocking.dockable.Dockable createViewDockable(GUIWindow<B> window,
GUIView<V> view,
JComponent viewDecoratedComponent,
DockingConstraint constraint)
Dockable for a view.
V - Type of bean for the viewwindow - Hosting docking windowview - View to dockviewDecoratedComponent - Decorated component for the viewconstraint - Docking constraints
protected void fillDockDescription(DockDescription dockDescription,
com.javadocking.dock.CompositeDock parentDock)
dockDescription - Dock description to fillparentDock - Parent dock
protected <V> ViewReference<V,DockingConstraint> findViewReference(GUIWindow<B> parentWindow,
GUIViewDescriptor<V> viewDescriptor,
V viewModel)
AbstractCompositeGUIWindowDescriptor
findViewReference in class AbstractCompositeGUIWindowDescriptor<B,DockingConstraint>V - Type of data for the viewparentWindow - Parent windowviewDescriptor - View descriptorviewModel - Data for the view
protected com.javadocking.dock.Dock getDock(com.javadocking.dock.Dock dock,
String dockingPath)
dock - Root dockdockingPath - Docking path
protected com.javadocking.dockable.Dockable getDockable(GUIView<?> view)
Dockable for a view.
view - View
null if not found.
protected com.javadocking.dock.Dock getDockAt(com.javadocking.dock.CompositeDock compositeDock,
com.javadocking.dock.Position position)
compositeDock - Parent dockposition - Position
null if none is definedprotected String getDockingPath(com.javadocking.dock.Dock dock)
dock - Dock to retrieve the path for
protected String getDockingPath(com.javadocking.dockable.Dockable dockable)
Dockable from the root.
dockable - Dockable to retrieve the path for
protected com.javadocking.model.DockModel getDockModel(GUIWindow<B> window)
DockModel that is associated to a window using its
client property CLIENT_PROPERTY_DOCK_MODEL.
window - Window
DockModel instanceprotected com.javadocking.dock.Position normalizePosition(com.javadocking.dock.Position p)
Position by converting to horizontal instead of
vertical positions. null stays null.
p - Initial position
protected void restore(GUIWindow<B> window,
com.javadocking.dock.CompositeDock parentDock,
DockDescription dockDescription)
window - Docking windowparentDock - Root dockdockDescription - Description for this dock
protected void restore(GUIWindow<B> window,
DockDescription dockDescription)
window - WindowdockDescription - Description for the root dock
protected <V> void restoreView(GUIWindow<B> window,
ViewReference<V,DockingConstraint> viewReference,
com.javadocking.dock.Dock dock)
V - Type of bean for the viewwindow - Hosting windowviewReference - View reference for the viewdock - Root dockprotected String toString(com.javadocking.dock.Position position)
position - Position
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||