|
|||||||||
| Home >> All >> org >> scopemvc >> view >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.scopemvc.view.swing
Class SMenuItem

java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JMenuItem
org.scopemvc.view.swing.SMenuItem
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.ItemSelectable, java.awt.MenuContainer, javax.swing.MenuElement, java.io.Serializable, javax.swing.SwingConstants
- public class SMenuItem
- extends javax.swing.JMenuItem
A JMenuItem that can be owned by a SwingView using org.scopemvc.controller.swing.SwingContext, and which causes its owning view to issue a Control when selected.
- Version:
- $Revision: 1.5 $ $Date: 2002/05/26 10:30:54 $
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JMenuItem |
javax.swing.JMenuItem.AccessibleJMenuItem |
| Nested classes inherited from class javax.swing.AbstractButton |
javax.swing.AbstractButton.AccessibleAbstractButton, javax.swing.AbstractButton.ButtonChangeListener |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
private java.lang.String |
controlID
|
private static org.apache.commons.logging.Log |
LOG
|
private SwingView |
owner
View that 'owns' this menuitem at any time. |
| Fields inherited from class javax.swing.JMenuItem |
|
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| 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 | |
SMenuItem(java.lang.String inControlID)
|
|
SMenuItem(java.lang.String inControlID,
SwingView inView)
Sets text by looking up ControlID in UIStrings. |
|
SMenuItem(java.lang.String inControlID,
SwingView inView,
javax.swing.KeyStroke accelerator)
Sets text by looking up ControlID in UIStrings. |
|
| Method Summary | |
protected org.scopemvc.core.Control |
createControl()
Override this to create something other than a simple no-parameter Control. |
protected void |
fireActionPerformed(java.awt.event.ActionEvent inEvent)
Calls ActionListener#actionPerformed on each ActionListener in the button's listener list. |
java.lang.String |
getControlID()
|
void |
setControlID(java.lang.String inControlID)
|
void |
setOwner(SwingView inView)
|
void |
unsetOwner(SwingView inView)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
LOG
private static final org.apache.commons.logging.Log LOG
owner
private SwingView owner
- View that 'owns' this menuitem at any time. When
selected, the menuitem causes its owner
to issue a Control.
controlID
private java.lang.String controlID
| Constructor Detail |
SMenuItem
public SMenuItem(java.lang.String inControlID)
SMenuItem
public SMenuItem(java.lang.String inControlID, SwingView inView)
- Sets text by looking up ControlID in UIStrings.
SMenuItem
public SMenuItem(java.lang.String inControlID, SwingView inView, javax.swing.KeyStroke accelerator)
- Sets text by looking up ControlID in UIStrings.
| Method Detail |
setControlID
public void setControlID(java.lang.String inControlID)
getControlID
public java.lang.String getControlID()
setOwner
public void setOwner(SwingView inView)
unsetOwner
public void unsetOwner(SwingView inView)
fireActionPerformed
protected void fireActionPerformed(java.awt.event.ActionEvent inEvent)
- Description copied from class:
javax.swing.AbstractButton - Calls ActionListener.actionPerformed(java.awt.event.ActionEvent)>
ActionListener.actionPerformed(java.awt.event.ActionEvent)55 on each java.awt.event.ActionListener in the button's listener list.
createControl
protected org.scopemvc.core.Control createControl()
- Override this to create something other than a simple
no-parameter Control.
|
|||||||||
| Home >> All >> org >> scopemvc >> view >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC