|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.ui.UIHelper
public final class UIHelper
Method Summary | |
---|---|
static javax.swing.JButton |
buildButton(java.lang.String actionName)
Build and return a JButton instance with a gif icon with actionName as action command. |
static javax.swing.JButton |
buildButton(java.lang.String actionName,
java.awt.event.ActionListener actionListener)
Build and return a JButton instance with a gif icon with actionName as action command. |
static javax.swing.JMenu |
buildMenu(java.lang.String menuName)
Build and return a JMenu instance with an i18n text, and menuName as action command. |
static javax.swing.JMenuItem |
buildMenu(java.lang.String menuName,
java.awt.event.ActionListener actionListener)
Build and return a JMenuItem instance with an i18n text, and menuName as action command. |
static javax.swing.JMenu |
buildMenu(java.lang.String menuName,
char mnemonic)
Build and return a JMenu instance with an i18n text, and menuName as action command. |
static javax.swing.JMenuItem |
buildMenu(java.lang.String menuName,
char mnemonic,
java.awt.event.ActionListener actionListener)
Build and return a JMenuItem instance with an i18n text, and menuName as action command. |
static javax.swing.JMenuItem |
buildMenu(java.lang.String menuName,
char mnemonic,
java.lang.String icon,
java.awt.event.ActionListener actionListener)
Build and return a JMenuItem instance with an i18n text, and menuName as action command. |
static javax.swing.ImageIcon |
getIcon(java.lang.String icon)
Returns the associated icon. |
static javax.swing.ImageIcon |
getTbsIcon(java.lang.String icon)
Returns the associated TBS icon. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static javax.swing.ImageIcon getIcon(java.lang.String icon)
icon
- the icon path relative to the images dir
public static javax.swing.ImageIcon getTbsIcon(java.lang.String icon)
icon
- the TBS icon path relative to the images dir
public static javax.swing.JMenu buildMenu(java.lang.String menuName)
menuName
- the menu key name.
public static javax.swing.JButton buildButton(java.lang.String actionName)
actionName
- the action name.
public static javax.swing.JButton buildButton(java.lang.String actionName, java.awt.event.ActionListener actionListener)
actionName
- the action name.actionListener
- the listern to register to the new component.
public static javax.swing.JMenu buildMenu(java.lang.String menuName, char mnemonic)
menuName
- the menu key name.mnemonic
- the mnemonic char for this menu.
public static javax.swing.JMenuItem buildMenu(java.lang.String menuName, char mnemonic, java.lang.String icon, java.awt.event.ActionListener actionListener)
menuName
- the menu key name.mnemonic
- the mnemonic char for this menu.icon
- the icon name to set to this menu.actionListener
- the listern to register to the new component.
public static javax.swing.JMenuItem buildMenu(java.lang.String menuName, char mnemonic, java.awt.event.ActionListener actionListener)
menuName
- the menu key name.mnemonic
- the mnemonic char for this menu.actionListener
- the listern to register to the new component.
public static javax.swing.JMenuItem buildMenu(java.lang.String menuName, java.awt.event.ActionListener actionListener)
menuName
- the menu key name.actionListener
- the listern to register to the new component.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |