Class MetaTab
×News: XavaPro 7.7 released - March 11 · Read more
java.lang.Object
org.openxava.tab.meta.MetaTab
- All Implemented Interfaces:
Serializable, Cloneable
- Author:
- Javier Paniza
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetaProperty(MetaProperty metaProperty) voidaddMetaRowStyle(MetaRowStyle style) voidaddProperty(int index, String propertyName) For dynamically add properties to this tabvoidaddProperty(String propertyName) For dynamically add properties to this tabbuildFilterConditionForContent(String content) Convenience overload that filters using all non-calculated visible properties of this tab.buildFilterConditionForContent(String content, Collection<String> propertiesToUse) Builds a condition to filter rows by textual content across one or more properties, reusing the same semantics as Tab.filterByContentInAnyProperty.voidFor dynamically remove all properties to this tabstatic MetaTabcreateDefault(MetaComponent component) static MetaTabcreateDefault(MetaModel metaModel) voiddropMember(String memberName) Apply the tab filter to sent objects.Gets the comma-separated list of editable properties for this tab.Names of properties that must to exist but is not needed show they to users.getId()Hidden ones are not includedgetName()Sum properties names.static StringgetTitleI18n(Locale locale, String modelName, String tabName) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisPropertyEditable(String propertyName) Checks if a property is in the editable properties list.voidmoveProperty(int from, int to) namesToMetaProperties(Collection names) voidremoveEditableMember(String memberName) Removes a member from the editable properties list.voidremoveProperty(int index) For dynamically remove properties to this tabvoidremoveProperty(String propertyName) For dynamically remove properties to this tabvoidvoidsetBaseCondition(String string) voidsetDefaultOrder(String defaultOrder) voidsetDefaultPropertiesNames(String properties) voidvoidsetEditableProperties(String editableProperties) Sets the comma-separated list of editable properties for this tab.voidvoidsetEditors(String editors) voidsetExcludeAll(boolean excludeAll) voidsetExcludeByKey(boolean excludeByKey) voidsetMetaComponent(MetaComponent component) voidsetMetaFilter(MetaFilter metaFilter) voidsetMetaModel(MetaModel metaModel) voidsetMetaRowStyles(Collection styles) voidsetModelName(String modelName) voidvoidsetPropertiesNames(String properties) Comma separated.
-
Constructor Details
-
MetaTab
public MetaTab()
-
-
Method Details
-
getTitleI18n
public static String getTitleI18n(Locale locale, String modelName, String tabName) throws XavaException - Throws:
XavaException
-
getMetaModel
- Throws:
XavaException
-
setMetaModel
-
createDefault
- Throws:
XavaException
-
createDefault
-
getMetaProperties
- Returns:
- Not null, read only and of type MetaProperty.
- Throws:
XavaException
-
buildFilterConditionForContent
public String buildFilterConditionForContent(String content, Collection<String> propertiesToUse) throws XavaException Builds a condition to filter rows by textual content across one or more properties, reusing the same semantics as Tab.filterByContentInAnyProperty.- Parameters:
content- Text entered by the userpropertiesToUse- Qualified property names to include in the filter; if null, all non-calculated visible properties of the tab are used- Throws:
XavaException- Since:
- 7.6.3
-
buildFilterConditionForContent
Convenience overload that filters using all non-calculated visible properties of this tab.- Throws:
XavaException- Since:
- 7.6.3
-
getMetaPropertiesHidden
- Throws:
XavaException
-
namesToMetaProperties
- Throws:
XavaException
-
getMetaPropertiesCalculated
Hidden ones are not included- Returns:
- Not null, read only and of type MetaProperty.
- Throws:
XavaException
-
getMetaPropertiesHiddenCalculated
- Returns:
- Not null, read only and of type MetaProperty.
- Throws:
XavaException
-
hasCalculatedProperties
- Throws:
XavaException
-
getTableColumns
- Returns:
- Not null, read only and of type String.
- Throws:
XavaException
-
getHiddenTableColumns
- Returns:
- Not null, read only and of type String.
- Throws:
XavaException
-
getPropertiesNames
- Returns:
- Not null, read only of type String.
- Throws:
XavaException
-
getPropertiesNamesWithKeyAndHidden
- Throws:
XavaException
-
getHiddenPropertiesNames
Names of properties that must to exist but is not needed show they to users.Usually are properties used to calculate others.
The keys are excluded.- Returns:
- Not null, read only and of type String.
- Throws:
XavaException
-
setDefaultPropertiesNames
-
setPropertiesNames
Comma separated. -
getSelect
- Throws:
XavaException
-
getCmpFieldsColumnsInMultipleProperties
- Throws:
XavaException
-
getMetaComponent
-
setMetaComponent
-
isExcludeByKey
public boolean isExcludeByKey() -
isExcludeAll
public boolean isExcludeAll() -
setExcludeByKey
public void setExcludeByKey(boolean excludeByKey) -
setExcludeAll
public void setExcludeAll(boolean excludeAll) -
getName
-
setName
-
getMetaFilter
-
setMetaFilter
-
hasFilter
public boolean hasFilter() -
addMetaProperty
-
addProperty
For dynamically add properties to this tab -
addProperty
For dynamically add properties to this tab -
removeProperty
For dynamically remove properties to this tab -
dropMember
- Since:
- 5.6
-
removeProperty
public void removeProperty(int index) For dynamically remove properties to this tab -
moveProperty
public void moveProperty(int from, int to) - Since:
- 5.2
-
clearProperties
public void clearProperties()For dynamically remove all properties to this tab -
restoreDefaultProperties
public void restoreDefaultProperties() -
getBaseCondition
-
setBaseCondition
-
hasBaseCondition
public boolean hasBaseCondition() -
filter
Apply the tab filter to sent objects.It's used to filter arguments.
- Throws:
FilterExceptionXavaException
-
getId
-
getDefaultOrder
-
setDefaultOrder
-
hasDefaultOrder
public boolean hasDefaultOrder() -
cloneMetaTab
-
getRemainingPropertiesNames
- Throws:
XavaException
-
getRemainingPropertiesNamesUntilSecondLevel
- Throws:
XavaException- Since:
- 5.2
-
addMetaRowStyle
-
setMetaRowStyles
-
hasRowStyles
public boolean hasRowStyles() -
getMetaRowStyles
-
getModelName
-
setModelName
- Throws:
XavaException
-
setDefaultValues
public void setDefaultValues() -
getSumPropertiesNames
Sum properties names.It was renamed in v4.3 from getTotalPropertiesNames() to getSumPropertiesNames()
- Since:
- 4.3
-
getEditor
-
setEditor
-
getEditors
-
setEditors
-
getEditableProperties
Gets the comma-separated list of editable properties for this tab. Only plain editable properties are allowed.- Returns:
- The editable properties as a comma-separated string, or null if not defined
- Since:
- 7.6
-
setEditableProperties
Sets the comma-separated list of editable properties for this tab.- Parameters:
editableProperties- The editable properties to set as a comma-separated string- Since:
- 7.6
-
removeEditableMember
Removes a member from the editable properties list. If the member is a reference (e.g. "cliente"), all qualified properties starting with that reference (e.g. "cliente.numero", "cliente.nombre") will be removed.- Parameters:
memberName- The name of the member to remove- Since:
- 7.6
-
isPropertyEditable
Checks if a property is in the editable properties list.- Parameters:
propertyName- The name of the property to check- Returns:
- true if the property is editable, false otherwise
-