Package org.openxava.web.meta
Class MetaEditor
- java.lang.Object
-
- org.openxava.web.meta.MetaEditor
-
- All Implemented Interfaces:
java.lang.Cloneable
public class MetaEditor extends java.lang.Object implements java.lang.Cloneable
Editor associated to a type.- Author:
- Javier Paniza
-
-
Constructor Summary
Constructors Constructor Description MetaEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_addFormatterMetaSet(MetaSet metaSet)
void
_addListFormatterMetaSet(MetaSet metaSet)
void
addAnnotation(java.lang.String newAnnotation)
void
addProperty(java.lang.String name, java.lang.String value)
void
addStereotype(java.lang.String newStereotype)
void
addType(java.lang.String newPropertyType)
boolean
annotationMatches(MetaEditor editor, MetaProperty mp)
MetaEditor
cloneMetaEditor()
boolean
depends(MetaProperty p)
boolean
dependsOnSomeOther()
If this editor depends of some other property or stereotype.boolean
dependsStereotype(MetaProperty p)
java.util.Set<java.lang.String>
getAnnotationSet()
java.lang.Integer
getDefaultLabelFormat()
Default label format for the editor.IFormatter
getFormatter()
java.lang.String
getFormatterClassName()
java.lang.Object
getFormatterObject()
java.lang.String
getIcon()
java.lang.String
getInitAction()
IFormatter
getListFormatter()
java.lang.String
getListFormatterClassName()
java.lang.Object
getListFormatterObject()
IMetaPropertyFormatter
getMetaPropertyFormatter()
IMultipleValuesFormatter
getMultipleValuesFormatter()
java.lang.String
getName()
int
getPriority()
java.lang.String
getProperty(java.lang.String name)
java.lang.String
getReleaseAction()
java.util.Set<java.lang.String>
getStereotypeSet()
java.util.Set<java.lang.String>
getTypeSet()
java.lang.String
getUrl()
boolean
hasFormatter()
boolean
hasHasSet()
boolean
hasMultipleValuesFormatter()
boolean
hasProperty(java.lang.String name)
boolean
isAlwaysReload()
boolean
isComposite()
boolean
isFormat()
boolean
isFormatterFromType()
boolean
isFrame()
boolean
isSelectableItems()
void
setAlwaysReload(boolean alwaysReload)
void
setComposite(boolean composite)
void
setDefaultLabelFormat(java.lang.Integer defaultLabelFormat)
void
setDependsProperties(java.lang.String properties)
void
setDependsStereotypes(java.lang.String stereotypes)
void
setFormat(boolean b)
void
setFormatterClassName(java.lang.String string)
void
setFormatterFromType(boolean formatterFromType)
void
setFrame(boolean b)
void
setIcon(java.lang.String icon)
void
setInitAction(java.lang.String initAction)
void
setListFormatterClassName(java.lang.String listFormatterClassName)
void
setName(java.lang.String name)
void
setReleaseAction(java.lang.String releaseAction)
void
setSelectableItems(boolean selectableItems)
void
setUrl(java.lang.String string)
boolean
stereotypeMatches(MetaProperty mp)
boolean
typeMatches(MetaProperty mp)
-
-
-
Method Detail
-
_addListFormatterMetaSet
public void _addListFormatterMetaSet(MetaSet metaSet)
-
_addFormatterMetaSet
public void _addFormatterMetaSet(MetaSet metaSet)
-
getUrl
public java.lang.String getUrl()
-
setUrl
public void setUrl(java.lang.String string)
-
addProperty
public void addProperty(java.lang.String name, java.lang.String value)
-
hasProperty
public boolean hasProperty(java.lang.String name)
-
getProperty
public java.lang.String getProperty(java.lang.String name)
- Since:
- 6.2
-
cloneMetaEditor
public MetaEditor cloneMetaEditor()
- Since:
- 6.6
-
setDependsStereotypes
public void setDependsStereotypes(java.lang.String stereotypes)
-
setDependsProperties
public void setDependsProperties(java.lang.String properties)
-
depends
public boolean depends(MetaProperty p)
-
dependsStereotype
public boolean dependsStereotype(MetaProperty p)
-
hasFormatter
public boolean hasFormatter() throws XavaException
- Throws:
XavaException
-
hasMultipleValuesFormatter
public boolean hasMultipleValuesFormatter() throws XavaException
- Throws:
XavaException
-
getFormatterObject
public java.lang.Object getFormatterObject() throws XavaException
- Throws:
XavaException
-
getFormatter
public IFormatter getFormatter() throws XavaException
- Throws:
XavaException
-
getListFormatterObject
public java.lang.Object getListFormatterObject() throws XavaException
- Throws:
XavaException
-
getListFormatter
public IFormatter getListFormatter() throws XavaException
- Throws:
XavaException
-
getMultipleValuesFormatter
public IMultipleValuesFormatter getMultipleValuesFormatter() throws XavaException
- Throws:
XavaException
-
getMetaPropertyFormatter
public IMetaPropertyFormatter getMetaPropertyFormatter() throws XavaException
- Throws:
XavaException
-
getFormatterClassName
public java.lang.String getFormatterClassName()
-
setFormatterClassName
public void setFormatterClassName(java.lang.String string)
-
hasHasSet
public boolean hasHasSet()
-
getTypeSet
public java.util.Set<java.lang.String> getTypeSet()
-
getAnnotationSet
public java.util.Set<java.lang.String> getAnnotationSet()
-
getStereotypeSet
public java.util.Set<java.lang.String> getStereotypeSet()
-
addType
public void addType(java.lang.String newPropertyType)
-
addAnnotation
public void addAnnotation(java.lang.String newAnnotation)
-
addStereotype
public void addStereotype(java.lang.String newStereotype)
-
typeMatches
public boolean typeMatches(MetaProperty mp)
-
annotationMatches
public boolean annotationMatches(MetaEditor editor, MetaProperty mp)
-
stereotypeMatches
public boolean stereotypeMatches(MetaProperty mp)
-
isFormat
public boolean isFormat()
-
setFormat
public void setFormat(boolean b)
-
isFrame
public boolean isFrame()
-
setFrame
public void setFrame(boolean b)
-
isFormatterFromType
public boolean isFormatterFromType()
-
setFormatterFromType
public void setFormatterFromType(boolean formatterFromType)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
dependsOnSomeOther
public boolean dependsOnSomeOther()
If this editor depends of some other property or stereotype.
-
setAlwaysReload
public void setAlwaysReload(boolean alwaysReload)
-
isAlwaysReload
public boolean isAlwaysReload()
-
isComposite
public boolean isComposite()
-
setComposite
public void setComposite(boolean composite)
-
getListFormatterClassName
public java.lang.String getListFormatterClassName()
-
setListFormatterClassName
public void setListFormatterClassName(java.lang.String listFormatterClassName)
-
getIcon
public java.lang.String getIcon()
-
setIcon
public void setIcon(java.lang.String icon)
-
getInitAction
public java.lang.String getInitAction()
-
setInitAction
public void setInitAction(java.lang.String initAction)
-
getReleaseAction
public java.lang.String getReleaseAction()
-
setReleaseAction
public void setReleaseAction(java.lang.String releaseAction)
-
isSelectableItems
public boolean isSelectableItems()
-
setSelectableItems
public void setSelectableItems(boolean selectableItems)
-
getPriority
public int getPriority()
-
getDefaultLabelFormat
public java.lang.Integer getDefaultLabelFormat()
Default label format for the editor.The possible values are NORMAL_LABEL, SMALL_LABEL and NO_LABEL from MetaPropertyView.
If not specified the value will be null.- Since:
- 7.4
-
setDefaultLabelFormat
public void setDefaultLabelFormat(java.lang.Integer defaultLabelFormat)
-
-