|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object
|
+--ModalButton
|
+--org.argouml.swingext.PopupButton
A button that displays a popup when pressed. The popup can contain any Component.
| Field Summary | |
|---|---|
private java.awt.Component |
_component
The popup component. |
| Constructor Summary | |
|---|---|
PopupButton()
Constructs a new PopupButton with no popup assigned. |
|
PopupButton(java.awt.Component c,
javax.swing.Icon icon)
Constructs a new PopupButton with the specified popup component and button icon |
|
| Method Summary | |
|---|---|
java.awt.Component |
getPopupComponent()
Returns the component that is displayed within the popup. |
void |
setIcon(javax.swing.Icon icon)
Sets the button icon. |
void |
setPopupComponent(java.awt.Component c)
Sets the component to be displayed within the popup. |
protected void |
showPopup()
Called when the user clicks the button. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.awt.Component _component
| Constructor Detail |
public PopupButton()
public PopupButton(java.awt.Component c,
javax.swing.Icon icon)
c - the component to popupicon - the button icon| Method Detail |
public java.awt.Component getPopupComponent()
public void setPopupComponent(java.awt.Component c)
c - the new popup componentpublic final void setIcon(javax.swing.Icon icon)
icon - the new button iconprotected void showPopup()
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
| ArgoUML © 1996-2004 (20040306) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |