|
VLab Common 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.psnc.vlab.util.gui.action.helper.ActionHelper
public final class ActionHelper
Class contains a set of utility methods for the Swing components
Constructor Summary | |
---|---|
ActionHelper()
|
Method Summary | |
---|---|
static void |
addObserver(ActionType observable,
ActionType observer)
Add action observer to the given observable object |
static void |
setAction(javax.swing.AbstractButton component,
AbstractActionDefault action,
boolean enabled)
Set action for the given component. |
static void |
setAction(javax.swing.AbstractButton component,
ActionType actionType,
boolean enabled)
Set action for the given component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionHelper()
Method Detail |
---|
public static void setAction(javax.swing.AbstractButton component, AbstractActionDefault action, boolean enabled)
component
- swing component, instance of AbstractButton
action
- instance of action AbstractActionDefault
enabled
- specifies whether action is enabledpublic static void setAction(javax.swing.AbstractButton component, ActionType actionType, boolean enabled)
component
- swing component, instance of AbstractButton
actionType
- action type, instance ActionType
enabled
- specifies whether action is enabledpublic static void addObserver(ActionType observable, ActionType observer)
observable
- observable instance Observable
observer
- observer instance Observer
|
VLab Common 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |