|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectix.iface.util.IFUtil
public class IFUtil
Class for static utilities.
| Method Summary | |
|---|---|
static void |
addMenuBarItem(javax.swing.JFrame frame,
java.lang.String menuName,
javax.swing.JMenuItem item)
Adds an item to a menu in a frame's menu bar. |
static void |
adjustLookAndFeel()
Makes any standard I-X changes to the look and feel. |
static javax.swing.JMenu |
ensureMenuBarMenu(javax.swing.JFrame frame,
java.lang.String menuName)
Ensures that a frame's menu bar contains a menu of the specified name, creating a menu and adding it if it is not alreay present. |
(package private) javax.swing.table.TableColumn |
findColumn(javax.swing.JTable tab,
java.lang.String header)
Returns the column that has the specified header. |
static javax.swing.JMenu |
getMenuBarMenu(javax.swing.JMenuBar bar,
java.lang.String menuName,
boolean mustHave)
Returns the named menu from a menu bar if the menu exists. |
static javax.swing.JButton |
makeButton(java.lang.String text,
java.awt.event.ActionListener lis)
Creates a button with the specified action Listener placed inside a CatchingActionListener. |
static javax.swing.JButton |
makeButton(java.lang.String text,
boolean enabled,
java.awt.event.ActionListener lis)
Creates a button with the specified action Listener placed inside a CatchingActionListener. |
static javax.swing.JMenuItem |
makeMenuItem(java.lang.String text,
java.awt.event.ActionListener lis)
Creates a menu-item with the specified action Listener placed inside a CatchingActionListener. |
static javax.swing.JMenuItem |
makeMenuItem(java.lang.String text,
boolean enabled,
java.awt.event.ActionListener lis)
Creates a menu-item, enabled or not, with the specified action Listener placed inside a CatchingActionListener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void adjustLookAndFeel()
IXMetalTheme
javax.swing.table.TableColumn findColumn(javax.swing.JTable tab,
java.lang.String header)
public static javax.swing.JButton makeButton(java.lang.String text,
java.awt.event.ActionListener lis)
CatchingActionListener.
public static javax.swing.JButton makeButton(java.lang.String text,
boolean enabled,
java.awt.event.ActionListener lis)
CatchingActionListener.
public static javax.swing.JMenuItem makeMenuItem(java.lang.String text,
java.awt.event.ActionListener lis)
CatchingActionListener.
public static javax.swing.JMenuItem makeMenuItem(java.lang.String text,
boolean enabled,
java.awt.event.ActionListener lis)
CatchingActionListener.
public static void addMenuBarItem(javax.swing.JFrame frame,
java.lang.String menuName,
javax.swing.JMenuItem item)
frame - the framemenuName - the text of a menu in the frame's menu bar.item - the menu item to addensureMenuBarMenu(JFrame frame, String menuName)
public static javax.swing.JMenu ensureMenuBarMenu(javax.swing.JFrame frame,
java.lang.String menuName)
frame - the framemenuName - the text of a menu in the frame's menu bar.
public static javax.swing.JMenu getMenuBarMenu(javax.swing.JMenuBar bar,
java.lang.String menuName,
boolean mustHave)
bar - the menu barmenuName - the text of a menu in the barmustHave - whether to throw an exception or return null
if the specified menu does not exist.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||