public class UnifiedToolBar extends Object
UnifiedToolBar toolBar = new UnifiedToolBar(); JButton button = new JButton("My Button"); button.putClientProperty("JButton.buttonType", "textured"); toolBar.addComponentToLeft(button);
Constructor and Description |
---|
UnifiedToolBar()
Creates a
UnifiedToolBar . |
Modifier and Type | Method and Description |
---|---|
void |
addComponentToCenter(JComponent toolToAdd)
Adds the given component to the side of this
UnifiedToolbar . |
void |
addComponentToLeft(JComponent toolToAdd)
Adds the given component to the left side of this
UnifiedToolbar . |
void |
addComponentToRight(JComponent toolToAdd)
Adds the given component to the right side of this
UnifiedToolBar . |
void |
disableBackgroundPainter()
Disables any custom background painter that may be installed.
|
JComponent |
getComponent()
Gets the user interface component representing this
UnifiedToolBar . |
void |
installWindowDraggerOnWindow(Window window)
Installs a drag listener on this
UnifiedToolBar such that if it is dragged, it will
move the given Window . |
public void addComponentToLeft(JComponent toolToAdd)
UnifiedToolbar
.toolToAdd
- the tool to add to this UnifiedToolbar
.public void addComponentToCenter(JComponent toolToAdd)
UnifiedToolbar
.toolToAdd
- the tool to add to this UnifiedToolbar
.public void addComponentToRight(JComponent toolToAdd)
UnifiedToolBar
.toolToAdd
- the tool to add to this UnifiedToolBar
.public void installWindowDraggerOnWindow(Window window)
UnifiedToolBar
such that if it is dragged, it will
move the given Window
.window
- the Window
to move when the this UnifiedToolbar
is dragged.public JComponent getComponent()
UnifiedToolBar
. The returned
JComponent
should be added to a container that will be displayed.UnifiedToolBar
.public void disableBackgroundPainter()