com.sibvisions.rad.ui.swing.impl.menu
Class SwingMenu
java.lang.Object
com.sibvisions.rad.ui.awt.impl.AwtResource<C>
com.sibvisions.rad.ui.awt.impl.AwtComponent<C>
com.sibvisions.rad.ui.awt.impl.AwtContainer<C>
com.sibvisions.rad.ui.swing.impl.SwingComponent<C>
com.sibvisions.rad.ui.swing.impl.component.SwingAbstractButton<C>
com.sibvisions.rad.ui.swing.impl.menu.SwingMenuItem<JMenu>
com.sibvisions.rad.ui.swing.impl.menu.SwingMenu
- All Implemented Interfaces:
- ActionListener, KeyListener, MouseListener, EventListener, IActionComponent, IButton, IIcon, ILabel, IAlignmentConstants, IComponent, IContainer, IResource, IMenu, IMenuItem
public class SwingMenu
- extends SwingMenuItem<JMenu>
- implements IMenu
The SwingMenu is the IMenu
implementation for swing.
- See Also:
JMenu,
IMenu
|
Constructor Summary |
SwingMenu()
Creates a new instance of SwingMenu. |
|
Method Summary |
protected void |
addIntern(Component pComponent,
Object pConstraints,
int pIndex)
Internal function, for adding physical component and supporting layers. |
void |
addSeparator()
Appends a new separator at the end of the menu. |
void |
addSeparator(int pIndex)
Inserts a separator at the specified position. |
protected void |
removeIntern(Component pComponent)
Internal function, for adding physical component and supporting layers. |
| Methods inherited from class com.sibvisions.rad.ui.swing.impl.component.SwingAbstractButton |
actionPerformed, eventAction, getAccelerator, getActionCommand, getHorizontalTextPosition, getImage, getImageTextGap, getMargins, getMouseOverImage, getPressedImage, getText, getVerticalTextPosition, isBorderOnMouseEntered, isBorderPainted, isDefaultButton, setAccelerator, setActionCommand, setBorderOnMouseEntered, setBorderPainted, setDefaultButton, setHorizontalAlignment, setHorizontalTextPosition, setImageTextGap, setMargins, setMouseOverImage, setPressedImage, setText, setVerticalAlignment, setVerticalTextPosition |
| Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtContainer |
add, add, add, add, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout, setLayoutIntern |
| Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent |
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getFactory, getFont, getForeground, getHorizontalAlignment, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getVerticalAlignment, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFactory, setFocusable, setFont, setForeground, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setVisible |
| Methods inherited from interface javax.rad.ui.IComponent |
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getFactory, getFont, getForeground, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible |
| Methods inherited from interface javax.rad.ui.IComponent |
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getFactory, getFont, getForeground, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible |
| Methods inherited from interface javax.rad.ui.IContainer |
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
SwingMenu
public SwingMenu()
- Creates a new instance of
SwingMenu.
addSeparator
public void addSeparator()
- Appends a new separator at the end of the menu.
- Specified by:
addSeparator in interface IMenu
addSeparator
public void addSeparator(int pIndex)
- Inserts a separator at the specified position.
- Specified by:
addSeparator in interface IMenu
- Parameters:
pIndex - an integer specifying the position at which to
insert the menu separator
addIntern
protected void addIntern(Component pComponent,
Object pConstraints,
int pIndex)
- Internal function, for adding physical component and supporting layers.
- Overrides:
addIntern in class AwtContainer<JMenu>
- Parameters:
pComponent - the Component to be addedpConstraints - an object expressing layout contraints for thispIndex - the position in the container's list at which to insert
the Component; -1 means insert at the end
component- See Also:
AwtContainer.add(IComponent, Object, int)
removeIntern
protected void removeIntern(Component pComponent)
- Internal function, for adding physical component and supporting layers.
- Overrides:
removeIntern in class AwtContainer<JMenu>
- Parameters:
pComponent - the Component to be removed- See Also:
AwtContainer.remove(int)
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.