com.cc.framework.ui.model.imp
Class TextListDesignModelImp

java.lang.Object
  extended bycom.cc.framework.ui.model.imp.ClientHandlerImp
      extended bycom.cc.framework.ui.model.imp.ControlDesignModelImp
          extended bycom.cc.framework.ui.model.imp.TextListDesignModelImp
All Implemented Interfaces:
AccessControlled, ActionBehavior, AjaxSupport, ClientHandler, ControlDesignModel, DesignModel, java.io.Serializable, TextListDesignModel

public class TextListDesignModelImp
extends ControlDesignModelImp
implements TextListDesignModel

Designmodel for text/input list fields

Since:
1.7
Version:
$Revision: 1.4 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  Converter converter
          The converter that should be used to convert Java Objects into their localized String representation.
private  boolean filter
          Specifies if all String should be converted into there HTML representation
private  int maxLength
          Maximum number of input characters to accept.
private  int rows
          Number of rows in the list element
private static long serialVersionUID
          Serial Version UID
private  int size
          Number of character positions to allocate.
private  SortOrder sortOrder
          Specifies the sort order: none = no sort order asc = ascending sort order desc = descending sort order
 
Fields inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp
 
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
 
Constructor Summary
TextListDesignModelImp()
          Constructor
 
Method Summary
 boolean filter()
          Returns if the filter is activated (default=true).
 Converter getConverter()
          Returns the the Converter that should be used to convert Java Objects into their localized String representation.
 int getMaxLength()
          Returns the maximal number of input characters which can be inserted into the text field.
 int getRows()
          Returns the number of visible rows in the list element
 int getSize()
          Returns the number of visible characters for an input/text field.
 SortOrder getSortOrder()
          Retrieves the sort order of the control
 void setConverter(Converter converter)
          Sets the Converter that should be used to convert Java Objects into their localized String representation.
 void setFilter(boolean filter)
          Activates the HTML encoding (filter).
 void setMaxLength(int maxLength)
          Sets the maximum number of input characters to accept.
 void setRows(int rows)
          Sets the number of rows the list element will show
 void setSize(int size)
          Sets the size of the input field.
 void setSortOrder(SortOrder sortOrder)
          Specifies the sort order: none = no sort order asc = ascending sort order desc = descending sort order
 
Methods inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp
addDesignRule, enableAjax, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getWidth, hasShadow, isAjaxEnabled, isDisabled, isDynamicDesignModel, isFormElement, setAction, setBorder, setDisabled, setDynamicDesignModel, setFormElement, setHeight, setHelp, setId, setLocaleName, setName, setPermission, setProperty, setRunAt, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabIndex, setTooltip, setTransaction, setWidth, show
 
Methods inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
evaluate, getHandler, getHandlers, setHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.cc.framework.ui.model.TextListDesignModel
getTooltip, setTooltip
 
Methods inherited from interface com.cc.framework.ui.model.ControlDesignModel
addDesignRule, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTransaction, getWidth, hasShadow, isDisabled, isDynamicDesignModel, isFormElement, setAction, setBorder, setDisabled, setDynamicDesignModel, setFormElement, setHeight, setHelp, setId, setLocaleName, setName, setPermission, setProperty, setRunAt, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabIndex, setTransaction, setWidth
 
Methods inherited from interface com.cc.framework.ui.model.ClientHandler
getHandler, getHandlers, setHandler
 
Methods inherited from interface com.cc.framework.ui.model.AccessControlled
getPermission, show
 
Methods inherited from interface com.cc.framework.ui.model.ActionBehavior
isAjaxEnabled
 
Methods inherited from interface com.cc.framework.ui.model.AjaxSupport
enableAjax, isAjaxEnabled
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

sortOrder

private SortOrder sortOrder
Specifies the sort order:


converter

private Converter converter
The converter that should be used to convert Java Objects into their localized String representation. If no converter is specified the framework will use a default Converter that matches the beans data type.


