|
VLab Common 1.2 | |||||||||
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
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 |
addObserver(ActionType observable,
java.util.Observer 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. |
static void |
setAction(javax.swing.AbstractButton component,
ActionType actionType,
boolean enabled,
boolean associate)
Set action for the given component. |
static void |
setSelected(ActionDecorator aDecorator,
boolean selected)
Change selection of all AbstractButton components associated with
this action. |
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 setAction(javax.swing.AbstractButton component, ActionType actionType, boolean enabled, boolean associate)
component
- swing component, instance of AbstractButton
actionType
- action type, instance ActionType
enabled
- specifies whether action is enabledassociate
- specifies whether source components should be associated
with this actionpublic static void setSelected(ActionDecorator aDecorator, boolean selected)
AbstractButton
components associated with
this action.
aDecorator
- instance of ActionDecorator
selected
- specifies whether AbstractButton
should be
selected or notpublic static void addObserver(ActionType observable, ActionType observer)
observable
- observable instance Observable
observer
- observer instance Observer
public static void addObserver(ActionType observable, java.util.Observer observer)
observable
- observable instance Observable
observer
- observer instance Observer
|
VLab Common 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |