Class AttachmentWindowComponent
- java.lang.Object
-
- org.openbravo.client.kernel.BaseComponent
-
- org.openbravo.client.kernel.BaseTemplateComponent
-
- org.openbravo.client.application.attachment.AttachmentWindowComponent
-
- All Implemented Interfaces:
Component
public class AttachmentWindowComponent extends BaseTemplateComponent
The component which takes care of creating a class for a tab's Attachment popup.
-
-
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 AttachmentWindowComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generate()
Generates java-script codeString
getAttachmentMethodId()
Gets the Attachment Methodprotected Template
getComponentTemplate()
String
getDynamicColumns()
Return a JSONObject with all dynamic columns parsed to String.OBViewParameterHandler
getParamHandler()
Gets the OBViewParameterHandler for this classWindow
getParentWindow()
Gets the Parent Window of the Attachment component.String
getWindowClientClassName()
Gets a String composed by the tabId, attachmentId and if is in development, an unique sequencevoid
initialize(Tab _tab, AttachmentMethod _attMethod)
Sets the Attachment Method and Tab.-
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, setContextUrl, setDependencies, setId, setParameters, stripHost
-
-
-
-
Method Detail
-
getComponentTemplate
protected Template getComponentTemplate()
- Overrides:
getComponentTemplate
in classBaseTemplateComponent
-
getWindowClientClassName
public String getWindowClientClassName()
Gets a String composed by the tabId, attachmentId and if is in development, an unique sequence- Returns:
- String sequence generated for this attach
-
generate
public String generate()
Generates java-script code- Specified by:
generate
in interfaceComponent
- Overrides:
generate
in classBaseTemplateComponent
- Returns:
- generated code
-
initialize
public void initialize(Tab _tab, AttachmentMethod _attMethod)
Sets the Attachment Method and Tab. Actualizes metadata depending on this tab an attachment method- Parameters:
_tab
- Tab to set._attMethod
- Method to set.
-
getAttachmentMethodId
public String getAttachmentMethodId()
Gets the Attachment Method- Returns:
- Attachment Method
-
getParamHandler
public OBViewParameterHandler getParamHandler()
Gets the OBViewParameterHandler for this class- Returns:
- OBViewParameterHandler injected on this class
-
getParentWindow
public Window getParentWindow()
Gets the Parent Window of the Attachment component.
-
getDynamicColumns
public String getDynamicColumns()
Return a JSONObject with all dynamic columns parsed to String. Dynamic columns is a list of columns that cause others to be modified, it includes the ones causing the modification as well as the affected ones. Columns are identified as strings surrounded by quotes (" or ') matching one of the names of the parameters.- Returns:
- Dynamic columns parsed to string
-
-