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

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.SelectDesignModelImp
              extended bycom.cc.framework.ui.model.imp.MultiLevelSelectDesignModelImp
All Implemented Interfaces:
AccessControlled, ActionBehavior, AjaxSupport, ClientHandler, ControlDesignModel, DesignModel, MultiLevelSelectDesignModel, SelectDesignModel, java.io.Serializable

public class MultiLevelSelectDesignModelImp
extends SelectDesignModelImp
implements MultiLevelSelectDesignModel

Designmodel for the SelectControl

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

Field Summary
private  int levels
          Number of select levels
private  java.lang.String selectableProperty
          The name of the property that specifies if a tree node is to be selectable by the user or not.
private static long serialVersionUID
          Serial Version UID
private  int size
          Number of character positions to allocate.
 
Fields inherited from class com.cc.framework.ui.model.imp.SelectDesignModelImp
 
Fields inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp
 
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
 
Constructor Summary
MultiLevelSelectDesignModelImp()
          Constructor for SelectDesignModelImp
 
Method Summary
 int getLevels()
          Returns the number of levels.
 java.lang.String getSelectableProperty()
          Returns the name of the property that specifies if a tree node is to be selectable by the user or not.
 int getSize()
          Returns the number of visible items.
 boolean isMultiple()
          Indicates that multiple selections is allowed.
 void setLevels(int levels)
          Sets the number of levels
 void setMultiple(boolean multiple)
          Indicates that multiple selections is allowed.
 void setSelectableProperty(java.lang.String property)
          Sets the name of the property that specifies if a tree node is to be selectable by the user or not.
 void setSize(int size)
          Sets the number of visible items
 
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.ControlDesignModel
addDesignRule, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, 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, setTooltip, 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

size

private int size
Number of character positions to allocate.


levels

private int levels
Number of select levels


selectableProperty

private java.lang.String selectableProperty
The name of the property that specifies if a tree node is to be selectable by the user or not. Each node of the datamodel has to implement this property. The property must return a boolean value.

Constructor Detail

MultiLevelSelectDesignModelImp

public MultiLevelSelectDesignModelImp()
Constructor for SelectDesignModelImp

Method Detail

getLevels

public int getLevels()
Description copied from interface: MultiLevelSelectDesignModel
Returns the number of levels.

Specified by:
getLevels in interface MultiLevelSelectDesignModel
Returns:
Number of levels
See Also:
MultiLevelSelectDesignModel.getLevels()

setLevels

public void setLevels(int levels)
Description copied from interface: MultiLevelSelectDesignModel
Sets the number of levels

Specified by:
setLevels in interface MultiLevelSelectDesignModel
Parameters:
levels - The number of levels
See Also:
MultiLevelSelectDesignModel.setLevels(int)

getSize

public int getSize()
Description copied from interface: SelectDesignModel
Returns the number of visible items.

Specified by:
getSize in interface SelectDesignModel
Overrides:
getSize in class SelectDesignModelImp
See Also:
SelectDesignModel.getSize()

setSize

public void setSize(int size)
Description copied from interface: SelectDesignModel
Sets the number of visible items

Specified by:
setSize in interface SelectDesignModel
Overrides:
setSize in class SelectDesignModelImp
See Also:
SelectDesignModel.setSize(int)

setMultiple

public void setMultiple(boolean multiple)
Description copied from interface: SelectDesignModel
Indicates that multiple selections is allowed.

Specified by:
setMultiple in interface SelectDesignModel
Overrides:
setMultiple in class SelectDesignModelImp
See Also:
SelectDesignModelImp.setMultiple(boolean)

isMultiple

public boolean isMultiple()
Description copied from interface: SelectDesignModel
Indicates that multiple selections is allowed.

Specified by:
isMultiple in interface SelectDesignModel
Overrides:
isMultiple in class SelectDesignModelImp
See Also:
SelectDesignModelImp.isMultiple()

getSelectableProperty

public java.lang.String getSelectableProperty()
Description copied from interface: MultiLevelSelectDesignModel
Returns the name of the property that specifies if a tree node is to be selectable by the user or not. Each node of the data model has to implement this property. The property must return a boolean value.

Specified by:
getSelectableProperty in interface MultiLevelSelectDesignModel
Returns:
property name or null
See Also:
MultiLevelSelectDesignModel.getSelectableProperty()

setSelectableProperty

public void setSelectableProperty(java.lang.String property)
Description copied from interface: MultiLevelSelectDesignModel
Sets the name of the property that specifies if a tree node is to be selectable by the user or not. Each node of the data model has to implement this property. The property must return a boolean value.

Specified by:
setSelectableProperty in interface MultiLevelSelectDesignModel
Parameters:
property - the name of the property
See Also:
MultiLevelSelectDesignModel.setSelectableProperty(java.lang.String)


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