|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.javadocking.visualizer.DockingMinimizer
public class DockingMinimizer
This visualizer shows minimized dockables in components that can be docked and moved around by themself.
Information on using docking minimizers is in How to Use Visualizers (Minimizers and Maximizers) in The Sanaware Developer Guide.
For the dockable that is minimized, a header is created with the method
SwComponentFactory.createMinimizeHeader(Dockable, int)
of the component factory of the docking manager DockingManager.getComponentFactory()
.
A dockable is created around this header. This small dockable
is docked in the model by a Docker
.
Constructor Summary | |
---|---|
DockingMinimizer(Docker docker)
Constructs a visualizer that shows minimized dockables in components that can be docked and moved around by themselves. |
Method Summary | |
---|---|
boolean |
canVisualizeDockable(Dockable dockableToVisualize)
Determines if a dockable can be visualized by this visualizer. |
protected java.lang.String |
createMinimizedHeaderDockableID(Dockable dockable)
Creates the ID for the dockable around the header component of a minimized dockable. |
Docker |
getDocker()
Gets the object that docks the dockables around the minimized headers in docks. |
int |
getState()
Determines the state of the dockables that are visualized by this visualizer. |
Dockable |
getVisualizedDockable(int index)
Gets the visualized dockable with the specified index. |
int |
getVisualizedDockableCount()
Gets the number of visualized dockables of this visualizer. |
void |
loadProperties(java.lang.String prefix,
java.util.Properties properties,
java.util.Map dockablesMap,
java.awt.Window owner)
Loads the properties for this visualizer. |
void |
removeVisualizedDockable(Dockable dockableToRemove)
Removes the visualized dockables from this visualizer. |
void |
saveProperties(java.lang.String prefix,
java.util.Properties properties)
Saves the properties of this visualizer in the given properties object. |
void |
setDocker(Docker docker)
Sets the object that docks the dockables around the minimized headers in docks. |
void |
visualizeDockable(Dockable dockableToVisualize)
Adds a dockable to this visualizer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DockingMinimizer(Docker docker)
docker
- The object that docks the dockables around the minimized headers.Method Detail |
---|
public int getState()
Visualizer
getState
in interface Visualizer
DockableState
,
but not DockableState.NORMAL
or
DockableState.CLOSED
.public boolean canVisualizeDockable(Dockable dockableToVisualize)
Visualizer
canVisualizeDockable
in interface Visualizer
dockableToVisualize
- The dockable whose content has to be visualized. May not be nul.
public void visualizeDockable(Dockable dockableToVisualize)
Visualizer
visualizeDockable
in interface Visualizer
dockableToVisualize
- The dockable whose content has to be visualized. May not be nul.public Dockable getVisualizedDockable(int index) throws java.lang.IndexOutOfBoundsException
Visualizer
getVisualizedDockable
in interface Visualizer
java.lang.IndexOutOfBoundsException
- If the index is out of range (index < 0 || index >= getvisualizedDockableCount()).public int getVisualizedDockableCount()
Visualizer
getVisualizedDockableCount
in interface Visualizer
public void removeVisualizedDockable(Dockable dockableToRemove)
Visualizer
removeVisualizedDockable
in interface Visualizer
public void loadProperties(java.lang.String prefix, java.util.Properties properties, java.util.Map dockablesMap, java.awt.Window owner) throws java.io.IOException
Visualizer
Loads the properties for this visualizer. The properties can be found in the given properties object. The property names for this visualizer start with the given prefix.
The dockables can be added to this visualizer. This is not obligatory. They can be found in the given dockables mapping.
This method should be called after the empty constructor to create the content of the visualizer. Don't call this method for a visualizer that already has a content.
loadProperties
in interface Visualizer
prefix
- The prefix of the names of the properties that have been intended for this visualizer.properties
- The properties object that contains the properties for this visualizer. It can contain also
properties for other objects, but they will have another prefix.dockablesMap
- A mapping that contains the available dockables.
Dockable
).owner
- The owner window of the visualizer in the dock model (DockModel
).
java.io.IOException
- If an error occures while decoding the properties.public void saveProperties(java.lang.String prefix, java.util.Properties properties)
Visualizer
Saves the properties of this visualizer in the given properties object.
The property names for this visualizer should start with the given prefix.
saveProperties
in interface Visualizer
prefix
- The prefix for the property names.properties
- The properties object to which the properties should be added.protected java.lang.String createMinimizedHeaderDockableID(Dockable dockable)
public Docker getDocker()
public void setDocker(Docker docker)
docker
- The object that docks the dockables around the minimized headers in docks.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |