com.vlsolutions.swing.toolbars
Class ToolBarContainer
JPanel
com.vlsolutions.swing.toolbars.ToolBarContainer
public class ToolBarContainer
extends JPanel
The container for toolbar panels.
The layout used is BorderLayout and the CENTER component is dedicated to the user
(the other 4 places (NORTH, EAST, WEST and SOUTH are used to display the toolbar panels)).

ToolBarIO
registerToolBar(VLToolBar)
void | add(Component comp, Object constraints) - Overriden to track component constraints
|
static ToolBarContainer | createDefaultContainer(boolean topToolbar, boolean leftToolBar, boolean bottomToolBar, boolean rightToolBar) - Creates a default ToolBarContainer with preinstalled toolbar panels on the borders with
the LEADING alignment.
|
static ToolBarContainer | createDefaultContainer(boolean topToolbar, boolean leftToolBar, boolean bottomToolBar, boolean rightToolBar, int alignment) - Creates a default ToolBarContainer with preinstalled toolbar panels on the borders with
the specified alignment
The value of the alignment argument must be one of
FlowLayout.LEFT , FlowLayout.RIGHT ,
FlowLayout.CENTER , FlowLayout.LEADING , or
FlowLayout.TRAILING .
|
Component | getComponentAt(Object constraints) - Returns the component for a given BorderLayout constraints
|
Object | getConstraints(Component comp) - Returns the BorderLayout constraints of the given component
|
List | getRegisteredToolBars() - Returns the list of currently registered toolbars.
|
VLToolBar | getToolBarByName(String name) - Returns the registered toolbar associated with the given name, or null if not found
|
ToolBarPanel | getToolBarPanelAt(Object constraints) - Returns the ToolBarPanel for a given BorderLayout constraints
|
void | registerToolBar(VLToolBar toolbar) - Registers a new ToolBar.
|
void | remove(Component comp) - Overriden to keep track of component constraints
|
void | remove(int index) - Overriden to keep track of component constraints
|
void | removeAll() - Overriden to keep track of component constraints
|
void | unregisterToolBar(VLToolBar toolbar) - Unregisters a ToolBar.
|
ToolBarContainer
public ToolBarContainer()
add
public void add(Component comp,
Object constraints)
Overriden to track component constraints
createDefaultContainer
public static ToolBarContainer createDefaultContainer(boolean topToolbar,
boolean leftToolBar,
boolean bottomToolBar,
boolean rightToolBar)
Creates a default ToolBarContainer with preinstalled toolbar panels on the borders with
the LEADING alignment.
The toolbarPanels are then accessible with getToolBarPanelAt(constraints) where constraints values
are BorderLayout.NORTH, EAST, WEST and SOUTH.
createDefaultContainer
public static ToolBarContainer createDefaultContainer(boolean topToolbar,
boolean leftToolBar,
boolean bottomToolBar,
boolean rightToolBar,
int alignment)
Creates a default ToolBarContainer with preinstalled toolbar panels on the borders with
the specified alignment
The value of the alignment argument must be one of
FlowLayout.LEFT
,
FlowLayout.RIGHT
,
FlowLayout.CENTER
,
FlowLayout.LEADING
, or
FlowLayout.TRAILING
.
The toolbarPanels are then accessible with getToolBarPanelAt(constraints) where constraints values
are BorderLayout.NORTH, EAST, WEST and SOUTH.
getComponentAt
public Component getComponentAt(Object constraints)
Returns the component for a given BorderLayout constraints
getConstraints
public Object getConstraints(Component comp)
Returns the BorderLayout constraints of the given component
getRegisteredToolBars
public List getRegisteredToolBars()
Returns the list of currently registered toolbars.
(eturns a new list at each invocation.)
getToolBarByName
public VLToolBar getToolBarByName(String name)
Returns the registered toolbar associated with the given name, or null if not found
getToolBarPanelAt
public ToolBarPanel getToolBarPanelAt(Object constraints)
Returns the ToolBarPanel for a given BorderLayout constraints
registerToolBar
public void registerToolBar(VLToolBar toolbar)
Registers a new ToolBar.
Registering is used when reading a xml configuration
remove
public void remove(Component comp)
Overriden to keep track of component constraints
remove
public void remove(int index)
Overriden to keep track of component constraints
removeAll
public void removeAll()
Overriden to keep track of component constraints
unregisterToolBar
public void unregisterToolBar(VLToolBar toolbar)
Unregisters a ToolBar.
Registering is used when reading a xml configuration
© Copyright 2004-2006 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications