Class FreeFormAttribute

All Implemented Interfaces:
Viewable, Cacheable, Observed, Retrievable, Serializable, ColumnAccessByName, ObjectModel, Persistent
Direct Known Subclasses:
AnalysisAttribute, CoordinateAttribute, FileAttribute, JSONAttribute, OptionAttribute, QueryValueAttribute, StringAttribute, UserAttribute

public abstract class FreeFormAttribute extends AttributeValue implements Viewable
Top Root AttributeValue for Viewable Component
See Also:
  • Constructor Details

    • FreeFormAttribute

      protected FreeFormAttribute()
      Creates a new FreeFormAttribute object.
  • Method Details

    • init

      public void init() throws Exception
      DOCUMENT ME!
      Overrides:
      init in class AttributeValue
      Throws:
      Exception - DOCUMENT ME!
    • setResources

      public void setResources(Object resources)
      DOCUMENT ME!
      Overrides:
      setResources in class AttributeValue
      Parameters:
      resources - DOCUMENT ME!
    • loadResources

      public Object loadResources(ActivitySet activitySet) throws Exception
      Loads from database data specific for this Attribute including Name. These are data common to all Attribute instances with same id. Data retrieved here will then be used in setResources.
      Overrides:
      loadResources in class AttributeValue
      Parameters:
      activitySet - specific activitySet
      Returns:
      Object containing Attribute resources which will be used in setResources.
      Throws:
      Exception - 처리 중 오류가 발생한 경우
    • getFormatter

      public Object getFormatter(Locale locale) throws Exception
      default same as value
      Parameters:
      locale - 표시에 사용할 locale
      Returns:
      object
      Throws:
      Exception - 값을 구하는 중 오류가 발생한 경우
    • getDisplayedValue

      public CharSequence getDisplayedValue(String type) throws Exception
      기본 locale(아이템의 locale)로 화면에 표시할 값을 구한다.
      Parameters:
      type - 표시 형식
      Returns:
      화면에 표시할 값
      Throws:
      Exception - 값을 구하는 중 오류가 발생한 경우
    • getDisplayedValue

      public CharSequence getDisplayedValue(String type, Locale locale) throws Exception
      지정한 locale 로 화면에 표시할 값을 구한다. 기본 구현은 저장된 값을 그대로 반환한다.
      Parameters:
      type - 표시 형식
      locale - 표시에 사용할 locale
      Returns:
      화면에 표시할 값
      Throws:
      Exception - 값을 구하는 중 오류가 발생한 경우