Package com.explodingpixels.macwidgets
Class ComponentBottomBar
java.lang.Object
com.explodingpixels.macwidgets.TriAreaComponent
com.explodingpixels.macwidgets.ComponentBottomBar
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ComponentBottomBar.SplitterHandleMouseMovementHandler
protected JSplitPane
protected final JLabel
protected static final ImageIcon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponentToCenterWithBorder
(JComponent toolToAdd) void
addComponentToLeftWithBorder
(JComponent toolToAdd) void
addComponentToRightWithBorder
(JComponent toolToAdd) createAndAddButton
(Icon icon, ActionListener actionListener) Adds a new button with the given icon.createAndAddPopdownButton
(Icon icon, PopupMenuCustomizer popupMenuCustomizer) Add a new pop-down style button.void
Hides the resize handle.void
installDraggableWidgetOnSplitPane
(JSplitPane splitPane) Connects the draggable widget in thisComponentBottomBar
to the divider of the givenJSplitPane
.Methods inherited from class com.explodingpixels.macwidgets.TriAreaComponent
addComponentToCenter, addComponentToCenter, addComponentToLeft, addComponentToLeft, addComponentToRight, addComponentToRight, getCenterComponentCount, getComponent, getLeftComponentCount, getRightComponentCount, installWindowDraggerOnWindow, setBackgroundPainter
-
Field Details
-
SPLITTER_HANDLE
-
fSplitPane
-
fSplitterHandle
-
fMouseListener
-
-
Constructor Details
-
ComponentBottomBar
public ComponentBottomBar()
-
-
Method Details
-
addComponentToLeftWithBorder
-
addComponentToCenterWithBorder
-
addComponentToRightWithBorder
-
installDraggableWidgetOnSplitPane
Connects the draggable widget in thisComponentBottomBar
to the divider of the givenJSplitPane
. Thus when the user drags theComponentBottomBar
draggable widget, the givenJSplitPane
s divider location will be adjusted. DO THIS LAST AFTER YOU ADD ALL OTHER COMPONENTS TO THE RIGHT- Parameters:
splitPane
- theJSplitPane
to connect the draggable widget to.
-
createAndAddPopdownButton
Add a new pop-down style button. The givenPopupMenuCustomizer
will be called just prior to each showing of the menu.- Parameters:
icon
- the icon to use in the pop-down menu.popupMenuCustomizer
- thePopupMenuCustomizer
to be called just prior to showing the menu.
-
createAndAddButton
Adds a new button with the given icon. The givenActionListener
will be called when the button is pressed.- Parameters:
icon
- the icon to use for the button.actionListener
- theActionListener
to call when the button is pressed.
-
hideResizeHandle
public void hideResizeHandle()Hides the resize handle.
-