javax.rad.genui.menu
Class UIMenuItem

java.lang.Object
  extended by javax.rad.genui.UIResource<C>
      extended by javax.rad.genui.UIComponent<C>
          extended by javax.rad.genui.component.AbstractUIActionComponent<C>
              extended by javax.rad.genui.menu.AbstractUIMenuItem<IMenuItem>
                  extended by javax.rad.genui.menu.UIMenuItem
All Implemented Interfaces:
ITranslatable, IActionComponent, IIcon, ILabel, IAlignmentConstants, IComponent, IResource, IMenuItem, INamedObject, ITranslator

public class UIMenuItem
extends AbstractUIMenuItem<IMenuItem>

Platform and technology independent MenuItem. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .


Field Summary
 
Fields inherited from class javax.rad.genui.UIComponent
bTranslate, lLastTranslationModified, parent, popupMenu
 
Fields inherited from class javax.rad.genui.UIResource
uiResource
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
  UIMenuItem()
          Creates a new instance of UIMenuItem.
protected UIMenuItem(IMenuItem pMenuItem)
          Creates a new instance of UIMenuItem with the given menu item.
  UIMenuItem(java.lang.String pText)
          Creates a new instance of UIMenuItem.
  UIMenuItem(java.lang.String pText, IActionListener pActionListener)
          Creates a new instance of UIMenuItem.
  UIMenuItem(java.lang.String pText, IImage pImage, IActionListener pActionListener)
          Creates a new instance of UIMenuItem.
  UIMenuItem(java.lang.String pText, IImage pImage, java.lang.Object pListener, java.lang.String pMethodName)
          Creates a new instance of UIMenuItem.
  UIMenuItem(java.lang.String pText, java.lang.Object pListener, java.lang.String pMethodName)
          Creates a new instance of UIMenuItem.
 
Method Summary
 
Methods inherited from class javax.rad.genui.menu.AbstractUIMenuItem
findMenu, getMenu
 
Methods inherited from class javax.rad.genui.component.AbstractUIActionComponent
eventAction, getAccelerator, getActionCommand, getHorizontalAlignment, getImage, getMargins, getText, getVerticalAlignment, isPreserveAspectRatio, setAccelerator, setActionCommand, setHorizontalAlignment, setImage, setMargins, setMargins, setPreserveAspectRatio, setText, setVerticalAlignment, updateTranslation
 
Methods inherited from class javax.rad.genui.UIComponent
addNotify, beforeAddNotify, capture, createComponentName, createComponentNamePrefix, debug, doEventKey, doTriggerPopMenu, equals, error, eventComponentMoved, eventComponentResized, eventFocusGained, eventFocusLost, eventKey, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getComponentUIResource, getCurrentTranslation, getCursor, getDefaultName, getEventSource, getExistingNames, getFactory, getFont, getForeground, getLocation, getLocationOffset, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPopupMenu, getPreferredSize, getResource, getRootName, getSize, getStyle, getTabIndex, getToolTipText, getTranslation, getUIComponent, hashCode, incrementNameIfExists, info, invokeAndWait, invokeAndWait, invokeInThread, invokeInThread, invokeLater, invokeLater, isBackgroundSet, isBeforeNotified, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isNotified, isPreferredSizeSet, isTranslationChanged, isTranslationEnabled, isVisible, removeNotify, requestFocus, setBackground, setBounds, setBounds, setCursor, setDefaultName, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocation, setLocationRelativeTo, setMaximumSize, setMaximumSize, setMinimumSize, setMinimumSize, setName, setParent, setPopupMenu, setPreferredSize, setPreferredSize, setRootName, setSize, setSize, setStyle, setTabIndex, setToolTipText, setTranslation, setTranslationEnabled, setUIComponent, setVisible, translate
 
Methods inherited from class javax.rad.genui.UIResource
eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getUIResource, hasResourceHandler, putObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.component.IActionComponent
eventAction, getAccelerator, getActionCommand, getMargins, setAccelerator, setActionCommand, setMargins
 
Methods inherited from interface javax.rad.ui.component.IIcon
getImage, isPreserveAspectRatio, setImage, setPreserveAspectRatio
 
Methods inherited from interface javax.rad.ui.component.ILabel
getText, setText
 
Methods inherited from interface javax.rad.ui.IComponent
capture, eventComponentMoved, eventComponentResized, eventFocusGained, eventFocusLost, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getStyle, getTabIndex, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocationRelativeTo, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setStyle, setTabIndex, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 
Methods inherited from interface javax.rad.ui.IAlignmentConstants
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment
 

Constructor Detail

UIMenuItem

public UIMenuItem()
Creates a new instance of UIMenuItem.

See Also:
IMenuItem

UIMenuItem

protected UIMenuItem(IMenuItem pMenuItem)
Creates a new instance of UIMenuItem with the given menu item.

Parameters:
pMenuItem - the menu item
See Also:
IMenuItem

UIMenuItem

public UIMenuItem(java.lang.String pText)
Creates a new instance of UIMenuItem.

Parameters:
pText - the text.
See Also:
IMenuItem

UIMenuItem

public UIMenuItem(java.lang.String pText,
                  IActionListener pActionListener)
Creates a new instance of UIMenuItem.

Parameters:
pText - the text.
pActionListener - the action listener.
See Also:
AbstractUIActionComponent.eventAction(), AbstractUIActionComponent.setText(String)

UIMenuItem

public UIMenuItem(java.lang.String pText,
                  java.lang.Object pListener,
                  java.lang.String pMethodName)
Creates a new instance of UIMenuItem.

Parameters:
pText - the text.
pListener - the listener.
pMethodName - the method name.
See Also:
AbstractUIActionComponent.eventAction(), AbstractUIActionComponent.setText(String)

UIMenuItem

public UIMenuItem(java.lang.String pText,
                  IImage pImage,
                  IActionListener pActionListener)
Creates a new instance of UIMenuItem.

Parameters:
pText - the text.
pImage - the image.
pActionListener - the action listener.
See Also:
AbstractUIActionComponent.eventAction(), AbstractUIActionComponent.setImage(IImage), AbstractUIActionComponent.setText(String)

UIMenuItem

public UIMenuItem(java.lang.String pText,
                  IImage pImage,
                  java.lang.Object pListener,
                  java.lang.String pMethodName)
Creates a new instance of UIMenuItem.

Parameters:
pText - the text.
pImage - the image.
pListener - the listener.
pMethodName - the method name.
See Also:
AbstractUIActionComponent.eventAction(), AbstractUIActionComponent.setImage(IImage), AbstractUIActionComponent.setText(String)


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.