|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.javadocking.dock.factory.CompositeTabDockFactory
public class CompositeTabDockFactory
This dock factory tries to create a dock for a dockable with the child dock factory.
When no child dock could be created and the dockable is a composite, a
CompositeTabDock is created.
Only when the dockable cannot be added, it delegates the creation of the dock to the
alternative dock factory.
| Constructor Summary | |
|---|---|
CompositeTabDockFactory()
|
|
| Method Summary | |
|---|---|
Dock |
createDock(Dockable dockable,
int dockingMode)
Creates a dock for the given dockable. |
DockFactory |
getAlternativeDockFactory()
Gets the alternative dock factory. |
DockFactory |
getChildDockFactory()
Gets the leaf child dock factory. |
java.awt.Dimension |
getDockPreferredSize(Dockable dockable,
int dockingMode)
Gets the preferred size for the dock that will be created by this factory. |
void |
loadProperties(java.lang.String prefix,
java.util.Properties properties)
Sets the properties for this dock factory. |
void |
saveProperties(java.lang.String prefix,
java.util.Properties properties)
Saves the properties of this dock factory in the given properties object. |
void |
setAlternativeDockFactory(DockFactory alternativeDockFactory)
Sets the alternative dock factory. |
void |
setChildDockFactory(DockFactory leafChildDockFactory)
Sets the leaf child dock factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeTabDockFactory()
| Method Detail |
|---|
public Dock createDock(Dockable dockable,
int dockingMode)
DockFactory
createDock in interface DockFactorydockable - The dockable for which the dock is created.dockingMode - The docking mode that is used for docking the dockable.
This integer should be a constant defined by DockingMode.
public java.awt.Dimension getDockPreferredSize(Dockable dockable,
int dockingMode)
DockFactory
getDockPreferredSize in interface DockFactorydockable - The dockable for which the dock is created.dockingMode - The docking mode that is used for docking the dockable.
This integer should be a constant defined by DockingMode.
public void saveProperties(java.lang.String prefix,
java.util.Properties properties)
DockFactory
saveProperties in interface DockFactoryprefix - The prefix for the property names.properties - The properties object to which the properties should be added.
public void loadProperties(java.lang.String prefix,
java.util.Properties properties)
DockFactory
loadProperties in interface DockFactoryprefix - The prefix of the names of the properties that have been intended for this dock factory.properties - The properties object that contains the properties for this dock factory. It can contain also
properties for other objects, but they will have another prefix.public DockFactory getAlternativeDockFactory()
public void setAlternativeDockFactory(DockFactory alternativeDockFactory)
alternativeDockFactory - The alternative dock factory. Should not be null.
java.lang.IllegalArgumentException - When the alternative dock factory is null.public DockFactory getChildDockFactory()
SplitDock.SplitDock(DockFactory, CompositeDockFactory)
for creating the leaf docks of the split dock.
getChildDockFactory in interface CompositeDockFactorypublic void setChildDockFactory(DockFactory leafChildDockFactory)
SplitDock.SplitDock(DockFactory, CompositeDockFactory)
for creating the leaf docks of the split dock.
setChildDockFactory in interface CompositeDockFactoryleafChildDockFactory - The leaf child dock factory. Should not be null.
java.lang.IllegalArgumentException - When the alternative dock factory is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||