com.bstek.dorado.view.output
public class OutputContext extends java.lang.Object
Constructor and Description |
---|
OutputContext(java.io.Writer writer) |
Modifier and Type | Method and Description |
---|---|
void |
addCalloutHtml(Control control,
java.lang.String htmlId) |
void |
addDependsPackage(java.lang.String packageName) |
void |
addJavaScriptContent(java.lang.Object content) |
void |
addStyleSheetContent(java.lang.Object content) |
JsonBuilder |
createJsonBuilder() |
java.util.Map<Control,java.lang.String> |
getCalloutHtmlMap() |
java.lang.String |
getCalloutId() |
View |
getCurrentView() |
java.util.Stack<java.lang.Object> |
getDataObjectStack()
用于放置对象递归引用导致输出过程死锁的堆栈。
|
java.util.Set<java.lang.String> |
getDependsPackages()
返回客户端依赖的资源包的集合。
|
java.util.Map<java.lang.String,DataType> |
getIncludeDataTypes()
返回客户端需要的DataType的集合。
|
java.util.Set<java.lang.Object> |
getJavaScriptContents() |
JsonBuilder |
getJsonBuilder() |
java.util.Set<java.lang.Object> |
getStyleSheetContents() |
java.io.Writer |
getWriter() |
boolean |
isDataTypeLoaded(java.lang.String dataTypeName) |
boolean |
isEscapeable() |
boolean |
isShouldOutputDataTypes()
是否需要向客户端输出DataType的信息。
|
boolean |
isShouldOutputEntityState() |
boolean |
isUsePrettyJson() |
void |
markIncludeDataType(DataType dataType)
返回客户端需要的DataType的集合。
|
void |
restoreJsonBuilder() |
void |
setCurrentView(View currentView) |
void |
setEscapeable(boolean escapeable) |
void |
setLoadedDataTypes(java.util.Collection<java.lang.String> loadedDataTypes) |
void |
setShouldOutputDataTypes(boolean shouldOutputDataTypes)
设置是否需要向客户端输出DataType的信息。默认值为true。
|
void |
setShouldOutputEntityState(boolean shouldOutputEntityState) |
void |
setUsePrettyJson(boolean usePrettyJson) |
public java.io.Writer getWriter()
public View getCurrentView()
public void setCurrentView(View currentView)
public JsonBuilder getJsonBuilder()
public JsonBuilder createJsonBuilder()
public void restoreJsonBuilder()
public boolean isUsePrettyJson()
public void setUsePrettyJson(boolean usePrettyJson)
public boolean isShouldOutputDataTypes()
public void setShouldOutputDataTypes(boolean shouldOutputDataTypes)
public boolean isShouldOutputEntityState()
public void setShouldOutputEntityState(boolean shouldOutputEntityState)
shouldOutputEntityState
- the shouldOutputEntityState to setpublic boolean isEscapeable()
public void setEscapeable(boolean escapeable)
public void setLoadedDataTypes(java.util.Collection<java.lang.String> loadedDataTypes)
public boolean isDataTypeLoaded(java.lang.String dataTypeName)
public java.util.Map<java.lang.String,DataType> getIncludeDataTypes()
public void markIncludeDataType(DataType dataType)
public java.util.Set<java.lang.String> getDependsPackages()
public void addDependsPackage(java.lang.String packageName)
public java.util.Set<java.lang.Object> getJavaScriptContents()
public void addJavaScriptContent(java.lang.Object content)
public java.util.Set<java.lang.Object> getStyleSheetContents()
public void addStyleSheetContent(java.lang.Object content)
public java.util.Stack<java.lang.Object> getDataObjectStack()
public java.util.Map<Control,java.lang.String> getCalloutHtmlMap()
public void addCalloutHtml(Control control, java.lang.String htmlId)
public java.lang.String getCalloutId()
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.