Class OBTreeReferenceComponent
- java.lang.Object
-
- org.openbravo.client.kernel.BaseComponent
-
- org.openbravo.client.kernel.BaseTemplateComponent
-
- org.openbravo.client.application.window.OBTreeReferenceComponent
-
- All Implemented Interfaces:
Component
public class OBTreeReferenceComponent extends BaseTemplateComponent
The backing bean for generating the OBTreeReference client-side representation.- Author:
- AugustoMauch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OBTreeReferenceComponent.LocalTreeField
-
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 OBTreeReferenceComponent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getAdditionalProperties(ReferencedTree referencedTree, boolean onlyDisplayField)
protected Template
getComponentTemplate()
String
getDataSourceId()
String
getDataSourceJavascript()
String
getDefaultPopupFilterField()
Computes the field in the popup which can receive the value entered by the user in the suggestion box, to set the first default filter.String
getDisplayField()
String
getExtraSearchFields()
Module
getModule()
List<OBTreeReferenceComponent.LocalTreeField>
getPickListFields()
String
getReferencedTableId()
ReferencedTree
getreferencedTree()
ReferencedTree
getReferencedTree()
String
getShowSelectorGrid()
String
getTitle()
List<OBTreeReferenceComponent.LocalTreeField>
getTreeGridFields()
String
getValueField()
boolean
isParentSelectionAllowed()
void
setReferencedTree(ReferencedTree referencedTree)
-
Methods inherited from class org.openbravo.client.kernel.BaseTemplateComponent
generate, getData, setComponentTemplate
-
Methods inherited from class org.openbravo.client.kernel.BaseComponent
bypassAuthentication, createComponent, getADCS, getApplicationName, getContentType, getContextUrl, getDependencies, getETag, getId, getLastModified, 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
-
setReferencedTree
public void setReferencedTree(ReferencedTree referencedTree)
-
getreferencedTree
public ReferencedTree getreferencedTree()
-
getAdditionalProperties
public static String getAdditionalProperties(ReferencedTree referencedTree, boolean onlyDisplayField)
-
isParentSelectionAllowed
public boolean isParentSelectionAllowed()
-
getModule
public Module getModule()
- Specified by:
getModule
in interfaceComponent
- Overrides:
getModule
in classBaseComponent
- Returns:
- the module providing this component
-
getDefaultPopupFilterField
public String getDefaultPopupFilterField()
Computes the field in the popup which can receive the value entered by the user in the suggestion box, to set the first default filter.- Returns:
- the field in the popup to set.
-
getReferencedTree
public ReferencedTree getReferencedTree()
-
getValueField
public String getValueField()
-
getDisplayField
public String getDisplayField()
-
getShowSelectorGrid
public String getShowSelectorGrid()
- Returns:
- true if there is at least one active field shown in grid
-
getTitle
public String getTitle()
-
getDataSourceJavascript
public String getDataSourceJavascript()
-
getExtraSearchFields
public String getExtraSearchFields()
-
getPickListFields
public List<OBTreeReferenceComponent.LocalTreeField> getPickListFields()
-
getTreeGridFields
public List<OBTreeReferenceComponent.LocalTreeField> getTreeGridFields()
-
getDataSourceId
public String getDataSourceId()
-
getReferencedTableId
public String getReferencedTableId()
-
-