|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.javadocking.component.DefaultSwComponentFactory
public class DefaultSwComponentFactory
This Swing component factory provides default implementations for the creation of the components that will be used by the docking library.
It uses the normal constructors of the Swing components (javax.swing.JSplitPane, javax.swing.JTabbedPane, javax.swing.JDialog, javax.swing.JWindow and javax.swing.JLabel).
| Constructor Summary | |
|---|---|
DefaultSwComponentFactory()
|
|
| Method Summary | |
|---|---|
SelectableHeader |
createCompositeTabDockHeader(Dock childDock,
int position)
Creates a SelectableDockableHeader. |
DockHeader |
createDockHeader(LeafDock dock,
int orientation)
Creates a DefaultDockHeader. |
ExternalizeDock |
createExternalizer()
Creates a SingleDock. |
javax.swing.border.Border |
createFloatingBorder()
Creates a raised border. |
java.awt.Component |
createIconButton(javax.swing.Action action)
Creates a IconButton. |
javax.swing.JDialog |
createJDialog(java.awt.Window owner)
Creates an undecorated non-modal dialog that is resizable. |
javax.swing.JLabel |
createJLabel()
Creates a label. |
javax.swing.JSplitPane |
createJSplitPane()
Creates a split pane. |
javax.swing.JTabbedPane |
createJTabbedPane()
Creates a tabbed pane. |
Header |
createMaximizeHeader(Dockable dockable,
int position)
Creates a MaximizeHeader. |
SelectableHeader |
createMinimizeHeader(Dockable dockable,
int position)
Creates a MinimzeHeader. |
javax.swing.JPopupMenu |
createPopupMenu(Dockable selectedDockable,
CompositeDockable compositeDockable)
Creates a popup menu with PopupMenuFactory of this class. |
DockHeader |
createSingleDockHeader(LeafDock dock,
int position)
Creates a SingleDockHeader. |
SelectableHeader |
createTabDockHeader(Dockable dockable,
int position)
Creates a SelectableDockableHeader. |
PopupMenuFactory |
getPopupMenuFactory()
Gets the factory that creates a popup menu for one dockable or a group of dockables. |
void |
setPopupMenuFactory(PopupMenuFactory popupMenuFactory)
Sets the factory that creates a popup menu for one dockable or a group of dockables. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSwComponentFactory()
| Method Detail |
|---|
public javax.swing.JSplitPane createJSplitPane()
SwComponentFactory
createJSplitPane in interface SwComponentFactorypublic javax.swing.JTabbedPane createJTabbedPane()
SwComponentFactory
createJTabbedPane in interface SwComponentFactorypublic javax.swing.JDialog createJDialog(java.awt.Window owner)
createJDialog in interface SwComponentFactoryowner - The owner of the dialog.
public javax.swing.border.Border createFloatingBorder()
createFloatingBorder in interface SwComponentFactorypublic javax.swing.JLabel createJLabel()
SwComponentFactory
createJLabel in interface SwComponentFactorypublic java.awt.Component createIconButton(javax.swing.Action action)
IconButton.
createIconButton in interface SwComponentFactoryaction - The action that will be performed when the button is clicked.
public SelectableHeader createTabDockHeader(Dockable dockable,
int position)
SelectableDockableHeader.
createTabDockHeader in interface SwComponentFactorydockable - The dockable that will be represented in the tab.position - Possible values are constants defined by the class Position:
Position.LEFT, Position.RIGHT, Position.TOP or Position.BOTTOM.
public SelectableHeader createCompositeTabDockHeader(Dock childDock,
int position)
SelectableDockableHeader.
createCompositeTabDockHeader in interface SwComponentFactorychildDock - The child dock that will be represented in the tab.position - Possible values are constants defined by the class Position:
Position.LEFT, Position.RIGHT, Position.TOP or Position.BOTTOM.
public DockHeader createSingleDockHeader(LeafDock dock,
int position)
SingleDockHeader.
createSingleDockHeader in interface SwComponentFactorydock - The dock of the header.position - Possible values are constants defined by the class Position:
Position.LEFT, Position.RIGHT, Position.TOP or Position.BOTTOM.
public DockHeader createDockHeader(LeafDock dock,
int orientation)
DefaultDockHeader.
createDockHeader in interface SwComponentFactorydock - The dock of the header.orientation - The position of this header.
Possible values are constants defined by the class Position, i.e.:
public Header createMaximizeHeader(Dockable dockable,
int position)
MaximizeHeader.
createMaximizeHeader in interface SwComponentFactorydockable - The dockable of the header.position - The position of this header.
Possible values are constants defined by the class Position, i.e.:
public SelectableHeader createMinimizeHeader(Dockable dockable,
int position)
MinimzeHeader.
createMinimizeHeader in interface SwComponentFactorydockable - The dockable of the header.position - The position of this header.
Possible values are constants defined by the class Position, i.e.:
public ExternalizeDock createExternalizer()
SingleDock.
createExternalizer in interface SwComponentFactory
public javax.swing.JPopupMenu createPopupMenu(Dockable selectedDockable,
CompositeDockable compositeDockable)
PopupMenuFactory of this class.
createPopupMenu in interface SwComponentFactoryselectedDockable - The selected dockable.compositeDockable - The dockables in the selected dock.
public PopupMenuFactory getPopupMenuFactory()
public void setPopupMenuFactory(PopupMenuFactory popupMenuFactory)
popupMenuFactory - The factory that creates a popup menu for one dockable or a group of dockables.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||