public class ComponentBottomBar extends TriAreaComponent
| Modifier and Type | Class and Description |
|---|---|
protected class |
ComponentBottomBar.SplitterHandleMouseMovementHandler |
| Modifier and Type | Field and Description |
|---|---|
protected ComponentBottomBar.SplitterHandleMouseMovementHandler |
fMouseListener |
protected JSplitPane |
fSplitPane |
protected JLabel |
fSplitterHandle |
protected static ImageIcon |
SPLITTER_HANDLE |
| Constructor and Description |
|---|
ComponentBottomBar() |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponentToCenterWithBorder(JComponent toolToAdd) |
void |
addComponentToLeftWithBorder(JComponent toolToAdd) |
void |
addComponentToRightWithBorder(JComponent toolToAdd) |
JComponent |
createAndAddButton(Icon icon,
ActionListener actionListener)
Adds a new button with the given icon.
|
PopdownButton |
createAndAddPopdownButton(Icon icon,
PopupMenuCustomizer popupMenuCustomizer)
Add a new pop-down style button.
|
void |
hideResizeHandle()
Hides the resize handle.
|
void |
installDraggableWidgetOnSplitPane(JSplitPane splitPane)
Connects the draggable widget in this
ComponentBottomBar to the divider of the
given JSplitPane. |
addComponentToCenter, addComponentToCenter, addComponentToLeft, addComponentToLeft, addComponentToRight, addComponentToRight, getCenterComponentCount, getComponent, getLeftComponentCount, getRightComponentCount, installWindowDraggerOnWindow, setBackgroundPainterprotected static final ImageIcon SPLITTER_HANDLE
protected JSplitPane fSplitPane
protected final JLabel fSplitterHandle
protected final ComponentBottomBar.SplitterHandleMouseMovementHandler fMouseListener
public void addComponentToLeftWithBorder(JComponent toolToAdd)
public void addComponentToCenterWithBorder(JComponent toolToAdd)
public void addComponentToRightWithBorder(JComponent toolToAdd)
public void installDraggableWidgetOnSplitPane(JSplitPane splitPane)
ComponentBottomBar to the divider of the
given JSplitPane. Thus when the user drags the ComponentBottomBar draggable
widget, the given JSplitPanes divider location will be adjusted.
DO THIS LAST AFTER YOU ADD ALL OTHER COMPONENTS TO THE RIGHTsplitPane - the JSplitPane to connect the draggable widget to.public PopdownButton createAndAddPopdownButton(Icon icon, PopupMenuCustomizer popupMenuCustomizer)
PopupMenuCustomizer will be called just
prior to each showing of the menu.icon - the icon to use in the pop-down menu.popupMenuCustomizer - the PopupMenuCustomizer to be called just prior to showing
the menu.public JComponent createAndAddButton(Icon icon, ActionListener actionListener)
ActionListener will be called when
the button is pressed.icon - the icon to use for the button.actionListener - the ActionListener to call when the button is pressed.public void hideResizeHandle()