org.xulux.guilayer.swing.widgets
Class MenuItem

java.lang.Object
  extended by org.xulux.gui.XuluxWidget
      extended by org.xulux.guilayer.swing.widgets.MenuItem
All Implemented Interfaces:
java.io.Serializable, org.xulux.api.gui.IWidget

public class MenuItem
extends org.xulux.gui.XuluxWidget

Creates a menuitem or a seperator, based on the type of menuitem

Version:
$Id: MenuItem.java,v 1.1 2005/12/18 12:58:18 mvdb Exp $
Author:
Martin van den Bemt
See Also:
Serialized Form

Field Summary
protected  java.awt.event.ActionListener actionListener
          the actionlistener
protected  javax.swing.JMenuItem item
          The native menuitem
protected  java.util.List listenerList
          the nyx listeners
protected  javax.swing.JSeparator separator
          the native seperator
 
Fields inherited from class org.xulux.gui.XuluxWidget
initialized, initializing, isRefreshing, log, previousValue, properties, value, visible
 
Constructor Summary
MenuItem(java.lang.String name)
           
 
Method Summary
 void addXuluxListener(org.xulux.api.gui.IXuluxListener listener)
           
 boolean canContainValue()
           
 void destroy()
           
 void focus()
           
 java.lang.Object getGuiValue()
           
 java.lang.Object getNativeWidget()
           
 org.xulux.api.gui.IWidgetInitializer getWidgetInitializer()
           
 void initialize()
           
 boolean isValueEmpty()
           
 void refresh()
           
 
Methods inherited from class org.xulux.gui.XuluxWidget
addChildWidget, addDependency, addPropertyHandler, addPropertyHandler, canBeRootWidget, canContainChildren, clear, equals, getChildWidgets, getDependencies, getField, getName, getParent, getPart, getPrefix, getPreviousValue, getProperties, getProperty, getPropertyHandler, getPropertyHandlers, getProvider, getRealProperty, getRealValue, getRectangle, getRules, getValue, getWidgetType, handleProperties, handleProperty, hasDependencies, ignoreLayout, ignoreUse, isEnabled, isImmidiate, isInitializing, isRefreshing, isRequired, isRootWidget, isSkip, isUseIgnored, isValidValue, isVisible, notifyListeners, processDestroy, processInit, processNativeWidget, registerRule, removeAllRules, setAutoRefresh, setContainerWidgetHandler, setEnabled, setField, setImmidiate, setLazyProperty, setName, setParent, setPart, setPosition, setPrefix, setProperty, setProvider, setRequired, setRootWidget, setSize, setSkip, setValidValue, setValue, setVisible, setWidgetInitializer, setWidgetType, toString, updateWidget
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

item

protected javax.swing.JMenuItem item
The native menuitem


separator

protected javax.swing.JSeparator separator
the native seperator


actionListener

protected java.awt.event.ActionListener actionListener
the actionlistener


listenerList

protected java.util.List listenerList
the nyx listeners

Constructor Detail

MenuItem

public MenuItem(java.lang.String name)
Parameters:
name - the name of the menuitem
Method Detail

destroy

public void destroy()
See Also:
IWidget.destroy()

getNativeWidget

public java.lang.Object getNativeWidget()
See Also:
org.xulux.nyx.gui.XuluxWidget#getNativeWidget()

initialize

public void initialize()
See Also:
org.xulux.nyx.gui.XuluxWidget#initialize()

refresh

public void refresh()
Specified by:
refresh in interface org.xulux.api.gui.IWidget
Overrides:
refresh in class org.xulux.gui.XuluxWidget
See Also:
org.xulux.nyx.gui.XuluxWidget#refresh()

getGuiValue

public java.lang.Object getGuiValue()
See Also:
org.xulux.nyx.gui.XuluxWidget#getGuiValue()

focus

public void focus()
See Also:
org.xulux.nyx.gui.XuluxWidget#focus()

isValueEmpty

public boolean isValueEmpty()
See Also:
org.xulux.nyx.gui.XuluxWidget#isValueEmpty()

canContainValue

public boolean canContainValue()
See Also:
org.xulux.nyx.gui.XuluxWidget#canContainValue()

addXuluxListener

public void addXuluxListener(org.xulux.api.gui.IXuluxListener listener)
Specified by:
addXuluxListener in interface org.xulux.api.gui.IWidget
Overrides:
addXuluxListener in class org.xulux.gui.XuluxWidget
See Also:
org.xulux.nyx.gui.XuluxWidget#addXuluxListener(org.xulux.nyx.gui.XuluxListener)

getWidgetInitializer

public org.xulux.api.gui.IWidgetInitializer getWidgetInitializer()


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.