Package com.explodingpixels.macwidgets
Class ComponentBottomBar
- java.lang.Object
-
- com.explodingpixels.macwidgets.TriAreaComponent
-
- com.explodingpixels.macwidgets.ComponentBottomBar
-
public class ComponentBottomBar extends TriAreaComponent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
ComponentBottomBar.SplitterHandleMouseMovementHandler
-
Field Summary
Fields Modifier and Type Field Description protected ComponentBottomBar.SplitterHandleMouseMovementHandler
fMouseListener
protected javax.swing.JSplitPane
fSplitPane
protected javax.swing.JLabel
fSplitterHandle
protected static javax.swing.ImageIcon
SPLITTER_HANDLE
-
Constructor Summary
Constructors Constructor Description ComponentBottomBar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComponentToCenterWithBorder(javax.swing.JComponent toolToAdd)
void
addComponentToLeftWithBorder(javax.swing.JComponent toolToAdd)
void
addComponentToRightWithBorder(javax.swing.JComponent toolToAdd)
javax.swing.JComponent
createAndAddButton(javax.swing.Icon icon, java.awt.event.ActionListener actionListener)
Adds a new button with the given icon.PopdownButton
createAndAddPopdownButton(javax.swing.Icon icon, PopupMenuCustomizer popupMenuCustomizer)
Add a new pop-down style button.void
hideResizeHandle()
Hides the resize handle.void
installDraggableWidgetOnSplitPane(javax.swing.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 Detail
-
SPLITTER_HANDLE
protected static final javax.swing.ImageIcon SPLITTER_HANDLE
-
fSplitPane
protected javax.swing.JSplitPane fSplitPane
-
fSplitterHandle
protected final javax.swing.JLabel fSplitterHandle
-
fMouseListener
protected final ComponentBottomBar.SplitterHandleMouseMovementHandler fMouseListener
-
-
Method Detail
-
addComponentToLeftWithBorder
public void addComponentToLeftWithBorder(javax.swing.JComponent toolToAdd)
-
addComponentToCenterWithBorder
public void addComponentToCenterWithBorder(javax.swing.JComponent toolToAdd)
-
addComponentToRightWithBorder
public void addComponentToRightWithBorder(javax.swing.JComponent toolToAdd)
-
installDraggableWidgetOnSplitPane
public void installDraggableWidgetOnSplitPane(javax.swing.JSplitPane splitPane)
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
public PopdownButton createAndAddPopdownButton(javax.swing.Icon icon, PopupMenuCustomizer popupMenuCustomizer)
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
public javax.swing.JComponent createAndAddButton(javax.swing.Icon icon, java.awt.event.ActionListener actionListener)
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.
-
-