|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.AbstractButton
|
+--javax.swing.JMenuItem
|
+--javax.swing.JRadioButtonMenuItem
|
+--org.jscroll.widgets.RootRadioButtonMenuItem
This class creates a base radio button menu item. ActionListener, mnemonic,
keyboard shortcut, and title are set via the constructor.
A JScrollInternalFrame
object may optionally be associated with an instance of this class.
| Field Summary |
| 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.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 | |
RootRadioButtonMenuItem(ActionListener listener,
String itemTitle,
int mnemonic,
int shortcut,
boolean selected)
creates the RootRadioButtonMenuItem without an associated frame. |
|
RootRadioButtonMenuItem(ActionListener listener,
String itemTitle,
int mnemonic,
int shortcut,
boolean selected,
JScrollInternalFrame associatedFrame)
creates the RootRadioButtonMenuItem with an associated frame. |
|
| Method Summary | |
JScrollInternalFrame |
getAssociatedFrame()
returns the associated frame |
void |
setAssociatedFrame(JScrollInternalFrame associatedFrame)
sets the associated frame |
| Methods inherited from class javax.swing.JRadioButtonMenuItem |
getAccessibleContext, getUIClassID, paramString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RootRadioButtonMenuItem(ActionListener listener,
String itemTitle,
int mnemonic,
int shortcut,
boolean selected,
JScrollInternalFrame associatedFrame)
listener - the action listener to assignitemTitle - the title of the itemmnemonic - the mnemonic used to access the menushortcut - the keyboard shortcut used to access the menu.
-1 indicates no shortcut.selected - boolean that indicates whether
the menu item is selected or notassociatedFrame - the JScrollInternalFrame associated with the menu item
public RootRadioButtonMenuItem(ActionListener listener,
String itemTitle,
int mnemonic,
int shortcut,
boolean selected)
listener - the action listener to assignitemTitle - the title of the itemmnemonic - the mnemonic used to access the menushortcut - the keyboard shortcut used to access the menu.
-1 indicates no shortcut.selected - boolean that indicates whether
the menu item is selected or not| Method Detail |
public void setAssociatedFrame(JScrollInternalFrame associatedFrame)
setAssociatedFrame in interface FrameAccessorInterfaceassociatedFrame - the JScrollInternalFrame object to associate with
the menu itempublic JScrollInternalFrame getAssociatedFrame()
getAssociatedFrame in interface FrameAccessorInterface
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||