javax.rad.ui.menu
Interface IMenu

All Superinterfaces:
IActionComponent, IAlignmentConstants, IComponent, IContainer, IIcon, ILabel, IMenuItem, INamedObject, IResource
All Known Implementing Classes:
SwingMenu, UIMenu

public interface IMenu
extends IMenuItem, IContainer

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

See Also:
Menu, JMenu

Field Summary
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Method Summary
 void addSeparator()
          Appends a new separator at the end of the menu.
 void addSeparator(int pIndex)
          Inserts a separator at the specified position.
 
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, setImage
 
Methods inherited from interface javax.rad.ui.component.ILabel
getText, setText
 
Methods inherited from interface javax.rad.ui.IComponent
capture, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, 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, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 
Methods inherited from interface javax.rad.ui.IAlignmentConstants
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment
 
Methods inherited from interface javax.rad.ui.IContainer
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout
 

Method Detail

addSeparator

void addSeparator()
Appends a new separator at the end of the menu.


addSeparator

void addSeparator(int pIndex)
Inserts a separator at the specified position.

Parameters:
pIndex - an integer specifying the position at which to insert the menu separator
Throws:
IllegalArgumentException - if the value of index < 0


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.