com.alee.extended.menu
Class WebDynamicMenuItem

java.lang.Object
  extended by 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.
 
Constructor Summary
WebDynamicMenuItem()
           
WebDynamicMenuItem(javax.swing.ImageIcon icon)
           
WebDynamicMenuItem(javax.swing.ImageIcon icon, java.awt.event.ActionListener action)
           
 
Method Summary
 java.awt.event.ActionListener getAction()
           
 java.awt.Color getBorderColor()
           
 java.awt.Color getDisabledBorderColor()
           
 javax.swing.ImageIcon getIcon()
           
 java.awt.Insets getMargin()
           
 boolean isDrawBorder()
           
 void setAction(java.awt.event.ActionListener action)
           
 void setBorderColor(java.awt.Color borderColor)
           
 void setDisabledBorderColor(java.awt.Color disabledBorderColor)
           
 void setDrawBorder(boolean drawBorder)
           
 void setIcon(javax.swing.ImageIcon icon)
           
 void setMargin(java.awt.Insets margin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

WebDynamicMenuItem

public WebDynamicMenuItem()

WebDynamicMenuItem

public WebDynamicMenuItem(javax.swing.ImageIcon icon)

WebDynamicMenuItem

public WebDynamicMenuItem(javax.swing.ImageIcon icon,
                          java.awt.event.ActionListener action)
Method Detail

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)