|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectedu.sdsc.inca.IncatComponents
public class IncatComponents
This class contains static convenience methods and constants used in the construction and display of Incat GUI components.
| Constructor Summary | |
|---|---|
IncatComponents()
|
|
| Method Summary | |
|---|---|
static void |
alignBoxHeights(javax.swing.Box[] boxes)
Adds vertical struts to a set of Boxes to make them the same height. |
static javax.swing.Box |
BoxFactory(javax.swing.JComponent[] components,
boolean centered)
Returns a Box that contains the specified components. |
static javax.swing.JButton |
JButtonFactory(java.lang.String label,
java.lang.String actionCommand,
java.awt.event.ActionListener listener)
Returns a JButton that will send the specified event to the specified listener when pressed. |
static javax.swing.JMenuItem |
JMenuItemFactory(java.lang.String label,
java.lang.String actionCommand,
java.awt.event.ActionListener listener)
Returns a JMenuItem that will send the specified event to the specified listener when selected. |
static javax.swing.JMenuItem |
JMenuItemFactory(java.lang.String label,
java.lang.String actionCommand,
java.awt.event.ActionListener listener,
char shortcut)
Returns a JMenuItem that will send the specified event to the specified listener when selected or when a specified shortcut key combo is pressed. |
static javax.swing.JPasswordField |
JPasswordFieldFactory(int width,
java.lang.String actionCommand,
java.awt.event.ActionListener listener)
Returns a JPasswordField of the specified width that will send the specified event to the specified listener when text is entered. |
static javax.swing.JTextField |
JTextFieldFactory(int width,
java.lang.String actionCommand,
java.awt.event.ActionListener listener)
Returns a JTextField of the specified width that will send the specified event to the specified listener when text is entered. |
static boolean |
setJComboBoxSelectedString(javax.swing.JComboBox box,
java.lang.String s)
Sets the selected element of the specified JComboBox to the element that matches the specified string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IncatComponents()
| Method Detail |
|---|
public static void alignBoxHeights(javax.swing.Box[] boxes)
boxes - the boxes to align
public static javax.swing.Box BoxFactory(javax.swing.JComponent[] components,
boolean centered)
components - components to place in the Box; null elements indicate
the end of a row of componentscentered - indicates whether or not the components should be centered
public static javax.swing.JButton JButtonFactory(java.lang.String label,
java.lang.String actionCommand,
java.awt.event.ActionListener listener)
label - the label displayed on the buttonactionCommand - command sent when the button is pressed, optionallistener - listener notified when button is pressed, optional
public static javax.swing.JMenuItem JMenuItemFactory(java.lang.String label,
java.lang.String actionCommand,
java.awt.event.ActionListener listener,
char shortcut)
label - the label displayed on the menu itemactionCommand - command sent when the menu item is selectedlistener - listener notified when menu item is selectedshortcut - if non-blank, a keyboard shortcut character for the item
public static javax.swing.JMenuItem JMenuItemFactory(java.lang.String label,
java.lang.String actionCommand,
java.awt.event.ActionListener listener)
label - the label displayed on the menu itemactionCommand - command sent when the menu item is selectedlistener - listener notified when menu item is selected
public static javax.swing.JPasswordField JPasswordFieldFactory(int width,
java.lang.String actionCommand,
java.awt.event.ActionListener listener)
width - the number of characters in the password fieldactionCommand - command sent when return is pressed, optionallistener - listener notified when return is pressed, optional
public static javax.swing.JTextField JTextFieldFactory(int width,
java.lang.String actionCommand,
java.awt.event.ActionListener listener)
width - the number of characters in the text fieldactionCommand - command sent when return is pressed, optionallistener - listener notified when return is pressed, optional
public static boolean setJComboBoxSelectedString(javax.swing.JComboBox box,
java.lang.String s)
box - the box to sets - the value to match
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||