|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<C>
javax.rad.genui.component.AbstractUILabeledIcon<IPopupMenuButton>
javax.rad.genui.component.UIPopupMenuButton
public class UIPopupMenuButton
Platform and technology independent popup menu button. 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 | |
|---|---|
|
UIPopupMenuButton()
Creates a new instance of UIPopupMenuButton. |
protected |
UIPopupMenuButton(IPopupMenuButton pButton)
Creates a new instance of UIPopupMenuButton with the given
button. |
|
UIPopupMenuButton(String pText)
Creates a new instance of UIPopupMenuButton. |
|
UIPopupMenuButton(String pText,
IImage pImage)
Creates a new instance of UIPopupMenuButton. |
| Method Summary | |
|---|---|
void |
addNotify()
Makes this UIComponent displayable by adding it to an UIContainer. |
void |
doTriggerPopMenu(UIMouseEvent pMouseEvent)
Triggers popup menu to be shown. |
IMenuItem |
getDefaultMenuItem()
Gets the default menu item. |
void |
removeNotify()
Makes this UIComponent undisplayable by removing it to an UIContainer. |
void |
setDefaultMenuItem(IMenuItem pItem)
Sets the default menu item. |
void |
setPopupMenu(IPopupMenu pMenu)
Sets the popup menu that should be displayed by this component. |
| Methods inherited from class javax.rad.genui.component.AbstractUILabeledIcon |
|---|
getHorizontalAlignment, getImage, getText, getVerticalAlignment, isPreserveAspectRatio, setHorizontalAlignment, setImage, setPreserveAspectRatio, setText, setVerticalAlignment, updateTranslation |
| 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.IPopupMenuButton |
|---|
getPopupMenu |
| 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.IResource |
|---|
getResource |
| Methods inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment |
| Constructor Detail |
|---|
public UIPopupMenuButton()
UIPopupMenuButton.
IPopupMenuButtonprotected UIPopupMenuButton(IPopupMenuButton pButton)
UIPopupMenuButton with the given
button.
pButton - the buttonIPopupMenuButtonpublic UIPopupMenuButton(String pText)
UIPopupMenuButton.
pText - the label of the button.IPopupMenuButton
public UIPopupMenuButton(String pText,
IImage pImage)
UIPopupMenuButton.
pText - the text.pImage - the image.AbstractUILabeledIcon.setImage(IImage),
AbstractUILabeledIcon.setText(String)| Method Detail |
|---|
public void setDefaultMenuItem(IMenuItem pItem)
setDefaultMenuItem in interface IPopupMenuButtonpItem - the item to use as action itemIPopupMenuButton.setPopupMenu(IPopupMenu)public IMenuItem getDefaultMenuItem()
getDefaultMenuItem in interface IPopupMenuButtonIPopupMenuButton.setDefaultMenuItem(IMenuItem)public void setPopupMenu(IPopupMenu pMenu)
setPopupMenu in interface IPopupMenuButtonsetPopupMenu in class UIComponent<IPopupMenuButton>pMenu - the popup menu.public void doTriggerPopMenu(UIMouseEvent pMouseEvent)
doTriggerPopMenu in class UIComponent<IPopupMenuButton>pMouseEvent - the mouse event.public void addNotify()
UIComponent displayable by adding it to an UIContainer.
This method is called internally by the genui and should not be called directly.
addNotify in class UIComponent<IPopupMenuButton>UIComponent.removeNotify(),
UIComponent.isNotified()public void removeNotify()
UIComponent undisplayable by removing it to an UIContainer.
This method is called by the genui internally and should not be called directly.
Code overriding this method should call super.removeNotify as the first line
of the overriding method.
removeNotify in class UIComponent<IPopupMenuButton>UIComponent.addNotify(),
UIComponent.isNotified()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||