|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.projectbrowser.page.contextsensitive.ContextSensitiveMenu
public class ContextSensitiveMenu
Provides state information for an individual label/menu pair that appears within a ContextSensitivePanel.
Constructor Summary | |
---|---|
ContextSensitiveMenu(java.lang.String name,
java.lang.String defaultValue,
java.util.List<java.lang.String> values,
boolean isVisible)
Creates this context sensitive menu. |
Method Summary | |
---|---|
java.lang.String |
getName()
Returns the name of this label/menu pair. |
java.lang.String |
getSelectedValue()
Returns the currently selected value of this menu, or null if none selected. |
java.util.List<java.lang.String> |
getValues()
Returns the list of strings to be displayed in the menu. |
boolean |
isVisible()
True if this label/menu pair should be displayed. |
void |
setSelectedValue(java.lang.String value)
Sets the selected value associated with this menu. |
void |
setVisible(boolean visibility)
Sets whether this label/menu pair should be displayed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextSensitiveMenu(java.lang.String name, java.lang.String defaultValue, java.util.List<java.lang.String> values, boolean isVisible)
defaultValue
- The initial selected value, or else null for no selected value.values
- The list of values to appear.name
- The label to be associated with this pane. This label is also used to
identify the menu, so it should be unique within the enclosing ContextSensitivePanel.isVisible
- True if this pane should start out being visible or not visible.Method Detail |
---|
public java.lang.String getSelectedValue()
public void setSelectedValue(java.lang.String value)
value
- The new selected value.public java.util.List<java.lang.String> getValues()
public boolean isVisible()
public void setVisible(boolean visibility)
visibility
- True if displayed.public java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |