|
org.openide.awt 7.55.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JToolBar
org.openide.awt.ToolbarWithOverflow
public class ToolbarWithOverflow
ToolbarWithOverflow provides a component which is useful for displaying commonly used actions. It adds an overflow button when the toolbar becomes too small to show all the available actions.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JToolBar |
|---|
JToolBar.AccessibleJToolBar, JToolBar.Separator |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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 javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ToolbarWithOverflow()
Creates a new tool bar; orientation defaults to HORIZONTAL. |
|
ToolbarWithOverflow(int orientation)
Creates a new tool bar with the specified orientation. |
|
ToolbarWithOverflow(String name)
Creates a new tool bar with the specified name. |
|
ToolbarWithOverflow(String name,
int orientation)
Creates a new tool bar with a specified name and
orientation. |
|
| Method Summary | |
|---|---|
void |
addNotify()
|
Dimension |
getPreferredSize()
|
boolean |
isDisplayOverflowOnHover()
Returns whether the overflow should be displayed on hover or not. |
void |
removeAll()
|
void |
removeNotify()
|
void |
setDisplayOverflowOnHover(boolean displayOverflowOnHover)
Sets whether the overflow should be displayed on hover or not. |
void |
setOrientation(int o)
|
void |
validate()
|
| Methods inherited from class javax.swing.JToolBar |
|---|
add, addImpl, addSeparator, addSeparator, createActionChangeListener, createActionComponent, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, paintBorder, paramString, setBorderPainted, setFloatable, setLayout, setMargin, setRollover, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ToolbarWithOverflow()
HORIZONTAL.
public ToolbarWithOverflow(int orientation)
orientation. The
orientation must be either
HORIZONTAL or
VERTICAL.
orientation - the orientation desiredpublic ToolbarWithOverflow(String name)
name. The name is used as the title of the undocked tool
bar. The default orientation is
HORIZONTAL.
name - the name of the tool bar
public ToolbarWithOverflow(String name,
int orientation)
name and
orientation. All other constructors call this constructor.
If
orientation is an invalid value, an exception will be
thrown.
name - the name of the tool barorientation - the initial orientation -- it must be * either HORIZONTAL or VERTICAL
IllegalArgumentException - if orientation is neither
HORIZONTAL nor VERTICAL| Method Detail |
|---|
public void addNotify()
addNotify in class JComponentpublic void removeNotify()
removeNotify in class JComponentpublic boolean isDisplayOverflowOnHover()
true.
true if overflow is displayed on hover; false otherwisepublic void setDisplayOverflowOnHover(boolean displayOverflowOnHover)
true.
displayOverflowOnHover - if true, the overflow will be displayed on hover;
false otherwisepublic Dimension getPreferredSize()
getPreferredSize in class JComponentpublic void setOrientation(int o)
setOrientation in class JToolBarpublic void removeAll()
removeAll in class Containerpublic void validate()
validate in class Container
|
org.openide.awt 7.55.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||