Class MetaEditor

java.lang.Object
org.openxava.web.meta.MetaEditor
All Implemented Interfaces:
Cloneable

public class MetaEditor extends Object implements Cloneable
Editor associated to a type.
Author:
Javier Paniza
  • Constructor Details

    • MetaEditor

      public MetaEditor()
  • Method Details

    • _addListFormatterMetaSet

      public void _addListFormatterMetaSet(MetaSet metaSet)
    • _addFormatterMetaSet

      public void _addFormatterMetaSet(MetaSet metaSet)
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String string)
    • addProperty

      public void addProperty(String name, String value)
    • hasProperty

      public boolean hasProperty(String name)
    • getProperty

      public String getProperty(String name)
      Since:
      6.2
    • getProperties

      public Map getProperties()
      Since:
      7.7
    • cloneMetaEditor

      public MetaEditor cloneMetaEditor()
      Since:
      6.6
    • setDependsStereotypes

      public void setDependsStereotypes(String stereotypes)
    • setDependsProperties

      public void setDependsProperties(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 Object getFormatterObject() throws XavaException
      Throws:
      XavaException
    • getFormatter

      public IFormatter getFormatter() throws XavaException
      Throws:
      XavaException
    • getListFormatterObject

      public 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 String getFormatterClassName()
    • setFormatterClassName

      public void setFormatterClassName(String string)
    • hasHasSet

      public boolean hasHasSet()
    • getTypeSet

      public Set<String> getTypeSet()
    • getAnnotationSet

      public Set<String> getAnnotationSet()
    • getStereotypeSet

      public Set<String> getStereotypeSet()
    • addType

      public void addType(String newPropertyType)
    • addAnnotation

      public void addAnnotation(String newAnnotation)
    • addStereotype

      public void addStereotype(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 String getName()
    • setName

      public void setName(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 String getListFormatterClassName()
    • setListFormatterClassName

      public void setListFormatterClassName(String listFormatterClassName)
    • getIcon

      public String getIcon()
    • setIcon

      public void setIcon(String icon)
    • getInitAction

      public String getInitAction()
    • setInitAction

      public void setInitAction(String initAction)
    • getReleaseAction

      public String getReleaseAction()
    • setReleaseAction

      public void setReleaseAction(String releaseAction)
    • isSelectableItems

      public boolean isSelectableItems()
    • setSelectableItems

      public void setSelectableItems(boolean selectableItems)
    • getPriority

      public int getPriority()
    • getDefaultLabelFormat

      public 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(Integer defaultLabelFormat)