public class TLcdGXYSetControllerAction extends ALcdAction implements ILcdAction
ILcdAction
sets a given
ILcdGXYController
on a given ILcdGXYView
.
The action automatically updates the ILcdAction.SELECTED_KEY
value based on whether the controller is active or not.changeSupport
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
Constructor and Description |
---|
TLcdGXYSetControllerAction()
Creates a new controller set action with a default name.
|
TLcdGXYSetControllerAction(boolean aRegisterInstance)
Deprecated.
use the constructor without parameters.
|
TLcdGXYSetControllerAction(ILcdGXYController aGXYController)
Creates a new controller set action with the given controller.
|
TLcdGXYSetControllerAction(ILcdGXYController aGXYController,
boolean aRegisterInstance)
Deprecated.
|
TLcdGXYSetControllerAction(ILcdGXYController aGXYController,
String aName,
ILcdIcon aIcon)
Creates a new controller set action with the given controller, name, and icon.
|
TLcdGXYSetControllerAction(ILcdGXYView aGXYView,
ILcdGXYController aGXYController)
Creates a new controller set action with the given controller and view.
|
TLcdGXYSetControllerAction(ILcdGXYView aGXYView,
ILcdGXYController aGXYController,
boolean aRegisterInstance)
Deprecated.
|
TLcdGXYSetControllerAction(ILcdGXYView aGXYView,
ILcdGXYController aGXYController,
String aName,
ILcdIcon aIcon)
Creates a new controller set action with the given controller, view, name, and icon.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
ILcdGXYController |
getGXYController()
Returns the controller configured for this action.
|
ILcdGXYView |
getGXYView()
Returns the view on which to activate the configured controller.
|
boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setGXYController(ILcdGXYController aGXYController)
Sets the controller that this action should activate on the view.
|
void |
setGXYView(ILcdGXYView aGXYView)
Sets the view on which to activate the configured controller.
|
void |
setTraceOn(boolean aTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValue, isEnabled, putValue, setEnabled
addPropertyChangeListener, removePropertyChangeListener
public TLcdGXYSetControllerAction()
public TLcdGXYSetControllerAction(ILcdGXYController aGXYController)
aGXYController
- the controller to activate. Determines the name, short description and icon
of this action.setGXYView(ILcdGXYView)
public TLcdGXYSetControllerAction(ILcdGXYView aGXYView, ILcdGXYController aGXYController)
aGXYController
- the controller to activate. Determines the name, short description and icon
of this action.aGXYView
- the view for which to activate the controllerpublic TLcdGXYSetControllerAction(ILcdGXYController aGXYController, String aName, ILcdIcon aIcon)
aGXYController
- the controller to activate. Determines the short description of this action. of this action.aName
- the name of this actionaIcon
- the icon of this actionsetGXYView(ILcdGXYView)
public TLcdGXYSetControllerAction(ILcdGXYView aGXYView, ILcdGXYController aGXYController, String aName, ILcdIcon aIcon)
aGXYView
- the view to activate the controller on.aGXYController
- the controller to activate. Determines the short description of this action.aName
- the name of this actionaIcon
- the icon of this actionsetGXYView(ILcdGXYView)
public TLcdGXYSetControllerAction(boolean aRegisterInstance)
public TLcdGXYSetControllerAction(ILcdGXYView aGXYView, ILcdGXYController aGXYController, boolean aRegisterInstance)
TLcdGXYSetControllerAction(ILcdGXYView aGXYView, ILcdGXYController aGXYController)
instead.public TLcdGXYSetControllerAction(ILcdGXYController aGXYController, boolean aRegisterInstance)
TLcdGXYSetControllerAction(ILcdGXYController aGXYController)
instead.public void setTraceOn(boolean aTraceOn)
true
or false
as argument automatically turns
off tracing for all other class instances for which
setTraceOn
has not been called.
If the argument is false
then only the informative, warning
and error log messages are recorded.setTraceOn
in class ALcdAction
aTraceOn
- if true then all log messages are recorded for this
instance. If false, then only the informative, warning and
error log messages are recorded.public boolean isTraceOn()
true
if tracing is enabled for this class.isTraceOn
in class ALcdAction
public ILcdGXYView getGXYView()
public void setGXYView(ILcdGXYView aGXYView)
aGXYView
- the view on which to activate the configured controllerpublic void setGXYController(ILcdGXYController aGXYController)
aGXYController
- the controller that this action should activate on the view.getGXYController()
public ILcdGXYController getGXYController()
setGXYController(ILcdGXYController)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener