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.SplitterHandleMouseMovementHandlerprotected JSplitPaneprotected final JLabelprotected static final ImageIcon -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponentToCenterWithBorder(JComponent toolToAdd) voidaddComponentToLeftWithBorder(JComponent toolToAdd) voidaddComponentToRightWithBorder(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.voidHides the resize handle.voidinstallDraggableWidgetOnSplitPane(JSplitPane splitPane) Connects the draggable widget in thisComponentBottomBarto 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 thisComponentBottomBarto the divider of the givenJSplitPane. Thus when the user drags theComponentBottomBardraggable widget, the givenJSplitPanes divider location will be adjusted. DO THIS LAST AFTER YOU ADD ALL OTHER COMPONENTS TO THE RIGHT- Parameters:
splitPane- theJSplitPaneto connect the draggable widget to.
-
createAndAddPopdownButton
Add a new pop-down style button. The givenPopupMenuCustomizerwill be called just prior to each showing of the menu.- Parameters:
icon- the icon to use in the pop-down menu.popupMenuCustomizer- thePopupMenuCustomizerto be called just prior to showing the menu.
-
createAndAddButton
Adds a new button with the given icon. The givenActionListenerwill be called when the button is pressed.- Parameters:
icon- the icon to use for the button.actionListener- theActionListenerto call when the button is pressed.
-
hideResizeHandle
public void hideResizeHandle()Hides the resize handle.
-