|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JLayeredPane | +--org.freehep.swing.JSubToolBar
This defines a swing-like element which provides a popup toolbar. This is intended to provide a submenu-type functionality to toolbars. The component has a single selected element. If the visible button is clicked, the action associated with this button is run. However, if the button is pressed and held, a popup toolbar with all options is shown. The user then may select the desired option which will then become the selected button. The action associated with this is also run.
Field Summary |
Fields inherited from class javax.swing.JLayeredPane |
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JSubToolBar()
|
Method Summary | |
void |
add(Action action)
Add an action to this component. |
int |
getDelay()
Get the delay (in ms) between a mouse press and the popup toolbar being activated. |
protected JButton |
makeButtonFromAction(Action action)
This is used by subclasses to make a button from an action. |
void |
setDelay(int msDelay)
Set the delay (in ms) between a mouse press and the popup toolbar being activated. |
void |
setSelectedComponent(JComponent component)
Set which component is selected. |
protected void |
updatePreferredSize(Dimension dim)
Update the preferred, minimum, and maximum sizes of this component. |
Methods inherited from class javax.swing.JLayeredPane |
addImpl, getAccessibleContext, getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, paramString, putLayer, remove, setLayer, setLayer, setPosition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JSubToolBar()
Method Detail |
protected JButton makeButtonFromAction(Action action)
public void add(Action action)
public void setDelay(int msDelay)
public int getDelay()
public void setSelectedComponent(JComponent component)
protected void updatePreferredSize(Dimension dim)
|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |