|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.util.Ctx
org.compiere.util.CContext
public class CContext
Typed Context
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from class org.compiere.util.Ctx |
|---|
log, m_map |
| Constructor Summary | |
|---|---|
CContext()
Context |
|
CContext(Map<String,String> map)
Context |
|
CContext(Set<Map.Entry<String,String>> set)
Context |
|
CContext(String stringRepresentation)
Context |
|
| Method Summary | |
|---|---|
void |
addWindow(int windowNo,
Map<String,String> map)
Add Window Context |
void |
clear()
Clear values |
boolean |
containsKey(String key)
Contains Key |
boolean |
containsValue(Object value)
Contains Value |
Set<Map.Entry<String,String>> |
entrySet()
Entry Set of all windows |
String |
getContext(int windowNo,
String context,
boolean onlyWindow)
Get Value of Context for Window. |
String[] |
getEntireContext()
Get Entire Context as String Array |
protected Map<String,String> |
getMap()
Entry Set of all windows |
Map<String,String> |
getMap(int windowNo)
Get Map with spaces as null |
Map<String,String> |
getMap(int windowNo,
boolean convertNullToEmptyString)
Get Context for Window as Map |
boolean |
isEmpty()
Is Empty |
Set<String> |
keySet()
Key Set |
void |
removeAllWindows()
|
void |
removeWindow(int windowNo)
Remove context for Window (i.e. delete it) |
void |
setContext(int windowNo,
Map<String,String> addContext)
Add Map elements to context |
void |
setContext(int windowNo,
String context,
String value)
Set Context for Window to Value |
Collection<String> |
values()
Values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public CContext()
public CContext(Map<String,String> map)
map - mappublic CContext(String stringRepresentation)
stringRepresentation - public CContext(Set<Map.Entry<String,String>> set)
set - set of Map entries with key and value| Method Detail |
|---|
public Map<String,String> getMap(int windowNo)
getMap in class CtxwindowNo - window no
public Map<String,String> getMap(int windowNo,
boolean convertNullToEmptyString)
getMap in class CtxwindowNo - window
public void removeWindow(int windowNo)
removeWindow in class CtxWindowNo - windowpublic void removeAllWindows()
public void addWindow(int windowNo,
Map<String,String> map)
windowNo - windowmap - mappublic void clear()
clear in interface Map<String,String>clear in class CtxMap.clear()public String[] getEntireContext()
getEntireContext in class Ctxpublic boolean containsKey(String key)
key - key
public boolean containsValue(Object value)
containsValue in interface Map<String,String>containsValue in class Ctxvalue -
protected Map<String,String> getMap()
getMap in class Ctxpublic Set<Map.Entry<String,String>> entrySet()
entrySet in interface Map<String,String>entrySet in class Ctxpublic boolean isEmpty()
isEmpty in interface Map<String,String>isEmpty in class Ctxpublic Set<String> keySet()
keySet in interface Map<String,String>keySet in class Ctxpublic Collection<String> values()
values in interface Map<String,String>values in class Ctx
public void setContext(int windowNo,
String context,
String value)
setContext in class CtxwindowNo - window nocontext - context keyvalue - context value
public String getContext(int windowNo,
String context,
boolean onlyWindow)
getContext in class CtxwindowNo - windowcontext - context keyonlyWindow - if true, no defaults are used unless explicitly asked for
public void setContext(int windowNo,
Map<String,String> addContext)
setContext in class CtxWindowNo - windowaddContext - new context
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||