public class MetaTab
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Constructor and Description |
---|
MetaTab() |
Modifier and Type | Method and Description |
---|---|
void |
addMetaProperty(MetaProperty metaProperty) |
void |
addMetaRowStyle(MetaRowStyle style) |
void |
addProperty(int index,
java.lang.String propertyName)
For dynamically add properties to this tab
|
void |
addProperty(java.lang.String propertyName)
For dynamically add properties to this tab
|
void |
clearProperties()
For dynamically remove all properties to this tab
|
MetaTab |
cloneMetaTab() |
static MetaTab |
createDefault(MetaComponent component) |
static MetaTab |
createDefault(MetaModel metaModel) |
void |
dropMember(java.lang.String memberName) |
java.lang.Object |
filter(java.lang.Object[] objects)
Apply the tab filter to sent objects.
|
java.lang.String |
getBaseCondition() |
java.util.Collection |
getCmpFieldsColumnsInMultipleProperties() |
java.lang.String |
getDefaultOrder() |
java.lang.String |
getEditor() |
java.lang.String |
getEditors() |
java.util.List |
getHiddenPropertiesNames()
Names of properties that must to exist but is not needed show they
to users.
|
java.util.Collection |
getHiddenTableColumns() |
java.lang.String |
getId() |
MetaComponent |
getMetaComponent() |
MetaFilter |
getMetaFilter() |
MetaModel |
getMetaModel() |
java.util.List<MetaProperty> |
getMetaProperties() |
java.util.Collection |
getMetaPropertiesCalculated()
Hidden ones are not included
|
java.util.Collection |
getMetaPropertiesHidden() |
java.util.Collection |
getMetaPropertiesHiddenCalculated() |
java.util.Collection |
getMetaRowStyles() |
java.lang.String |
getModelName() |
java.lang.String |
getName() |
java.util.List<java.lang.String> |
getPropertiesNames() |
java.util.List<java.lang.String> |
getPropertiesNamesWithKeyAndHidden() |
java.util.List<java.lang.String> |
getRemainingPropertiesNames() |
java.util.List |
getRemainingPropertiesNamesUntilSecondLevel() |
java.lang.String |
getSelect() |
java.util.Collection<java.lang.String> |
getSumPropertiesNames()
Sum properties names.
|
java.util.Collection |
getTableColumns() |
static java.lang.String |
getTitleI18n(java.util.Locale locale,
java.lang.String modelName,
java.lang.String tabName) |
boolean |
hasBaseCondition() |
boolean |
hasCalculatedProperties() |
boolean |
hasDefaultOrder() |
boolean |
hasFilter() |
boolean |
hasRowStyles() |
boolean |
isExcludeAll() |
boolean |
isExcludeByKey() |
void |
moveProperty(int from,
int to) |
java.util.List<MetaProperty> |
namesToMetaProperties(java.util.Collection names) |
void |
removeProperty(int index)
For dynamically remove properties to this tab
|
void |
removeProperty(java.lang.String propertyName)
For dynamically remove properties to this tab
|
void |
restoreDefaultProperties() |
void |
setBaseCondition(java.lang.String string) |
void |
setDefaultOrder(java.lang.String defaultOrder) |
void |
setDefaultPropertiesNames(java.lang.String properties) |
void |
setDefaultValues() |
void |
setEditor(java.lang.String editor) |
void |
setEditors(java.lang.String editors) |
void |
setExcludeAll(boolean excludeAll) |
void |
setExcludeByKey(boolean excludeByKey) |
void |
setMetaComponent(MetaComponent component) |
void |
setMetaFilter(MetaFilter metaFilter) |
void |
setMetaModel(MetaModel metaModel) |
void |
setMetaRowStyles(java.util.Collection styles) |
void |
setModelName(java.lang.String modelName) |
void |
setName(java.lang.String name) |
void |
setPropertiesNames(java.lang.String properties)
Comma separated.
|
public static java.lang.String getTitleI18n(java.util.Locale locale, java.lang.String modelName, java.lang.String tabName) throws XavaException
XavaException
public MetaModel getMetaModel() throws XavaException
XavaException
public void setMetaModel(MetaModel metaModel)
public static MetaTab createDefault(MetaComponent component) throws XavaException
XavaException
public java.util.List<MetaProperty> getMetaProperties() throws XavaException
XavaException
public java.util.Collection getMetaPropertiesHidden() throws XavaException
XavaException
public java.util.List<MetaProperty> namesToMetaProperties(java.util.Collection names) throws XavaException
XavaException
public java.util.Collection getMetaPropertiesCalculated() throws XavaException
XavaException
public java.util.Collection getMetaPropertiesHiddenCalculated() throws XavaException
XavaException
public boolean hasCalculatedProperties() throws XavaException
XavaException
public java.util.Collection getTableColumns() throws XavaException
XavaException
public java.util.Collection getHiddenTableColumns() throws XavaException
XavaException
public java.util.List<java.lang.String> getPropertiesNames() throws XavaException
XavaException
public java.util.List<java.lang.String> getPropertiesNamesWithKeyAndHidden() throws XavaException
XavaException
public java.util.List getHiddenPropertiesNames() throws XavaException
Usually are properties used to calcualte others.
The keys are excluded.
XavaException
public void setDefaultPropertiesNames(java.lang.String properties)
public void setPropertiesNames(java.lang.String properties)
public java.lang.String getSelect() throws XavaException
XavaException
public java.util.Collection getCmpFieldsColumnsInMultipleProperties() throws XavaException
XavaException
public MetaComponent getMetaComponent()
public void setMetaComponent(MetaComponent component)
public boolean isExcludeByKey()
public boolean isExcludeAll()
public void setExcludeByKey(boolean excludeByKey)
public void setExcludeAll(boolean excludeAll)
public java.lang.String getName()
public void setName(java.lang.String name)
public MetaFilter getMetaFilter()
public void setMetaFilter(MetaFilter metaFilter)
public boolean hasFilter()
public void addMetaProperty(MetaProperty metaProperty)
public void addProperty(java.lang.String propertyName)
public void addProperty(int index, java.lang.String propertyName)
public void removeProperty(java.lang.String propertyName)
public void dropMember(java.lang.String memberName)
public void removeProperty(int index)
public void moveProperty(int from, int to)
public void clearProperties()
public void restoreDefaultProperties()
public java.lang.String getBaseCondition()
public void setBaseCondition(java.lang.String string)
public boolean hasBaseCondition()
public java.lang.Object filter(java.lang.Object[] objects) throws FilterException, XavaException
It's used to filter arguments.
FilterException
XavaException
public java.lang.String getId()
public java.lang.String getDefaultOrder()
public void setDefaultOrder(java.lang.String defaultOrder)
public boolean hasDefaultOrder()
public MetaTab cloneMetaTab()
public java.util.List<java.lang.String> getRemainingPropertiesNames() throws XavaException
XavaException
public java.util.List getRemainingPropertiesNamesUntilSecondLevel() throws XavaException
XavaException
public void addMetaRowStyle(MetaRowStyle style)
public void setMetaRowStyles(java.util.Collection styles)
public boolean hasRowStyles()
public java.util.Collection getMetaRowStyles()
public java.lang.String getModelName()
public void setModelName(java.lang.String modelName) throws XavaException
XavaException
public void setDefaultValues()
public java.util.Collection<java.lang.String> getSumPropertiesNames()
It was renamed in v4.3 from getTotalPropertiesNames() to getSumPropertiesNames()
public java.lang.String getEditor()
public void setEditor(java.lang.String editor)
public java.lang.String getEditors()
public void setEditors(java.lang.String editors)