Package org.openbravo.client.application
Class ViewComponent
- java.lang.Object
-
- org.openbravo.client.kernel.BaseComponent
-
- org.openbravo.client.application.ViewComponent
-
- All Implemented Interfaces:
Component
@RequestScoped public class ViewComponent extends BaseComponent
Reads the view and generates it.- Author:
- mtaal
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.kernel.BaseComponent
adcs
-
-
Constructor Summary
Constructors Constructor Description ViewComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
correctViewId(String viewId)
String
generate()
Generates the content of the component which is sent to the client for execution/rendering.protected String
generateAttachment(String viewId)
protected String
generateProcess(Process process)
protected String
generateView(String viewName)
protected String
generateWindow(Window window)
Object
getData()
String
getETag()
An ETag is a hash-like string which is used to determine if content has changed since the last request for the content.Module
getModule()
-
Methods inherited from class org.openbravo.client.kernel.BaseComponent
bypassAuthentication, createComponent, getADCS, getApplicationName, getContentType, getContextUrl, getDependencies, getId, getLastModified, getModulePackageName, getParameter, getParameterNames, getParameters, getSafeValue, hasParameter, isClassicMode, isInDevelopment, isInDevelopment, isJavaScriptComponent, nullifyModuleCache, setContextUrl, setDependencies, setId, setParameters, stripHost
-
-
-
-
Method Detail
-
generate
public String generate()
Description copied from interface:Component
Generates the content of the component which is sent to the client for execution/rendering.- Specified by:
generate
in interfaceComponent
- Specified by:
generate
in classBaseComponent
- Returns:
- the generated javascript which is send back to the client
-
getModule
public Module getModule()
- Specified by:
getModule
in interfaceComponent
- Overrides:
getModule
in classBaseComponent
- Returns:
- the module providing this component
-
getData
public Object getData()
- Specified by:
getData
in classBaseComponent
-
getETag
public String getETag()
Description copied from interface:Component
An ETag is a hash-like string which is used to determine if content has changed since the last request for the content. See this link for more information. Note for language specific components the etag has to encode the language (id) also! See (OBContext.getLanguage()
) to get the current language.- Specified by:
getETag
in interfaceComponent
- Overrides:
getETag
in classBaseComponent
- Returns:
- a unique hash for the content generated
-
-