javax.rad.ui.component
Interface IPopupMenuButton

All Superinterfaces:
IAlignmentConstants, IComponent, IIcon, ILabel, ILabeledIcon, INamedObject, IResource
All Known Implementing Classes:
SwingPopupMenuButton, UIPopupMenuButton

public interface IPopupMenuButton
extends ILabeledIcon

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


Field Summary
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
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 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
 

Method Detail

setPopupMenu

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

Parameters:
pMenu - the menu

getPopupMenu

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

Returns:
the menu

setDefaultMenuItem

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.

Parameters:
pItem - the item to use as action item
See Also:
setPopupMenu(IPopupMenu)

getDefaultMenuItem

IMenuItem getDefaultMenuItem()
Gets the default menu item.

Returns:
the menu item
See Also:
setDefaultMenuItem(IMenuItem)


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.