maxLength

private int maxLength
Maximum number of input characters to accept.


size

private int size
Number of character positions to allocate.


rows

private int rows
Number of rows in the list element


filter

private boolean filter
Specifies if all String should be converted into there HTML representation

Constructor Detail

TextListDesignModelImp

public TextListDesignModelImp()
Constructor

Method Detail

getMaxLength

public int getMaxLength()
Description copied from interface: TextListDesignModel
Returns the maximal number of input characters which can be inserted into the text field.

Specified by:
getMaxLength in interface TextListDesignModel
Returns:
Maximum number of input characters to accept
See Also:
TextListDesignModel.getMaxLength()

getSize

public int getSize()
Description copied from interface: TextListDesignModel
Returns the number of visible characters for an input/text field.

Specified by:
getSize in interface TextListDesignModel
Returns:
Number of character positions to allocate
See Also:
TextListDesignModel.getSize()

setMaxLength

public void setMaxLength(int maxLength)
Sets the maximum number of input characters to accept.

Specified by:
setMaxLength in interface TextListDesignModel
Parameters:
maxLength - The maximum number of input characters to accept.

setSize

public void setSize(int size)
Sets the size of the input field.

Specified by:
setSize in interface TextListDesignModel
Parameters:
size - The size of the input field.

getRows

public int getRows()
Description copied from interface: TextListDesignModel
Returns the number of visible rows in the list element

Specified by:
getRows in interface TextListDesignModel
Returns:
Number of rows
See Also:
TextListDesignModel.getRows()

setRows

public void setRows(int rows)
Description copied from interface: TextListDesignModel
Sets the number of rows the list element will show

Specified by:
setRows in interface TextListDesignModel
Parameters:
rows - The number of rows
See Also:
TextListDesignModel.setRows(int)

filter

public boolean filter()
Description copied from interface: TextListDesignModel
Returns if the filter is activated (default=true). This means that all Strings which should be displayed in the HTML page are HTML encoded

Specified by:
filter in interface TextListDesignModel
Returns:
true if string will be HTML encoded; false otherwise
See Also:
TextListDesignModel.filter()

setFilter

public void setFilter(boolean filter)
Description copied from interface: TextListDesignModel
Activates the HTML encoding (filter). Default is true. This means that all Strings which should be displayed in the HTML page will be HTML encoded.

Specified by:
setFilter in interface TextListDesignModel
Parameters:
filter - true if strings should be HTML encoded; false otherwise
See Also:
TextListDesignModel.setFilter(boolean)

getConverter

public Converter getConverter()
Description copied from interface: TextListDesignModel
Returns the the Converter that should be used to convert Java Objects into their localized String representation. If no converter is specified the framework will use a default Converter that matches the beans data type

Specified by:
getConverter in interface TextListDesignModel
Returns:
Converter or nullSee Also:
TextListDesignModel.getConverter()

setConverter

public void setConverter(Converter converter)
Description copied from interface: TextListDesignModel
Sets the Converter that should be used to convert Java Objects into their localized String representation. If no converter is specified the framework will use a default Converter that matches the beans data type.

Specified by:
setConverter in interface TextListDesignModel
Parameters:
converter - Converters instance
See Also:
TextListDesignModel.setConverter(com.cc.framework.convert.Converter)

setSortOrder

public void setSortOrder(SortOrder sortOrder)
Description copied from interface: TextListDesignModel
Specifies the sort order:

Specified by:
setSortOrder in interface TextListDesignModel
Parameters:
sortOrder - The sort order of the control
See Also:
TextListDesignModel.setSortOrder(com.cc.framework.common.SortOrder)

getSortOrder

public SortOrder getSortOrder()
Description copied from interface: TextListDesignModel
Retrieves the sort order of the control

Specified by:
getSortOrder in interface TextListDesignModel
Returns:
the sort order
See Also:
TextListDesignModel.getSortOrder()


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.