|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SwComponentFactory
This factory creates the graphical components that are used by the docking library to build the docking UI. With this factory the components used by the library can be customized.
Information on using the component factory is in How to Use the Component Factory in The Sanaware Developer Guide.
The implementation of this interface should be given to the docking manager with
DockingManager.setComponentFactory(SwComponentFactory)
.
Otherwise the default implementation will be used.
Method Summary | |
---|---|
DockHeader |
createDockHeader(LeafDock dock,
int position)
Creates the header for the specified dock with multiple dockables. |
ExternalizeDock |
createExternalizer()
Creates a LeafDock in which a dockable can be externalized. |
javax.swing.border.Border |
createFloatingBorder()
Creates a border for a floating window. |
java.awt.Component |
createIconButton(javax.swing.Action action)
Creates a small icon component to perform the given action. |
javax.swing.JDialog |
createJDialog(java.awt.Window owner)
Creates a non-modal dialog. |
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 the header for the specified dockable in a maximize panel. |
SelectableHeader |
createMinimizeHeader(Dockable dockable,
int position)
Creates the header for the specified dockable in a minimize panel. |
javax.swing.JPopupMenu |
createPopupMenu(Dockable selectedDockable,
CompositeDockable compositeDockable)
Creates a popup menu for the selected dockable and the other dockables in the dock of the selected dockable. |
DockHeader |
createSingleDockHeader(LeafDock dock,
int position)
Creates the header for the specified dock with one dockable. |
SelectableHeader |
createTabDockHeader(Dockable dockable,
int position)
Creates the header for the given dockable that will be displayed in a tab of a dock. |
Method Detail |
---|
javax.swing.JTabbedPane createJTabbedPane()
javax.swing.JSplitPane createJSplitPane()
javax.swing.JDialog createJDialog(java.awt.Window owner)
owner
- The owner of the dialog.
javax.swing.border.Border createFloatingBorder()
javax.swing.JLabel createJLabel()
java.awt.Component createIconButton(javax.swing.Action action)
action
- The action that will be performed when the button is clicked.
SelectableHeader createTabDockHeader(Dockable dockable, int position)
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.
DockHeader createSingleDockHeader(LeafDock dock, int position)
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.
DockHeader createDockHeader(LeafDock dock, int position)
Creates the header for the specified dock with multiple dockables.
dock
- The dock of the header.position
- The position of this header.
Possible values are constants defined by the class Position
, i.e.:
Header createMaximizeHeader(Dockable dockable, int position)
dockable
- The dockable of the header.position
- The position of this header.
Possible values are constants defined by the class Position
, i.e.:
SelectableHeader createMinimizeHeader(Dockable dockable, int position)
dockable
- The dockable of the header.position
- The position of this header.
Possible values are constants defined by the class Position
, i.e.:
ExternalizeDock createExternalizer()
LeafDock
in which a dockable can be externalized.
javax.swing.JPopupMenu createPopupMenu(Dockable selectedDockable, CompositeDockable compositeDockable)
selectedDockable
- The selected dockable.compositeDockable
- The dockables in the selected dock.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |