com.trackstudio.app.udf
Class CalendarValue

java.lang.Object
  extended by com.trackstudio.app.udf.GenericValue
      extended by com.trackstudio.app.udf.CalendarValue

public class CalendarValue
extends GenericValue

Класс, описывает значение пользовательского поля типа Дата


Nested Class Summary
 
Nested classes/interfaces inherited from class com.trackstudio.app.udf.GenericValue
GenericValue.TimeCapsula
 
Field Summary
 
Fields inherited from class com.trackstudio.app.udf.GenericValue
udfId
 
Constructor Summary
CalendarValue(java.lang.String udfId)
          Конструктор по умолчанию
 
Method Summary
 Customizer getCustomizer(java.lang.String caption, java.lang.String timezone, java.lang.String locale, java.lang.String sortcolumn, boolean disabled)
          Возвращает кастомизатор для этого типа поля
 java.util.Calendar getValue(java.lang.Object calculated)
          Возвращает значение пользовательского поля
 java.lang.String getValueAsString(java.lang.Object o)
          Возвращает значение поля в виде строки
 void setValue(UdfvalCacheItem val)
          Устанавливает значение пользовательского поля
 
Methods inherited from class com.trackstudio.app.udf.GenericValue
equals, findListValue, getUdfId, setUdfId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarValue

public CalendarValue(java.lang.String udfId)
Конструктор по умолчанию

Parameters:
udfId - ID поля
Method Detail

setValue

public void setValue(UdfvalCacheItem val)
              throws GranException
Устанавливает значение пользовательского поля

Overrides:
setValue in class GenericValue
Parameters:
val - значение
Throws:
GranException - при необходимости

getValue

public java.util.Calendar getValue(java.lang.Object calculated)
Возвращает значение пользовательского поля

Specified by:
getValue in class GenericValue
Parameters:
calculated - Вычисляемое поле или нет
Returns:
дата

getValueAsString

public java.lang.String getValueAsString(java.lang.Object o)
                                  throws GranException
Возвращает значение поля в виде строки

Specified by:
getValueAsString in class GenericValue
Parameters:
o - значение
Returns:
строковое представление
Throws:
GranException - при необходимости

getCustomizer

public Customizer getCustomizer(java.lang.String caption,
                                java.lang.String timezone,
                                java.lang.String locale,
                                java.lang.String sortcolumn,
                                boolean disabled)
                         throws GranException
Возвращает кастомизатор для этого типа поля

Specified by:
getCustomizer in class GenericValue
Parameters:
caption - заголовок поля
timezone - таймзона
locale - локаль
sortcolumn - сортировка
disabled - активное поле или нет
Returns:
кастомизатор
Throws:
GranException - при необходимости
See Also:
Customizer


Copyright © 2002-2009 TrackStudio, Ltd. All Rights Reserved.