com.alee.extended.menu
Class WebDynamicMenuItem
java.lang.Object
com.alee.extended.menu.WebDynamicMenuItem
public class WebDynamicMenuItem
- extends java.lang.Object
Standard dynamic menu item data.
- Author:
- Mikle Garin
Field Summary |
protected java.awt.event.ActionListener |
action
Menu item action. |
protected java.awt.Color |
borderColor
|
protected java.awt.Color |
disabledBorderColor
|
protected boolean |
drawBorder
|
protected javax.swing.ImageIcon |
icon
Menu item icon. |
protected java.awt.Insets |
margin
Menu item icon margin. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
icon
protected javax.swing.ImageIcon icon
- Menu item icon.
action
protected java.awt.event.ActionListener action
- Menu item action.
margin
protected java.awt.Insets margin
- Menu item icon margin.
drawBorder
protected boolean drawBorder
borderColor
protected java.awt.Color borderColor
disabledBorderColor
protected java.awt.Color disabledBorderColor
WebDynamicMenuItem
public WebDynamicMenuItem()
WebDynamicMenuItem
public WebDynamicMenuItem(javax.swing.ImageIcon icon)
WebDynamicMenuItem
public WebDynamicMenuItem(javax.swing.ImageIcon icon,
java.awt.event.ActionListener action)
getIcon
public javax.swing.ImageIcon getIcon()
setIcon
public void setIcon(javax.swing.ImageIcon icon)
getAction
public java.awt.event.ActionListener getAction()
setAction
public void setAction(java.awt.event.ActionListener action)
getMargin
public java.awt.Insets getMargin()
setMargin
public void setMargin(java.awt.Insets margin)
isDrawBorder
public boolean isDrawBorder()
setDrawBorder
public void setDrawBorder(boolean drawBorder)
getBorderColor
public java.awt.Color getBorderColor()
setBorderColor
public void setBorderColor(java.awt.Color borderColor)
getDisabledBorderColor
public java.awt.Color getDisabledBorderColor()
setDisabledBorderColor
public void setDisabledBorderColor(java.awt.Color disabledBorderColor)