net.sf.jzeno.echo.components.menubar
Class MenuItem
java.lang.Object
net.sf.jzeno.echo.components.menubar.MenuItem
public class MenuItem
- extends java.lang.Object
Method Summary |
void |
add(Component c)
|
void |
add(Component c,
int n)
|
void |
addActionListener(ActionListener l)
|
void |
addChangeListener(ChangeListener l)
|
void |
addHierarchyListener(HierarchyListener l)
|
void |
addItemListener(ItemListener l)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
|
void |
applyStyle(Style style)
|
void |
doAction()
|
boolean |
equals(java.lang.Object obj)
|
void |
fireActionPerformed(ActionEvent e)
|
void |
fireItemStateChanged(ItemEvent e)
|
void |
firePropertyChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
|
void |
firePropertyChange(java.lang.String propertyName,
char oldValue,
char newValue)
|
void |
firePropertyChange(java.lang.String propertyName,
double oldValue,
double newValue)
|
void |
firePropertyChange(java.lang.String propertyName,
float oldValue,
float newValue)
|
void |
firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue)
|
void |
firePropertyChange(java.lang.String propertyName,
long oldValue,
long newValue)
|
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
|
void |
fireStateChanged()
|
java.lang.String |
getActionCommand()
|
Color |
getBackground()
|
Color |
getBorderColor()
|
java.lang.String |
getClientId()
|
Component |
getComponent(int n)
|
int |
getComponentCount()
|
Component[] |
getComponents()
|
EchoInstance |
getEchoInstance()
|
Font |
getFont()
|
Color |
getForeground()
|
int |
getHorizontalAlignment()
|
int |
getHorizontalTextPosition()
|
ImageReference |
getIcon()
|
int |
getIconTextMargin()
|
int |
getId()
|
java.lang.Object |
getIdentifier()
|
EventListenerList |
getListenerList()
|
java.util.Locale |
getLocale()
|
ButtonModel |
getModel()
|
Component |
getParent()
|
Color |
getRolloverBackground()
|
Color |
getRolloverBorderColor()
|
Font |
getRolloverFont()
|
Color |
getRolloverForeground()
|
ImageReference |
getRolloverIcon()
|
ImageReference |
getRolloverSelectedIcon()
|
ImageReference |
getSelectedIcon()
|
java.lang.String |
getText()
|
java.lang.String |
getToolTipText()
|
int |
getVerticalAlignment()
|
int |
getVerticalTextPosition()
|
boolean |
hasActionListeners()
|
int |
hashCode()
|
int |
indexOf(Component c)
|
void |
init()
|
boolean |
isAncestorOf(Component c)
|
boolean |
isAsync()
|
boolean |
isEnabled()
|
boolean |
isFocused()
|
boolean |
isNoTabStop()
|
boolean |
isRecursivelyVisible()
|
boolean |
isRegistered()
|
boolean |
isRolloverEnabled()
|
boolean |
isSelected()
|
boolean |
isShowing()
|
boolean |
isVisible()
|
void |
processHierarchyEvent(long changeFlags,
Component changed,
Component changedParent)
|
void |
remove(Component c)
|
void |
remove(int n)
|
void |
removeActionListener(ActionListener l)
|
void |
removeAll()
|
void |
removeChangeListener(ChangeListener l)
|
void |
removeHierarchyListener(HierarchyListener l)
|
void |
removeItemListener(ItemListener l)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
|
java.lang.Object |
set(java.lang.reflect.Field field,
java.lang.Object newValue)
|
void |
setActionCommand(java.lang.String newValue)
|
void |
setAsync(boolean async)
|
void |
setBackground(Color newValue)
|
void |
setBorderColor(Color newBorderColor)
|
void |
setClientId(java.lang.String reusableId)
|
void |
setEnabled(boolean newValue)
|
void |
setFocused(boolean newValue)
|
void |
setFont(Font newValue)
|
void |
setForeground(Color newValue)
|
void |
setHorizontalAlignment(int newValue)
|
void |
setHorizontalTextPosition(int newValue)
|
void |
setIcon(ImageReference newValue)
|
void |
setIconTextMargin(int newValue)
|
void |
setIdentifier(java.lang.Object newValue)
|
void |
setLocale(java.util.Locale newValue)
|
void |
setModel(ButtonModel newValue)
|
void |
setNoTabStop(boolean newValue)
|
void |
setParent(Component parent)
|
void |
setRegistered(boolean registered)
|
void |
setRolloverBackground(Color newValue)
|
void |
setRolloverBorderColor(Color newBorderColor)
|
void |
setRolloverEnabled(boolean newValue)
|
void |
setRolloverFont(Font newValue)
|
void |
setRolloverForeground(Color newValue)
|
void |
setRolloverIcon(ImageReference newValue)
|
void |
setRolloverSelectedIcon(ImageReference newValue)
|
void |
setSelected(boolean newValue)
|
void |
setSelectedIcon(ImageReference newValue)
|
void |
setText(java.lang.String newValue)
|
void |
setToolTipText(java.lang.String newValue)
|
void |
setVerticalAlignment(int newValue)
|
void |
setVerticalTextPosition(int newValue)
|
void |
setVisible(boolean newValue)
|
java.lang.String |
toString()
|
void |
update()
|
void |
validate()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MenuItem
public MenuItem()
add
public void add(Component c,
int n)
add
public void add(Component c)
addActionListener
public void addActionListener(ActionListener l)
addChangeListener
public void addChangeListener(ChangeListener l)
addHierarchyListener
public void addHierarchyListener(HierarchyListener l)
addItemListener
public void addItemListener(ItemListener l)
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
applyStyle
public void applyStyle(Style style)
doAction
public void doAction()
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
fireActionPerformed
public void fireActionPerformed(ActionEvent e)
fireItemStateChanged
public void fireItemStateChanged(ItemEvent e)
firePropertyChange
public void firePropertyChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
firePropertyChange
public void firePropertyChange(java.lang.String propertyName,
char oldValue,
char newValue)
firePropertyChange
public void firePropertyChange(java.lang.String propertyName,
double oldValue,
double newValue)
firePropertyChange
public void firePropertyChange(java.lang.String propertyName,
float oldValue,
float newValue)
firePropertyChange
public void firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue)
firePropertyChange
public void firePropertyChange(java.lang.String propertyName,
long oldValue,
long newValue)
firePropertyChange
public void firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
fireStateChanged
public void fireStateChanged()
getActionCommand
public java.lang.String getActionCommand()
getBackground
public Color getBackground()
getBorderColor
public Color getBorderColor()
getClientId
public java.lang.String getClientId()
getComponent
public Component getComponent(int n)
getComponentCount
public int getComponentCount()
getComponents
public Component[] getComponents()
getEchoInstance
public EchoInstance getEchoInstance()
getFont
public Font getFont()
getForeground
public Color getForeground()
getHorizontalAlignment
public int getHorizontalAlignment()
getHorizontalTextPosition
public int getHorizontalTextPosition()
getIcon
public ImageReference getIcon()
getIconTextMargin
public int getIconTextMargin()
getId
public int getId()
getIdentifier
public java.lang.Object getIdentifier()
getListenerList
public EventListenerList getListenerList()
getLocale
public java.util.Locale getLocale()
getModel
public ButtonModel getModel()
getParent
public Component getParent()
getRolloverBackground
public Color getRolloverBackground()
getRolloverBorderColor
public Color getRolloverBorderColor()
getRolloverFont
public Font getRolloverFont()
getRolloverForeground
public Color getRolloverForeground()
getRolloverIcon
public ImageReference getRolloverIcon()
getRolloverSelectedIcon
public ImageReference getRolloverSelectedIcon()
getSelectedIcon
public ImageReference getSelectedIcon()
getText
public java.lang.String getText()
getToolTipText
public java.lang.String getToolTipText()
getVerticalAlignment
public int getVerticalAlignment()
getVerticalTextPosition
public int getVerticalTextPosition()
hasActionListeners
public boolean hasActionListeners()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
indexOf
public int indexOf(Component c)
init
public void init()
isAncestorOf
public boolean isAncestorOf(Component c)
isAsync
public boolean isAsync()
isEnabled
public boolean isEnabled()
isFocused
public boolean isFocused()
isNoTabStop
public boolean isNoTabStop()
isRecursivelyVisible
public boolean isRecursivelyVisible()
isRegistered
public final boolean isRegistered()
isRolloverEnabled
public boolean isRolloverEnabled()
isSelected
public boolean isSelected()
isShowing
public final boolean isShowing()
isVisible
public final boolean isVisible()
processHierarchyEvent
public void processHierarchyEvent(long changeFlags,
Component changed,
Component changedParent)
remove
public void remove(Component c)
remove
public void remove(int n)
removeActionListener
public void removeActionListener(ActionListener l)
removeAll
public void removeAll()
removeChangeListener
public void removeChangeListener(ChangeListener l)
removeHierarchyListener
public void removeHierarchyListener(HierarchyListener l)
removeItemListener
public void removeItemListener(ItemListener l)
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
set
public java.lang.Object set(java.lang.reflect.Field field,
java.lang.Object newValue)
throws java.lang.Exception
- Throws:
java.lang.Exception
setActionCommand
public void setActionCommand(java.lang.String newValue)
setAsync
public void setAsync(boolean async)
setBackground
public void setBackground(Color newValue)
setBorderColor
public void setBorderColor(Color newBorderColor)
setClientId
public void setClientId(java.lang.String reusableId)
setEnabled
public void setEnabled(boolean newValue)
setFocused
public void setFocused(boolean newValue)
setFont
public void setFont(Font newValue)
setForeground
public void setForeground(Color newValue)
setHorizontalAlignment
public void setHorizontalAlignment(int newValue)
setHorizontalTextPosition
public void setHorizontalTextPosition(int newValue)
setIcon
public void setIcon(ImageReference newValue)
setIconTextMargin
public void setIconTextMargin(int newValue)
setIdentifier
public void setIdentifier(java.lang.Object newValue)
setLocale
public void setLocale(java.util.Locale newValue)
setModel
public void setModel(ButtonModel newValue)
setNoTabStop
public void setNoTabStop(boolean newValue)
setParent
public void setParent(Component parent)
setRegistered
public void setRegistered(boolean registered)
setRolloverBackground
public void setRolloverBackground(Color newValue)
setRolloverBorderColor
public void setRolloverBorderColor(Color newBorderColor)
setRolloverEnabled
public void setRolloverEnabled(boolean newValue)
setRolloverFont
public void setRolloverFont(Font newValue)
setRolloverForeground
public void setRolloverForeground(Color newValue)
setRolloverIcon
public void setRolloverIcon(ImageReference newValue)
setRolloverSelectedIcon
public void setRolloverSelectedIcon(ImageReference newValue)
setSelected
public void setSelected(boolean newValue)
setSelectedIcon
public void setSelectedIcon(ImageReference newValue)
setText
public void setText(java.lang.String newValue)
setToolTipText
public void setToolTipText(java.lang.String newValue)
setVerticalAlignment
public void setVerticalAlignment(int newValue)
setVerticalTextPosition
public void setVerticalTextPosition(int newValue)
setVisible
public void setVisible(boolean newValue)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
update
public void update()
validate
public void validate()