|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.AbstractAction | +--org.scopemvc.view.swing.SAction
A swing Action that issues a Control on action performed.
SAction uses the control ID and the resources in UIStrings to initialise
itself.
The following properties in SAction are initialised from UIStrings as follow
(replace [Control ID] by the actual value of the controlID property):
for more explanation on own to load
custom icons
,
Serialized FormField Summary |
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
SAction()
Constructor for the object |
|
SAction(java.lang.String inControlID)
Constructor for the object |
|
SAction(java.lang.String inControlID,
SwingView inView)
Sets text by looking up ControlID in UIStrings. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent inEvent)
Description of the Method |
protected Control |
createControl()
Override this to create something other than a simple no-parameter Control. |
java.lang.String |
getAcceleratorKey()
Gets the accelerator key |
java.lang.Object |
getBoundModel()
Gets the bound model |
java.lang.String |
getControlID()
Gets the control ID |
Controller |
getController()
Don't assign a Controller to SAction, instead delegate to the containing SwingView that has a parent Controller. |
java.lang.String |
getLongDescription()
Gets the long description |
java.lang.Integer |
getMnemonicKey()
Gets the mnemonic key |
java.lang.String |
getName()
Gets the name |
SwingView |
getOwner()
Gets the owner |
java.lang.String |
getShortDescription()
Gets the short description |
javax.swing.Icon |
getSmallIcon()
Gets the small icon |
void |
issueControl(Control inControl)
Don't assign a Controller to SAction, instead delegate to the containing SwingView that has a parent Controller. |
void |
setAcceleratorKey(java.lang.String value)
Sets the accelerator key |
void |
setBoundModel(java.lang.Object inModel)
Sets the bound model |
void |
setControlID(java.lang.String inControlID)
Sets the control ID |
void |
setController(Controller inController)
Don't assign a Controller to this component, instead delegate to the containing SwingView that has a parent Controller. |
void |
setLongDescription(java.lang.String value)
Sets the long description |
void |
setMnemonicKey(java.lang.Integer value)
Sets the mnemonic key |
void |
setName(java.lang.String value)
Sets the name |
void |
setOwner(SwingView inView)
Sets the owner |
void |
setShortDescription(java.lang.String value)
Sets the short description |
void |
setSmallIcon(javax.swing.Icon value)
Sets the small icon |
void |
unsetOwner(SwingView inView)
Description of the Method |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SAction()
public SAction(java.lang.String inControlID)
inControlID
- Description of the Parameterpublic SAction(java.lang.String inControlID, SwingView inView)
inControlID
- issue this Control when user chooses menuitem.inView
- the parent View that owns this menuitem. This is the view
that will issue a Control when the menuitem is actioned.Method Detail |
public java.lang.String getControlID()
public java.lang.String getName()
public javax.swing.Icon getSmallIcon()
public java.lang.String getAcceleratorKey()
public java.lang.String getLongDescription()
public java.lang.String getShortDescription()
public java.lang.Integer getMnemonicKey()
public SwingView getOwner()
getOwner
in interface SwingSubView
public void issueControl(Control inControl)
issueControl
in interface View
inControl
- Description of the Parameterpublic Controller getController()
getController
in interface View
public java.lang.Object getBoundModel()
getBoundModel
in interface View
public void setControlID(java.lang.String inControlID)
inControlID
- The new controlID valuepublic void setOwner(SwingView inView)
setOwner
in interface SwingSubView
inView
- The new owner valuepublic void setName(java.lang.String value)
value
- The new name valuepublic void setSmallIcon(javax.swing.Icon value)
value
- The new smallIcon valuepublic void setAcceleratorKey(java.lang.String value)
value
- The new acceleratorKey valuepublic void setLongDescription(java.lang.String value)
value
- The new longDescription valuepublic void setShortDescription(java.lang.String value)
value
- The new shortDescription valuepublic void setMnemonicKey(java.lang.Integer value)
value
- The new mnemonicKey valuepublic void setController(Controller inController)
setController
in interface View
inController
- The new controller valuepublic void setBoundModel(java.lang.Object inModel)
setBoundModel
in interface View
inModel
- The new boundModel valuepublic void unsetOwner(SwingView inView)
unsetOwner
in interface SwingSubView
inView
- Description of the Parameterpublic void actionPerformed(java.awt.event.ActionEvent inEvent)
actionPerformed
in interface java.awt.event.ActionListener
inEvent
- Description of the Parameterprotected Control createControl()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |