|
|||||||||
| 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.AbstractButton
javax.swing.JMenuItem
javax.swing.JCheckBoxMenuItem
org.dishevelled.identify.IdCheckBoxMenuItem
public final class IdCheckBoxMenuItem
An extension of JCheckBoxMenuItem that displays the name property value and appropriate icon from an icon bundle for an identifiable action.
IdentifiableAction,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JCheckBoxMenuItem |
|---|
JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem |
| Nested classes/interfaces inherited from class javax.swing.JMenuItem |
|---|
JMenuItem.AccessibleJMenuItem |
| Nested classes/interfaces inherited from class javax.swing.AbstractButton |
|---|
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
| 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 | |
|---|---|
static IconSize |
DEFAULT_ICON_SIZE
Default icon size. |
| 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 | |
|---|---|
IdCheckBoxMenuItem(IdentifiableAction action)
Create a new check box menu item with the specified identifiable action. |
|
IdCheckBoxMenuItem(IdentifiableAction action,
boolean state)
Create a new check box menu item with the specified identifiable action and state. |
|
IdCheckBoxMenuItem(IdentifiableAction action,
IconSize iconSize)
Create a new check box menu item with the specified identifiable action and icon size. |
|
IdCheckBoxMenuItem(IdentifiableAction action,
IconSize iconSize,
boolean state)
Create a new check box menu item with the specified identifiable action, icon size, and state. |
|
| Method Summary | |
|---|---|
void |
applyComponentOrientation(ComponentOrientation orientation)
|
protected void |
configurePropertiesFromAction(Action action)
|
IconSize |
getIconSize()
Return the icon size for this check box menu item. |
IconTextDirection |
getIconTextDirection()
Return the icon text direction for this check box menu item. |
void |
setComponentOrientation(ComponentOrientation orientation)
|
void |
setIconSize(IconSize iconSize)
Set the icon size for this check box menu item to iconSize. |
| Methods inherited from class javax.swing.JCheckBoxMenuItem |
|---|
getAccessibleContext, getSelectedObjects, getState, getUIClassID, paramString, setState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final IconSize DEFAULT_ICON_SIZE
| Constructor Detail |
|---|
public IdCheckBoxMenuItem(IdentifiableAction action)
action - identifiable action, must not be null
public IdCheckBoxMenuItem(IdentifiableAction action,
boolean state)
action - identifiable action, must not be nullstate - true if this check box menu item is selected
public IdCheckBoxMenuItem(IdentifiableAction action,
IconSize iconSize)
action - identifiable action, must not be nulliconSize - icon size, must not be null
public IdCheckBoxMenuItem(IdentifiableAction action,
IconSize iconSize,
boolean state)
action - identifiable action, must not be nulliconSize - icon size, must not be nullstate - true if this check box menu item is selected| Method Detail |
|---|
public IconSize getIconSize()
public void setIconSize(IconSize iconSize)
iconSize.
This is a bound property.
iconSize - icon size, must not be nullpublic IconTextDirection getIconTextDirection()
public void setComponentOrientation(ComponentOrientation orientation)
setComponentOrientation in class Componentpublic void applyComponentOrientation(ComponentOrientation orientation)
applyComponentOrientation in class Containerprotected void configurePropertiesFromAction(Action action)
configurePropertiesFromAction in class JMenuItem
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||