|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.SComponent
org.wings.SPopupMenu
public class SPopupMenu
A popup or context menu that can be attached to abitrary components.
| Field Summary | |
|---|---|
protected List |
menuItems
|
| Fields inherited from class org.wings.SComponent |
|---|
DONE_RENDERING, dynamicStyles, enabled, propertyChangeSupport, SELECTOR_ALL, START_RENDERING, visible, WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_FRAME |
| Constructor Summary | |
|---|---|
SPopupMenu()
|
|
| Method Summary | |
|---|---|
void |
add(SComponent menuItem)
Add a menu item to this menu. |
void |
add(SMenuItem menuItem)
Add a menu item to this menu. |
void |
add(String menuitem)
Add a menu item to this menu. |
void |
addSeparator()
Add a separator to this menu. |
SComponent |
getMenuComponent(int pos)
|
int |
getMenuComponentCount()
Return the number of items on the menu, including separators. |
double |
getWidthScaleFactor()
Returns the scale factor for the width of the Menu components. |
void |
remove(int pos)
Removes the menu item at specified index from the menu. |
void |
remove(SComponent comp)
removes a specific menu item component. |
void |
removeAll()
Remove all SMenuItem from this menu. |
void |
setCG(PopupMenuCG cg)
|
void |
setEnabled(boolean enabled)
Set wether this component should be enabled. |
void |
setParentFrame(SFrame f)
Sets the parent frame. |
void |
setWidthScaleFactor(double widthScaleFactor)
Sets the scale factor for the width of the Menu components. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final List menuItems
| Constructor Detail |
|---|
public SPopupMenu()
| Method Detail |
|---|
public void add(SMenuItem menuItem)
public void add(SComponent menuItem)
public void addSeparator()
public void setParentFrame(SFrame f)
SComponent
setParentFrame in class SComponentf - the framepublic void add(String menuitem)
public SComponent getMenuComponent(int pos)
public int getMenuComponentCount()
public void removeAll()
SMenuItem from this menu.
public void remove(int pos)
public void remove(SComponent comp)
public void setCG(PopupMenuCG cg)
public double getWidthScaleFactor()
public void setWidthScaleFactor(double widthScaleFactor)
widthScaleFactor - The widthScaleFactor to set.public void setEnabled(boolean enabled)
SComponent
setEnabled in class SComponentenabled - true if the component is enabled, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||