com.trackstudio.app.filter.customizer
Class TextCustomizer

java.lang.Object
  extended by com.trackstudio.app.filter.customizer.Customizer
      extended by com.trackstudio.app.filter.customizer.TextCustomizer
All Implemented Interfaces:
java.io.Serializable

public class TextCustomizer
extends Customizer
implements java.io.Serializable

Кастомный вывод текста (для вывода в фильтрах)

See Also:
Serialized Form

Field Summary
static int CHARS
          Символ
static int FLOAT
          Дробное число
static int INTEGER
          Целое число
static int NATURAL
          Натуральное число
static int NOT_FILTERED
          Нет фильтрации
static int QUANTITIES
          кванты
 
Fields inherited from class com.trackstudio.app.filter.customizer.Customizer
disabled, map
 
Constructor Summary
TextCustomizer(int type, FieldMap map)
          Конструктор
 
Method Summary
 java.lang.String draw(SessionContext sc, FValue filter, java.lang.String contextPath)
          Метод для вывода информативного блока о полях
 java.lang.String drawInput(SessionContext sc, FValue filter, java.lang.String contextPath)
          Метод для вывода блока ввода для полей
 void setFilter(SessionContext sc, javax.servlet.http.HttpServletRequest request, FValue filter)
          Устанавливает фильтр
 void setSecured(Secured secured)
          Устанавливает секурность
 
Methods inherited from class com.trackstudio.app.filter.customizer.Customizer
drawForDateOrPopUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLOAT

public static final int FLOAT
Дробное число

See Also:
Constant Field Values

CHARS

public static final int CHARS
Символ

See Also:
Constant Field Values

QUANTITIES

public static final int QUANTITIES
кванты

See Also:
Constant Field Values

INTEGER

public static final int INTEGER
Целое число

See Also:
Constant Field Values

NATURAL

public static final int NATURAL
Натуральное число

See Also:
Constant Field Values

NOT_FILTERED

public static final int NOT_FILTERED
Нет фильтрации

See Also:
Constant Field Values
Constructor Detail

TextCustomizer

public TextCustomizer(int type,
                      FieldMap map)
Конструктор

Parameters:
type - тип
map - карта полей
Method Detail

setSecured

public void setSecured(Secured secured)
Устанавливает секурность

Parameters:
secured - секурность

draw

public java.lang.String draw(SessionContext sc,
                             FValue filter,
                             java.lang.String contextPath)
                      throws GranException
Метод для вывода информативного блока о полях

Specified by:
draw in class Customizer
Parameters:
sc - сессия пользователя
filter - фильтр
contextPath - относительный путь контекста
Returns:
строка вывода
Throws:
GranException - при необзодимости

setFilter

public void setFilter(SessionContext sc,
                      javax.servlet.http.HttpServletRequest request,
                      FValue filter)
               throws GranException
Устанавливает фильтр

Specified by:
setFilter in class Customizer
Parameters:
sc - сессия пользователя
request - запрос
filter - фильтр
Throws:
GranException - при необходимости

drawInput

public java.lang.String drawInput(SessionContext sc,
                                  FValue filter,
                                  java.lang.String contextPath)
                           throws GranException
Метод для вывода блока ввода для полей

Specified by:
drawInput in class Customizer
Parameters:
sc - сессия пользователя
filter - фильтр
contextPath - относительный путь контекста
Returns:
строка вывода
Throws:
GranException - при необзодимости


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