|
miSim | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--misim.util.GUIUtils
Various static methods for creating GUI objects and laying them out.
Constructor Summary | |
GUIUtils()
|
Method Summary | |
static java.awt.Button |
addButtonToPanel(java.awt.Panel aPanel,
int iMsg,
java.awt.event.ActionListener actor)
Convenience method for adding a new button to a panel |
static java.awt.Button |
addButtonToPanel(java.awt.Panel aPanel,
int iMsg,
java.awt.event.ActionListener actor,
boolean enabled)
Convenience method for adding a new button to a panel |
static java.awt.Button |
addButtonToPanel(java.awt.Panel aPanel,
int iMsg,
java.awt.event.ActionListener actor,
java.lang.Object constraints)
Convenience method for adding a new button to a panel |
static java.awt.Button |
addButtonToPanel(java.awt.Panel aPanel,
int iMsg,
java.lang.String command,
java.awt.event.ActionListener actor)
Convenience method for adding a new button to a panel and set the button's action command |
static java.awt.Button |
addButtonToPanel(java.awt.Panel aPanel,
java.lang.String text,
java.lang.String command,
java.awt.event.ActionListener actor)
Convenience method for adding a new button to a panel and set the button's action command |
static java.awt.MenuItem |
addMenuItem(java.awt.PopupMenu popup,
int iMsg,
java.awt.event.ActionListener actor)
Convenience method for adding a new menu item to a menu |
static java.awt.TextField |
addTextToPanel(java.awt.Panel aPanel,
int iLength)
Convenience method for adding a new text field to a panel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GUIUtils()
Method Detail |
public static java.awt.Button addButtonToPanel(java.awt.Panel aPanel, int iMsg, java.lang.String command, java.awt.event.ActionListener actor)
aPanel
- The panel to add the button toiMsg
- The message id for the buttoncommand
- The action command for the buttonactor
- The action listener for the buttonpublic static java.awt.Button addButtonToPanel(java.awt.Panel aPanel, int iMsg, java.awt.event.ActionListener actor)
aPanel
- The panel to add the button toiMsg
- The messageId for the buttonactor
- The action listener for the buttonpublic static java.awt.Button addButtonToPanel(java.awt.Panel aPanel, java.lang.String text, java.lang.String command, java.awt.event.ActionListener actor)
aPanel
- The panel to add the button totext
- The text for the buttoncommand
- The action command for the buttonactor
- The action listener for the buttonpublic static java.awt.Button addButtonToPanel(java.awt.Panel aPanel, int iMsg, java.awt.event.ActionListener actor, boolean enabled)
aPanel
- The panel to add the button toiMsg
- The messageId for the buttonactor
- The action listener for the buttonenabled
- True if the button is to be enabled, false otherwisepublic static java.awt.Button addButtonToPanel(java.awt.Panel aPanel, int iMsg, java.awt.event.ActionListener actor, java.lang.Object constraints)
aPanel
- The panel to add the button toiMsg
- The messageId for the buttonactor
- The action listener for the buttonconstraints
- A layout constraints objectpublic static java.awt.TextField addTextToPanel(java.awt.Panel aPanel, int iLength)
aPanel
- The panel to add the field toiLength
- The length of the text fieldpublic static java.awt.MenuItem addMenuItem(java.awt.PopupMenu popup, int iMsg, java.awt.event.ActionListener actor)
popup
- The popup menu to add the menu item toiMsg
- The message id for the buttonactor
- The action listener for the button
|
miSim | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |