|
||||||||||
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 | |
---|---|
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 SwComponentFactory
public javax.swing.JTabbedPane createJTabbedPane()
SwComponentFactory
createJTabbedPane
in interface SwComponentFactory
public javax.swing.JDialog createJDialog(java.awt.Window owner)
createJDialog
in interface SwComponentFactory
owner
- The owner of the dialog.
public javax.swing.border.Border createFloatingBorder()
createFloatingBorder
in interface SwComponentFactory
public javax.swing.JLabel createJLabel()
SwComponentFactory
createJLabel
in interface SwComponentFactory
public java.awt.Component createIconButton(javax.swing.Action action)
IconButton
.
createIconButton
in interface SwComponentFactory
action
- The action that will be performed when the button is clicked.
public SelectableHeader createTabDockHeader(Dockable dockable, int position)
SelectableDockableHeader
.
createTabDockHeader
in interface SwComponentFactory
dockable
- 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 DockHeader createSingleDockHeader(LeafDock dock, int position)
SingleDockHeader
.
createSingleDockHeader
in interface SwComponentFactory
dock
- 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 SwComponentFactory
dock
- 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 SwComponentFactory
dockable
- 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 SwComponentFactory
dockable
- 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 SwComponentFactory
selectedDockable
- 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 |