|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxava.util.meta.MetaElement
org.openxava.view.meta.MetaView
public class MetaView
| Constructor Summary | |
|---|---|
MetaView()
|
|
| Method Summary | |
|---|---|
void |
addMetaGroup(java.lang.String name,
java.lang.String label,
java.lang.String members,
boolean alignedByColumns)
|
void |
addMetaViewCollection(MetaCollectionView metaCollectionView)
|
void |
addMetaViewProperty(MetaProperty metaProperty)
|
void |
addMetaViewProperty(MetaPropertyView metaPropertyView)
|
void |
addMetaViewReference(MetaReferenceView metaReferenceView)
|
MetaView |
addSection(java.lang.String name,
java.lang.String label,
java.lang.String members,
boolean alignedByColumns)
|
void |
clearSections()
|
protected java.lang.Object |
clone()
|
boolean |
containsViewProperty(java.lang.String name)
|
MetaDescriptionsList |
createMetaDescriptionList(MetaReference r)
|
IOnChangePropertyAction |
createOnChangeAction(java.lang.String qualifiedPropertyName)
|
IOnChangePropertyAction |
createOnChangeSearchAction(java.lang.String refName)
|
java.util.Collection |
getActionsNamesForProperty(MetaProperty p,
boolean editable)
|
java.util.Collection |
getActionsNamesForReference(MetaReference ref,
boolean editable)
|
int |
getDisplaySizeForProperty(MetaProperty p)
|
java.lang.String |
getEditorFor(MetaMember m)
|
java.lang.String |
getExtendsView()
|
java.lang.String |
getId()
Unique id of element, normally used to search the label in the resources files. |
protected java.lang.String |
getLabel(java.util.Locale locale,
java.lang.String id)
Implementation of label obtaining. |
int |
getLabelFormatForProperty(MetaProperty p)
|
int |
getLabelFormatForReference(MetaReference ref)
|
java.lang.String |
getLabelStyleForProperty(MetaProperty p)
|
java.lang.String |
getLabelStyleForReference(MetaReference ref)
|
java.lang.String |
getMediatorClassName()
|
java.util.Collection |
getMembersNames()
|
MetaCollectionView |
getMetaCollectionView(java.lang.String collectionName)
|
MetaDescriptionsList |
getMetaDescriptionList(MetaReference r)
|
java.util.Collection |
getMetaDescriptionsLists()
|
java.util.Collection |
getMetaMembers()
|
MetaModel |
getMetaModel()
|
MetaProperty |
getMetaProperty(java.lang.String name)
Including if property is inside a section |
MetaReferenceView |
getMetaReferenceView(MetaReference r)
|
MetaReferenceView |
getMetaReferenceViewFor(java.lang.String ref)
|
MetaSearchAction |
getMetaSearchAction()
To search the objects of type that is represents by this view. |
MetaView |
getMetaView(MetaReference r)
|
MetaView |
getMetaViewOnlyKeys(MetaReference r)
|
java.util.Collection |
getMetaViewProperties()
|
java.lang.String |
getModelName()
|
java.util.Collection |
getNotAlwaysEnabledViewActionsNames()
|
java.util.Collection |
getPropertiesNamesThrowOnChange()
|
java.util.List |
getSections()
|
java.util.Collection |
getViewPropertiesNames()
|
boolean |
hasMetaSearchAction()
|
boolean |
hasOnChangeAction(java.lang.String qualifiedPropertyName)
|
boolean |
hasSections()
|
boolean |
isAlignedByColumns()
|
boolean |
isAllMembers()
|
boolean |
isEmpty()
If does not have members to visualize. |
boolean |
isFrame()
|
void |
setAlignedByColumns(boolean alignedByColumns)
|
void |
setAllMembers(boolean newAllMembers)
|
void |
setExtendsView(java.lang.String extendsView)
|
void |
setFrame(boolean frame)
|
void |
setMediatorClassName(java.lang.String mediatorClassName)
|
void |
setMembersNames(java.lang.String membersNames)
|
void |
setMembersNamesNotResetSections(java.lang.String membersNames)
|
void |
setMetaModel(MetaModel metaModel)
|
void |
setMetaSearchAction(MetaSearchAction metaSearchAction)
|
void |
setModelName(java.lang.String modelName)
|
| Methods inherited from class org.openxava.util.meta.MetaElement |
|---|
getDescription, getDescription, getDescription, getLabel, getLabel, getLocale, getName, has18nLabel, hasName, setDescription, setLabel, setName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetaView()
| Method Detail |
|---|
public void addMetaViewProperty(MetaProperty metaProperty)
throws XavaException
XavaException
public void addMetaViewReference(MetaReferenceView metaReferenceView)
throws XavaException
XavaException
public void addMetaViewProperty(MetaPropertyView metaPropertyView)
throws XavaException
XavaException
public void addMetaViewCollection(MetaCollectionView metaCollectionView)
throws XavaException
XavaException
public MetaProperty getMetaProperty(java.lang.String name)
throws XavaException
XavaException
public java.util.Collection getMetaMembers()
throws XavaException
XavaException
public MetaModel getMetaModel()
throws XavaException
XavaException
public void setMetaModel(MetaModel metaModel)
throws XavaException
XavaException
public java.lang.String getModelName()
throws XavaException
XavaException
public void setModelName(java.lang.String modelName)
throws XavaException
XavaExceptionpublic boolean isAllMembers()
public boolean isEmpty()
throws XavaException
XavaException
public java.util.Collection getMembersNames()
throws XavaException
XavaException
public void setMembersNames(java.lang.String membersNames)
throws XavaException
membersNames - Names separated by commas or spaces.
XavaException
public void setMembersNamesNotResetSections(java.lang.String membersNames)
throws XavaException
membersNames - Names separated by commas or spaces.
XavaExceptionpublic void setAllMembers(boolean newAllMembers)
public boolean hasOnChangeAction(java.lang.String qualifiedPropertyName)
public IOnChangePropertyAction createOnChangeAction(java.lang.String qualifiedPropertyName)
throws XavaException
XavaException
public IOnChangePropertyAction createOnChangeSearchAction(java.lang.String refName)
throws XavaException
XavaExceptionpublic boolean hasMetaSearchAction()
public MetaSearchAction getMetaSearchAction()
public void setMetaSearchAction(MetaSearchAction metaSearchAction)
public MetaDescriptionsList getMetaDescriptionList(MetaReference r)
throws XavaException
XavaException
public MetaDescriptionsList createMetaDescriptionList(MetaReference r)
throws XavaException
XavaExceptionpublic java.util.Collection getMetaDescriptionsLists()
public MetaView getMetaViewOnlyKeys(MetaReference r)
throws XavaException
XavaException
public MetaView getMetaView(MetaReference r)
throws XavaException
XavaExceptionpublic MetaReferenceView getMetaReferenceView(MetaReference r)
public MetaReferenceView getMetaReferenceViewFor(java.lang.String ref)
public java.util.List getSections()
throws XavaException
XavaException
public MetaView addSection(java.lang.String name,
java.lang.String label,
java.lang.String members,
boolean alignedByColumns)
throws XavaException
XavaException
public void addMetaGroup(java.lang.String name,
java.lang.String label,
java.lang.String members,
boolean alignedByColumns)
throws XavaException
XavaExceptionpublic boolean hasSections()
public void clearSections()
public java.lang.String getMediatorClassName()
throws XavaException
XavaExceptionpublic void setMediatorClassName(java.lang.String mediatorClassName)
public MetaCollectionView getMetaCollectionView(java.lang.String collectionName)
public boolean isFrame()
public void setFrame(boolean frame)
public java.lang.String getId()
MetaElement
getId in class MetaElement
protected java.lang.String getLabel(java.util.Locale locale,
java.lang.String id)
MetaElement
getLabel in class MetaElementpublic java.util.Collection getPropertiesNamesThrowOnChange()
public java.util.Collection getViewPropertiesNames()
public java.util.Collection getMetaViewProperties()
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
public java.util.Collection getActionsNamesForProperty(MetaProperty p,
boolean editable)
public java.util.Collection getActionsNamesForReference(MetaReference ref,
boolean editable)
public int getLabelFormatForProperty(MetaProperty p)
public int getDisplaySizeForProperty(MetaProperty p)
throws XavaException
XavaExceptionpublic java.lang.String getEditorFor(MetaMember m)
public int getLabelFormatForReference(MetaReference ref)
public boolean isAlignedByColumns()
public void setAlignedByColumns(boolean alignedByColumns)
public boolean containsViewProperty(java.lang.String name)
public java.util.Collection getNotAlwaysEnabledViewActionsNames()
public java.lang.String getExtendsView()
public void setExtendsView(java.lang.String extendsView)
public java.lang.String getLabelStyleForProperty(MetaProperty p)
public java.lang.String getLabelStyleForReference(MetaReference ref)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||