|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.legacy.client.core.LegacyParams
public class LegacyParams
Aggregates both a list of values and a map of named values. Allows methods to support both list and maps in a single parameter.
Note that only one type of values should be specified.
| Constructor Summary | |
|---|---|
LegacyParams()
Creates a new params instance. |
|
LegacyParams(Map<String,Object> values)
Creates a new params instance. |
|
LegacyParams(Object... values)
Creates a new params instance. |
|
LegacyParams(String key,
Object value)
Creates a new parameters instance. |
|
| Method Summary | |
|---|---|
LegacyParams |
add(Object value)
Adds a value. |
List<Object> |
getList()
Returns the list values. |
Map<String,Object> |
getMap()
Returns the values as a map. |
JavaScriptObject |
getValues()
Returns the values as a JavaScriptObject. |
boolean |
isList()
Returns true if the parameters are a list. |
boolean |
isMap()
Returns true if the parameters are a map. |
LegacyParams |
set(String key,
Object value)
Sets a value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LegacyParams()
public LegacyParams(Map<String,Object> values)
values - the initial valuespublic LegacyParams(Object... values)
values - the initial values
public LegacyParams(String key,
Object value)
key - the keyvalue - the value| Method Detail |
|---|
public LegacyParams add(Object value)
value - the value to add
public List<Object> getList()
public Map<String,Object> getMap()
public JavaScriptObject getValues()
public boolean isList()
public boolean isMap()
public LegacyParams set(String key,
Object value)
key - the keyvalue - the value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||