Class StandardWindowComponent
- java.lang.Object
-
- org.openbravo.client.kernel.BaseComponent
-
- org.openbravo.client.kernel.BaseTemplateComponent
-
- org.openbravo.client.application.window.StandardWindowComponent
-
- All Implemented Interfaces:
Component
public class StandardWindowComponent extends BaseTemplateComponent
The component which takes care of creating a class for a specific Openbravo window.- Author:
- mtaal
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.kernel.BaseTemplateComponent
BASE_QUALIFIER, DATA_PARAMETER
-
Fields inherited from class org.openbravo.client.kernel.BaseComponent
adcs
-
-
Constructor Summary
Constructors Constructor Description StandardWindowComponent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generate()
Generates the content of the component which is sent to the client for execution/rendering.protected Template
getComponentTemplate()
List<String>
getProcessViews()
OBViewTab
getRootTabComponent()
static Optional<GCSystem>
getSystemGridConfig()
Returns the applicable System Grid Configuration if any.static Map<String,Optional<GCTab>>
getTabsGridConfig(Window window)
For a given window, it returns a Map being its key all the tab ids in that window and the values the applicable Tab Grid Configuration for each tab if any.String
getTabView()
String
getThreadSafe()
Window
getWindow()
String
getWindowClientClassName()
String
getWindowId()
void
setUniqueString(String uniqueString)
void
setWindow(Window window)
-
Methods inherited from class org.openbravo.client.kernel.BaseTemplateComponent
getData, setComponentTemplate
-
Methods inherited from class org.openbravo.client.kernel.BaseComponent
bypassAuthentication, createComponent, getADCS, getApplicationName, getContentType, getContextUrl, getDependencies, getETag, getId, getLastModified, getModule, getModulePackageName, getParameter, getParameterNames, getParameters, getSafeValue, hasParameter, isClassicMode, isInDevelopment, isInDevelopment, isJavaScriptComponent, nullifyModuleCache, setDependencies, setId, setParameters, stripHost
-
-
-
-
Method Detail
-
getComponentTemplate
protected Template getComponentTemplate()
- Overrides:
getComponentTemplate
in classBaseTemplateComponent
-
getWindowClientClassName
public String getWindowClientClassName()
-
setUniqueString
public void setUniqueString(String uniqueString)
-
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
- Overrides:
generate
in classBaseTemplateComponent
- Returns:
- the generated javascript which is send back to the client
-
getTabView
public String getTabView()
-
getWindowId
public String getWindowId()
-
getThreadSafe
public String getThreadSafe()
-
getWindow
public Window getWindow()
-
setWindow
public void setWindow(Window window)
-
getRootTabComponent
public OBViewTab getRootTabComponent()
-
getSystemGridConfig
public static Optional<GCSystem> getSystemGridConfig()
Returns the applicable System Grid Configuration if any.
-
-