Package org.openbravo.client.kernel
Class StyleSheetResourceComponent
- java.lang.Object
-
- org.openbravo.client.kernel.BaseComponent
-
- org.openbravo.client.kernel.StyleSheetResourceComponent
-
- All Implemented Interfaces:
Component
public class StyleSheetResourceComponent extends BaseComponent
Component which reads all stylesheets.- Author:
- mtaal, iperdomo
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
CSS
-
Fields inherited from class org.openbravo.client.kernel.BaseComponent
adcs
-
-
Constructor Summary
Constructors Constructor Description StyleSheetResourceComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
bypassAuthentication()
String
generate()
Generates the content of the component which is sent to the client for execution/rendering.String
getContentType()
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.String
getId()
boolean
isJavaScriptComponent()
-
Methods inherited from class org.openbravo.client.kernel.BaseComponent
createComponent, getADCS, getApplicationName, getContextUrl, getDependencies, getLastModified, getModule, getModulePackageName, getParameter, getParameterNames, getParameters, getSafeValue, hasParameter, isClassicMode, isInDevelopment, isInDevelopment, nullifyModuleCache, setDependencies, setId, setParameters, stripHost
-
-
-
-
Field Detail
-
CSS
protected static final String CSS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getData
public Object getData()
- Specified by:
getData
in classBaseComponent
- Returns:
- returns this instance
- See Also:
BaseComponent.getData()
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfaceComponent
- Overrides:
getContentType
in classBaseComponent
- Returns:
- returns the javascript content type with UTF-8: application/javascript;charset=UTF-8
-
isJavaScriptComponent
public boolean isJavaScriptComponent()
- Specified by:
isJavaScriptComponent
in interfaceComponent
- Overrides:
isJavaScriptComponent
in classBaseComponent
- Returns:
- true if the generated output is javascript
-
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
-
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
-
getId
public String getId()
- Specified by:
getId
in interfaceComponent
- Overrides:
getId
in classBaseComponent
- Returns:
- the id of the component, see the id description in the root of this class.
-
bypassAuthentication
public boolean bypassAuthentication()
- Overrides:
bypassAuthentication
in classBaseComponent
-
-