Package org.openxava.view.meta
Class MetaView
java.lang.Object
org.openxava.util.meta.MetaElement
org.openxava.view.meta.MetaView
- All Implemented Interfaces:
Serializable,Cloneable
- Author:
- Javier Paniza
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetaGroup(String name, String label, String members, boolean alignedByColumns) voidaddMetaViewCollection(MetaCollectionView metaCollectionView) voidaddMetaViewProperty(MetaProperty metaProperty) voidaddMetaViewProperty(MetaPropertyView metaPropertyView) voidaddMetaViewReference(MetaReferenceView metaReferenceView) addSection(String name, String label, String members, boolean alignedByColumns) voidprotected Objectclone()booleancontainsViewProperty(String name) createOnChangeAction(String qualifiedPropertyName) createOnChangeSearchAction(String refName) getActionsNamesForProperty(MetaProperty p, boolean editable) getActionsNamesForReference(MetaReference ref, boolean editable) intgetId()Unique id of element, normally used to search the label in the resources files.protected StringImplementation of label obtaining.intIf not label format specified for the member returns the defaultLabelFormat from XavaPreferences.If not label format specified for the property returns null.If not label format specified for the reference returns null.getMetaCollectionView(String collectionName) getMetaProperty(String name) Including if property is inside a sectiongetMetaPropertyViewFor(String qualifiedPropertyName) To search the objects of type that is represents by this view.getMetaView(MetaReference r, MetaModel metaModelReferenced) booleanbooleanhasOnChangeAction(String qualifiedPropertyName) booleanbooleanbooleanbooleanisEmpty()If does not have members to visualize.booleanisFrame()voidsetAlignedByColumns(boolean alignedByColumns) voidsetAllMembers(boolean newAllMembers) voidsetExtendsView(String extendsView) voidsetFrame(boolean frame) voidsetMediatorClassName(String mediatorClassName) voidsetMembersNames(String membersNames) voidsetMembersNamesNotResetSections(String membersNames) voidsetMetaModel(MetaModel metaModel) voidsetMetaSearchAction(MetaSearchAction metaSearchAction) voidsetModelName(String modelName) voidIfnewNameis null or empty is replaced byemptySection.Methods inherited from class org.openxava.util.meta.MetaElement
getDescription, getDescription, getDescription, getDescription, getLabel, getLabel, getLabel, getLocale, getName, getPlaceholder, getPlaceholder, getPlaceholder, has18nLabel, hasName, setDescription, setLabel, setPlaceholder
-
Constructor Details
-
MetaView
public MetaView()
-
-
Method Details
-
addMetaViewProperty
- Throws:
XavaException
-
addMetaViewReference
- Throws:
XavaException
-
addMetaViewProperty
- Throws:
XavaException
-
addMetaViewCollection
- Throws:
XavaException
-
getMetaProperty
Including if property is inside a section- Throws:
XavaException
-
getMetaMembers
- Returns:
- Not null, of type MetaMember and read only
- Throws:
XavaException
-
getMetaModel
- Returns:
- Not null
- Throws:
XavaException
-
setMetaModel
- Throws:
XavaException
-
getModelName
- Throws:
XavaException
-
setModelName
- Throws:
XavaException
-
setName
IfnewNameis null or empty is replaced byemptySection.If
newNamecontains blanks (\n, \r, \t, \f) or whitespace are suppressed.- Overrides:
setNamein classMetaElement- Since:
- 5.2.1
-
isAllMembers
public boolean isAllMembers() -
isEmpty
If does not have members to visualize.- Throws:
XavaException
-
getMembersNames
- Returns:
- Not nul, of type String and read only.
- Throws:
XavaException
-
setMembersNames
- Parameters:
membersNames- Names separated by commas or spaces.- Throws:
XavaException
-
setMembersNamesNotResetSections
- Parameters:
membersNames- Names separated by commas or spaces.- Throws:
XavaException
-
setAllMembers
public void setAllMembers(boolean newAllMembers) -
hasOnChangeAction
-
createOnChangeAction
public IOnChangePropertyAction createOnChangeAction(String qualifiedPropertyName) throws XavaException - Throws:
XavaException
-
createOnChangeSearchAction
- Throws:
XavaException
-
hasMetaSearchAction
public boolean hasMetaSearchAction() -
getMetaSearchAction
To search the objects of type that is represents by this view. Not for the references -
setMetaSearchAction
-
getMetaDescriptionList
- Returns:
- Null if not found
- Throws:
XavaException
-
createMetaDescriptionList
- Throws:
XavaException
-
getMetaDescriptionsLists
- Returns:
- of type MetaDescriptionsList
-
getMetaViewOnlyKeys
- Throws:
XavaException
-
getMetaView
- Throws:
XavaException
-
getMetaView
- Throws:
XavaException- Since:
- 5.3.1
-
getMetaReferenceView
- Returns:
- Null if not found
-
getMetaPropertyViewFor
-
getMetaReferenceViewFor
-
getSections
- Throws:
XavaException
-
addSection
public MetaView addSection(String name, String label, String members, boolean alignedByColumns) throws XavaException - Returns:
- The added section
- Throws:
XavaException
-
addMetaGroup
public void addMetaGroup(String name, String label, String members, boolean alignedByColumns) throws XavaException - Throws:
XavaException
-
hasSections
public boolean hasSections() -
clearSections
public void clearSections() -
getMediatorClassName
- Throws:
XavaException
-
setMediatorClassName
-
getMetaCollectionView
- Returns:
- Null if not found
-
isFrame
public boolean isFrame() -
setFrame
public void setFrame(boolean frame) -
getId
Description copied from class:MetaElementUnique id of element, normally used to search the label in the resources files.- Specified by:
getIdin classMetaElement
-
getLabel
Description copied from class:MetaElementImplementation of label obtaining.- Overrides:
getLabelin classMetaElement
-
getPropertiesNamesThrowOnChange
-
getViewPropertiesNames
-
getMetaViewProperties
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getActionsNamesForProperty
-
getActionsNamesForReference
-
getLabelFormatForProperty
If not label format specified for the property returns null. -
getLabelFormatForReference
If not label format specified for the reference returns null. -
getLabelFormatFor
If not label format specified for the member returns the defaultLabelFormat from XavaPreferences.- Since:
- 5.7
-
getDisplaySizeForProperty
- Throws:
XavaException
-
getEditorFor
- Returns:
- Empty string if no editor is defined for this property
-
isAlignedByColumns
public boolean isAlignedByColumns() -
setAlignedByColumns
public void setAlignedByColumns(boolean alignedByColumns) -
containsViewProperty
-
getNotAlwaysEnabledViewActionsNames
-
getExtendsView
-
setExtendsView
-
getLabelStyleForProperty
-
getLabelStyleForReference
-