com.sibvisions.rad.ui.swing.impl.component
Class SwingPopupMenuButton

java.lang.Object
  extended by com.sibvisions.rad.ui.awt.impl.AwtResource<C>
      extended by com.sibvisions.rad.ui.awt.impl.AwtComponent<C>
          extended by com.sibvisions.rad.ui.awt.impl.AwtContainer<C>
              extended by com.sibvisions.rad.ui.swing.impl.SwingComponent<C>
                  extended by com.sibvisions.rad.ui.swing.impl.component.SwingAbstractLabeledIconButton<JVxButton>
                      extended by com.sibvisions.rad.ui.swing.impl.component.SwingPopupMenuButton
All Implemented Interfaces:
ComponentListener, FocusListener, KeyListener, MouseListener, EventListener, IIcon, ILabel, ILabeledIcon, IPopupMenuButton, IAlignmentConstants, IComponent, IContainer, IResource, INamedObject

public class SwingPopupMenuButton
extends SwingAbstractLabeledIconButton<JVxButton>
implements IPopupMenuButton

The SwingPopupMenuButton is the IPopupMenuButton implementation for swing.

See Also:
JVxButton, IPopupMenuButton

Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.swing.impl.component.SwingAbstractLabeledIconButton
image
 
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent
bComponentListener, bFocusListener, bKeyListener, bMouseListener, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, eventSource, factory, parent
 
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource
resource
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
SwingPopupMenuButton()
          Creates a new instance of SwingPopupMenuButton.
 
Method Summary
 IMenuItem getDefaultMenuItem()
          Gets the default menu item.
 IPopupMenu getPopupMenu()
          Gets the IPopupMenu which can be shown.
 void setDefaultMenuItem(IMenuItem pItem)
          Sets the default menu item.
 void setPopupMenu(IPopupMenu pMenu)
          Sets the IPopupMenu which should be shown.
 
Methods inherited from class com.sibvisions.rad.ui.swing.impl.component.SwingAbstractLabeledIconButton
getImage, getText, isPreserveAspectRatio, setBackground, setHorizontalAlignment, setImage, setPreserveAspectRatio, setText, setVerticalAlignment
 
Methods inherited from class com.sibvisions.rad.ui.swing.impl.SwingComponent
capture, getToolTipText, setTabIndex, setToolTipText
 
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtContainer
add, add, add, add, addIntern, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, removeIntern, setLayout, setLayoutIntern
 
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent
addComponentListener, addFocusListener, addKeyListener, addMouseListener, componentHidden, componentMoved, componentResized, componentShown, createImage, createMouseEvent, equals, eventComponentMoved, eventComponentResized, eventFocusGained, eventFocusLost, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, focusGained, focusLost, getBackground, getBounds, getCursor, getEventSource, getFactory, getFont, getForeground, getHorizontalAlignment, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getStyle, getTabIndex, getVerticalAlignment, hashCode, invalidateLayout, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, requestFocus, setBounds, setCursor, setEnabled, setEventSource, setFactory, setFocusable, setFont, setForeground, setLocation, setLocationRelativeTo, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setStyle, setVisible, validate
 
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource
getResource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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

SwingPopupMenuButton

public SwingPopupMenuButton()
Creates a new instance of SwingPopupMenuButton.

Method Detail

setPopupMenu

public void setPopupMenu(IPopupMenu pMenu)
Sets the IPopupMenu which should be shown.

Specified by:
setPopupMenu in interface IPopupMenuButton
Parameters:
pMenu - the menu

getPopupMenu

public IPopupMenu getPopupMenu()
Gets the IPopupMenu which can be shown.

Specified by:
getPopupMenu in interface IPopupMenuButton
Returns:
the menu

setDefaultMenuItem

public void setDefaultMenuItem(IMenuItem pItem)
Sets the default menu item. The default menu item will be used as action for this button. The menu item should be an item of the configured menu. If no default menu item is set, the full menu will be shown in case of button click.

Specified by:
setDefaultMenuItem in interface IPopupMenuButton
Parameters:
pItem - the item to use as action item
See Also:
IPopupMenuButton.setPopupMenu(IPopupMenu)

getDefaultMenuItem

public IMenuItem getDefaultMenuItem()
Gets the default menu item.

Specified by:
getDefaultMenuItem in interface IPopupMenuButton
Returns:
the menu item
See Also:
IPopupMenuButton.setDefaultMenuItem(IMenuItem)


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.