|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.iface.ui.IXToolItem
public class IXToolItem
A toolbar button that is not necessarily shown
Field Summary | |
---|---|
(package private) java.awt.event.ActionListener |
al
|
(package private) javax.swing.JToolBar |
bar
|
(package private) javax.swing.AbstractButton |
button
|
(package private) java.lang.String |
buttonLabel
|
(package private) boolean |
buttonShown
|
(package private) java.lang.String |
command
|
(package private) javax.swing.Icon |
icon
|
(package private) javax.swing.JMenuItem |
item
|
(package private) java.lang.Class |
itemClass
|
(package private) boolean |
itemShown
|
(package private) java.lang.String |
label
|
(package private) javax.swing.JMenu |
menu
|
(package private) int |
menuPosition
|
(package private) char |
mnemo
|
(package private) static char |
noMnemo
|
(package private) boolean |
showButtonText
|
(package private) java.lang.String |
toolTip
|
Constructor Summary | |
---|---|
IXToolItem(javax.swing.JMenu parentMenu,
java.awt.event.ActionListener al,
java.lang.String command,
java.lang.String label,
char mnemo,
java.lang.String toolTip)
As above with mnemo. |
|
IXToolItem(javax.swing.JMenu parentMenu,
java.awt.event.ActionListener al,
java.lang.String command,
java.lang.String label,
java.lang.String toolTip)
Creates an object that holds information for a menu item only. |
|
IXToolItem(javax.swing.JMenu parentMenu,
javax.swing.JToolBar bar,
java.awt.event.ActionListener al,
java.lang.String command,
java.lang.String label,
javax.swing.Icon icon,
char mnemo,
java.lang.String toolTip)
As above with mnemo. |
|
IXToolItem(javax.swing.JMenu parentMenu,
javax.swing.JToolBar bar,
java.awt.event.ActionListener al,
java.lang.String command,
java.lang.String label,
javax.swing.Icon icon,
java.lang.String toolTip)
Creates an object that holds information for a menu item and a toolbar button. |
|
IXToolItem(javax.swing.JMenu parentMenu,
javax.swing.JToolBar bar,
java.awt.event.ActionListener al,
java.lang.String command,
java.lang.String label,
java.lang.String buttonLabel,
javax.swing.Icon icon,
char mnemo,
java.lang.String toolTip)
As above with mnemo. |
|
IXToolItem(javax.swing.JMenu parentMenu,
javax.swing.JToolBar bar,
java.awt.event.ActionListener al,
java.lang.String command,
java.lang.String label,
java.lang.String buttonLabel,
javax.swing.Icon icon,
java.lang.String toolTip)
Creates an object that holds information for a menu item and a toolbar button with a seperate button label. |
|
IXToolItem(javax.swing.JToolBar bar,
java.awt.event.ActionListener al,
java.lang.String command,
java.lang.String label,
javax.swing.Icon icon,
java.lang.String toolTip)
Creates an object that holds information for a toolbar button only. |
Method Summary | |
---|---|
javax.swing.JCheckBoxMenuItem |
ensureCheckItem()
|
void |
hide()
|
void |
hideButton()
hides the button from its toolbar. |
void |
hideItem()
hides the button from its toolbar. |
javax.swing.JCheckBoxMenuItem |
makeCheckItem()
|
javax.swing.JMenuItem |
makeItem()
|
javax.swing.JRadioButtonMenuItem |
makeRadioItem()
|
javax.swing.JToggleButton |
makeRadioTool()
|
void |
setActionListener(java.awt.event.ActionListener al)
|
void |
setButtonLabel(java.lang.String label)
|
void |
setEnabled(boolean enabled)
|
void |
setIcon(javax.swing.Icon icon)
|
void |
setItemLabel(java.lang.String label)
|
void |
setLabel(java.lang.String label)
|
void |
setMenu(javax.swing.JMenu menu)
Sets the item's menu ONLY if the current menu is null. |
void |
setToolTip(java.lang.String text)
|
javax.swing.JMenuItem |
show()
Creates a button (if necessary) and shows it on its toolbar. |
javax.swing.AbstractButton |
showButton()
Creates a button (if necessary) and shows it on its toolbar. |
void |
showButtonText(boolean show)
|
javax.swing.JMenuItem |
showItem()
Creates a button (if necessary) and shows it on its toolbar. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.lang.String command
java.lang.String label
java.lang.String buttonLabel
javax.swing.Icon icon
boolean itemShown
boolean buttonShown
boolean showButtonText
char mnemo
java.lang.String toolTip
static final char noMnemo
javax.swing.JMenu menu
javax.swing.JMenuItem item
java.lang.Class itemClass
int menuPosition
javax.swing.JToolBar bar
javax.swing.AbstractButton button
java.awt.event.ActionListener al
Constructor Detail |
---|
public IXToolItem(javax.swing.JMenu parentMenu, java.awt.event.ActionListener al, java.lang.String command, java.lang.String label, java.lang.String toolTip)
public IXToolItem(javax.swing.JMenu parentMenu, java.awt.event.ActionListener al, java.lang.String command, java.lang.String label, char mnemo, java.lang.String toolTip)
public IXToolItem(javax.swing.JMenu parentMenu, javax.swing.JToolBar bar, java.awt.event.ActionListener al, java.lang.String command, java.lang.String label, javax.swing.Icon icon, java.lang.String toolTip)
public IXToolItem(javax.swing.JMenu parentMenu, javax.swing.JToolBar bar, java.awt.event.ActionListener al, java.lang.String command, java.lang.String label, javax.swing.Icon icon, char mnemo, java.lang.String toolTip)
public IXToolItem(javax.swing.JMenu parentMenu, javax.swing.JToolBar bar, java.awt.event.ActionListener al, java.lang.String command, java.lang.String label, java.lang.String buttonLabel, javax.swing.Icon icon, java.lang.String toolTip)
public IXToolItem(javax.swing.JMenu parentMenu, javax.swing.JToolBar bar, java.awt.event.ActionListener al, java.lang.String command, java.lang.String label, java.lang.String buttonLabel, javax.swing.Icon icon, char mnemo, java.lang.String toolTip)
public IXToolItem(javax.swing.JToolBar bar, java.awt.event.ActionListener al, java.lang.String command, java.lang.String label, javax.swing.Icon icon, java.lang.String toolTip)
Method Detail |
---|
public void setActionListener(java.awt.event.ActionListener al)
public javax.swing.JMenuItem makeItem()
public javax.swing.JRadioButtonMenuItem makeRadioItem()
public javax.swing.JCheckBoxMenuItem makeCheckItem()
public javax.swing.JToggleButton makeRadioTool()
public javax.swing.JCheckBoxMenuItem ensureCheckItem()
public javax.swing.JMenuItem show()
public javax.swing.JMenuItem showItem()
public javax.swing.AbstractButton showButton()
public void hide()
public void hideButton()
public void hideItem()
public void showButtonText(boolean show)
public void setIcon(javax.swing.Icon icon)
public void setLabel(java.lang.String label)
public void setItemLabel(java.lang.String label)
public void setButtonLabel(java.lang.String label)
public void setToolTip(java.lang.String text)
public void setEnabled(boolean enabled)
public void setMenu(javax.swing.JMenu menu)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |