All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class guinea.awt.UIUtils

java.lang.Object
   |
   +----guinea.awt.UIUtils

public class UIUtils
extends Object
Utility methods for GUI stuff.


Constructor Index

· UIUtils()

Method Index

· createButton(String, String, ActionListener)
· createButton(String, String, ActionListener, Font)
· createButton(String, String, Font, ActionListener)
· createCheckboxMenuItem(String, String, ActionListener, boolean)
· createCheckboxMenuItem(String, String, ActionListener, boolean, Font)
· createLabel(String)
Create a label.
· createLabel(String, Font)
Create a label.
· createMenu(String)
· createMenu(String, Font)
· createMenuItem(String, String, ActionListener)
· createMenuItem(String, String, ActionListener, Font)
· createMenuItemTF(String, GPTextField)
· createMenuItemTF(String, String, GPTextField)
· createMenuItemTF(String, String, GPTextField, Font)
· createTextField(String, int, String, ActionListener)
Create a textfield.
· createTextField(String, int, String, ActionListener, Font)
Create a textfield.
· createTextField(String, String, ActionListener)
Create a textfield.
· createTextField(String, String, ActionListener, Font)
Create a textfield.

Constructors

· UIUtils
 public UIUtils()

Methods

· createTextField
 public static GPTextField createTextField(String text,
                                           String command,
                                           ActionListener l)
Create a textfield.

Parameters:
text - the text for the text field. If null, no text is set.
command - the action command used to deliver the text entry. Use null for not setting the command.
l - if non-null, the text entry will be delivered using an ActionEvent and the action command will be 'command=text' where the 'command' is the command string given above and 'text' is the text field's contents.
· createTextField
 public static GPTextField createTextField(String text,
                                           String command,
                                           ActionListener l,
                                           Font f)
Create a textfield.

Parameters:
text - the text for the text field. If null, no text is set.
command - the action command used to deliver the text entry. Use null for not setting the command.
l - if non-null, the text entry will be delivered using an ActionEvent and the action command will be 'command=text' where the 'command' is the command string given above and 'text' is the text field's contents.
f - the font for textfield or null (no font set).
· createTextField
 public static GPTextField createTextField(String text,
                                           int columns,
                                           String command,
                                           ActionListener l)
Create a textfield.

Parameters:
text - the text for the text field. If null, no text is set.
columns - the number of columns in the text field. Set to 0 if not specified.
command - the action command used to deliver the text entry. Use null for not setting the command.
l - if non-null, the text entry will be delivered using an ActionEvent and the action command will be 'command=text' where the 'command' is the command string given above and 'text' is the text field's contents.
· createTextField
 public static GPTextField createTextField(String text,
                                           int columns,
                                           String command,
                                           ActionListener l,
                                           Font f)
Create a textfield.

Parameters:
text - the text for the text field. If null, no text is set.
columns - the number of columns in the text field. Set to 0 if not specified.
command - the action command used to deliver the text entry. Use null for not setting the command.
l - if non-null, the text entry will be delivered using an ActionEvent and the action command will be 'command=text' where the 'command' is the command string given above and 'text' is the text field's contents.
f - the font for textfield or null (no font set).
· createButton
 public static Button createButton(String text,
                                   String command,
                                   ActionListener l)
· createButton
 public static Button createButton(String text,
                                   String command,
                                   Font f,
                                   ActionListener l)
· createButton
 public static Button createButton(String text,
                                   String command,
                                   ActionListener l,
                                   Font f)
· createLabel
 public static Label createLabel(String text)
Create a label.

Parameters:
text - the text of label.
· createLabel
 public static Label createLabel(String text,
                                 Font f)
Create a label.

Parameters:
text - the text of label.
f - the font of the label or null to not set font.
· createMenuItem
 public static MenuItem createMenuItem(String label,
                                       String command,
                                       ActionListener l)
· createMenuItem
 public static MenuItem createMenuItem(String label,
                                       String command,
                                       ActionListener l,
                                       Font menuitemfont)
· createMenuItemTF
 public static MenuItem createMenuItemTF(String label,
                                         String text,
                                         GPTextField tf,
                                         Font menuitemfont)
· createMenuItemTF
 public static MenuItem createMenuItemTF(String label,
                                         String text,
                                         GPTextField tf)
· createMenuItemTF
 public static MenuItem createMenuItemTF(String label,
                                         GPTextField tf)
· createCheckboxMenuItem
 public static MenuItem createCheckboxMenuItem(String label,
                                               String command,
                                               ActionListener l,
                                               boolean state)
· createCheckboxMenuItem
 public static MenuItem createCheckboxMenuItem(String label,
                                               String command,
                                               ActionListener l,
                                               boolean state,
                                               Font menuitemfont)
· createMenu
 public static Menu createMenu(String label)
· createMenu
 public static Menu createMenu(String label,
                               Font menufont)

All Packages  Class Hierarchy  This Package  Previous  Next  Index