|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.curre.prefcount.gui.menu.MenuItemsBean
public class MenuItemsBean
Object of this class represents menu items bean to coordinate action events among menu bar menu items and option panel radio buttons.
Created date: Apr 9, 2008
| Constructor Summary | |
|---|---|
MenuItemsBean()
Constructs a new menu items bean object. |
|
| Method Summary | |
|---|---|
void |
addListener(java.lang.Object listener,
WindowComponent... itemEnums)
Adds listener to provided items. |
javax.swing.JButton |
createJButtonForChoosePlayerDialog(javax.swing.JPanel pane)
Creates a JButton for the choose player dialog. |
javax.swing.JButton |
getJButton(WindowComponent itemEnum,
javax.swing.JPanel pane)
Fetches a JButton object for the given
item enumeration. |
javax.swing.JMenuItem |
getJMenuItem(WindowComponent itemEnum)
Fetches a JMenuItem menu item
for the given item enumeration. |
javax.swing.JRadioButton |
getJRadioButton(WindowComponent itemEnum)
Fetches a JRadioButton radio button
for the given item enumeration. |
javax.swing.JRadioButtonMenuItem |
getJRadioButtonMenuItem(WindowComponent itemEnum)
Fetches a JRadioButtonMenuItem menu item
for the given item enumeration. |
java.awt.MenuItem |
getMenuItem(WindowComponent itemEnum)
Fetches a MenuItem menu item
for the given item enumeration. |
java.awt.CheckboxMenuItem |
getRadioButtonMenuItem(WindowComponent itemEnum)
Fetches a CheckboxMenuItem menu item
for the given item enumeration. |
void |
setActionListener(java.awt.event.ActionListener actionListener)
Setter for the main items action listener. |
void |
setSelected(WindowComponent itemEnum,
boolean isSelected)
Sets given radio button item selected status. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MenuItemsBean()
| Method Detail |
|---|
public void setActionListener(java.awt.event.ActionListener actionListener)
WindowComponent enum.
actionListener - action listener to set.public javax.swing.JRadioButtonMenuItem getJRadioButtonMenuItem(WindowComponent itemEnum)
JRadioButtonMenuItem menu item
for the given item enumeration. The item will be created
if it does not exist.
itemEnum - item enumeration that represents the required item.
public java.awt.CheckboxMenuItem getRadioButtonMenuItem(WindowComponent itemEnum)
CheckboxMenuItem menu item
for the given item enumeration. The item will be created
if it does not exist.
itemEnum - item enumeration that represents the required item.
public javax.swing.JRadioButton getJRadioButton(WindowComponent itemEnum)
JRadioButton radio button
for the given item enumeration. The item will be created
if it does not exist.
itemEnum - item enumeration that represents the required item.
public javax.swing.JButton getJButton(WindowComponent itemEnum,
javax.swing.JPanel pane)
JButton object for the given
item enumeration. The item will be created if it does
not exist.
itemEnum - item enumeration that represents the required item.pane - pass this object to add a shortcut to it (of present on the item's enum).
public javax.swing.JButton createJButtonForChoosePlayerDialog(javax.swing.JPanel pane)
pane - panel object to add a shortcut to it (required).
public javax.swing.JMenuItem getJMenuItem(WindowComponent itemEnum)
JMenuItem menu item
for the given item enumeration. The item will be created
if it does not exist.
itemEnum - item enumeration that represents the required item.
public java.awt.MenuItem getMenuItem(WindowComponent itemEnum)
MenuItem menu item
for the given item enumeration. The item will be created
if it does not exist.
itemEnum - item enumeration that represents the required item.
public void addListener(java.lang.Object listener,
WindowComponent... itemEnums)
listener - action listener to add to the provided items.itemEnums - item enumeration array.
public void setSelected(WindowComponent itemEnum,
boolean isSelected)
itemEnum - item enumeration that represents the required radio item.isSelected - true if the item should be selected; false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||