|
||||||||||
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.JButton
org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.action.ActionButton
public class ActionButton
The ActionButton is used to connect an Action and its properties to a Button. This functionality is already implemented in JDK 1.3 but needed for JDK 1.2.2 compatibility.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.BaselineResizeBehavior |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, 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 | |
---|---|
ActionButton()
Creates a Button without any text and without an assigned Action. |
|
ActionButton(Action action)
Nreates an ActionButton and assigns the given action with the button. |
|
ActionButton(Icon icon)
Creates an ActionButton and sets the given icon on the button. |
|
ActionButton(String text)
Creates a Button and set the given text as label. |
|
ActionButton(String text,
Icon icon)
Creates an ActionButton and sets the given text and icon on the button. |
Method Summary | |
---|---|
Action |
getAction()
Returns the assigned action or null if no action has been assigned. |
void |
setAction(Action newAction)
Assigns the given action to this button. |
void |
setEnabled(boolean b)
Enables and disables this button and if an action is assigned to this button the propertychange is forwarded to the assigned action. |
Methods inherited from class javax.swing.JButton |
---|
getAccessibleContext, getUIClassID, isDefaultButton, isDefaultCapable, removeNotify, setDefaultCapable, updateUI |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ActionButton()
public ActionButton(String text)
text
- the label for the new button.public ActionButton(String text, Icon icon)
text
- the label for the new button.icon
- the icon for the button.public ActionButton(Icon icon)
icon
- the icon for the button.public ActionButton(Action action)
action
- the action.Method Detail |
---|
public Action getAction()
getAction
in class AbstractButton
public void setEnabled(boolean b)
setEnabled
in class AbstractButton
b
- the new enable-state of this buttonpublic void setAction(Action newAction)
setAction
in class AbstractButton
newAction
- the new action
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |