|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.grouperUi.beans.json.GuiOption
public class GuiOption
option value in a select
Field Summary | |
---|---|
static String |
FIELD_CSS
name of the javabean property: css |
static String |
FIELD_NAME
name of the javabean property: name |
static String |
FIELD_VALUE
name of the javabean property: value |
Constructor Summary | |
---|---|
GuiOption()
default constructor |
|
GuiOption(String _name,
String _value,
String _css)
constructor that includes all fields of bean |
Method Summary | |
---|---|
static void |
assertContains(List<GuiOption> guiOptions,
List<String> keys)
assert a list contains a option value with a certain key |
static void |
assertContains(List<GuiOption> guiOptions,
String key)
assert a list contains a option value with a certain key |
static void |
assertNotContains(List<GuiOption> guiOptions,
List<String> keys)
assert a list not contains a option value with a certain key |
static void |
assertNotContains(List<GuiOption> guiOptions,
String key)
assert a list not contains a option value with a certain key |
static boolean |
contains(List<GuiOption> guiOptions,
String key)
see if a list contains a key |
String |
getCss()
getter for css: css of an option |
String |
getName()
getter for name: name of an option |
String |
getValue()
getter for value: value of an option |
static List<GuiOption> |
remove(List<GuiOption> guiOptions,
List<String> keys,
boolean shallowCloneFirst,
boolean throwExceptionIfNotThere)
remove an option value by key. |
static List<GuiOption> |
remove(List<GuiOption> guiOptions,
String key,
boolean shallowCloneFirst,
boolean throwExceptionIfNotThere)
remove an option value by key. |
static List<GuiOption> |
retainAll(List<GuiOption> guiOptions,
List<String> keys,
boolean shallowCloneFirst)
retain only certain options by key. |
void |
setCss(String _css)
setter for css: css of an option |
void |
setName(String _name)
setter for name: name of an option |
void |
setValue(String _value)
setter for value: value of an option |
static String |
toStringForLogging(List<GuiOption> guiOptions)
print out a few option values |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FIELD_NAME
public static final String FIELD_VALUE
public static final String FIELD_CSS
Constructor Detail |
---|
public GuiOption()
public GuiOption(String _name, String _value, String _css)
_name
- name of an option_value
- value of an option_css
- css of an optionMethod Detail |
---|
public void setName(String _name)
_name
- is the data to setpublic String getName()
public void setValue(String _value)
_value
- is the data to setpublic String getValue()
public void setCss(String _css)
_css
- is the data to setpublic String getCss()
public static void assertContains(List<GuiOption> guiOptions, List<String> keys)
guiOptions
- to search inkeys
- key to look forpublic static void assertContains(List<GuiOption> guiOptions, String key)
guiOptions
- to search inkey
- key to look forpublic static void assertNotContains(List<GuiOption> guiOptions, List<String> keys)
guiOptions
- to search inkeys
- key to look forpublic static void assertNotContains(List<GuiOption> guiOptions, String key)
guiOptions
- to search inkey
- key to look forpublic static boolean contains(List<GuiOption> guiOptions, String key)
guiOptions
- key
-
public static List<GuiOption> remove(List<GuiOption> guiOptions, List<String> keys, boolean shallowCloneFirst, boolean throwExceptionIfNotThere)
guiOptions
- to remove fromkeys
- to removeshallowCloneFirst
- true to clone if this is a cached listthrowExceptionIfNotThere
- true to throw exception if the element wasnt even there
public static List<GuiOption> remove(List<GuiOption> guiOptions, String key, boolean shallowCloneFirst, boolean throwExceptionIfNotThere)
guiOptions
- to remove fromkey
- to removeshallowCloneFirst
- true to clone if this is a cached listthrowExceptionIfNotThere
- true to throw exception if the element wasnt even there
public static List<GuiOption> retainAll(List<GuiOption> guiOptions, List<String> keys, boolean shallowCloneFirst)
guiOptions
- to remove fromkeys
- to removeshallowCloneFirst
- true to clone if this is a cached list
public static String toStringForLogging(List<GuiOption> guiOptions)
guiOptions
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |