com.cc.framework.ui.control
Class MultiLevelSelectControl

java.lang.Object
  extended bycom.cc.framework.ui.control.Control
      extended bycom.cc.framework.ui.control.SelectControl
          extended bycom.cc.framework.ui.control.MultiLevelSelectControl
All Implemented Interfaces:
AccessControlled, ActionBehavior, ClientHandler, DataModel, MultiLevelSelectDataModel, MultiLevelSelectStateModel, SelectDataModel, SelectStateModel, java.io.Serializable, StateModel

public class MultiLevelSelectControl
extends SelectControl
implements MultiLevelSelectStateModel, MultiLevelSelectDataModel

The SelectControl

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

Field Summary
private static long serialVersionUID
          Serial Version UID
 
Fields inherited from class com.cc.framework.ui.control.SelectControl
 
Fields inherited from class com.cc.framework.ui.control.Control
log
 
Fields inherited from interface com.cc.framework.ui.model.StateModel
PROP_CONTROL
 
Constructor Summary
MultiLevelSelectControl()
          Constructor
MultiLevelSelectControl(MultiLevelSelectDesignModel designModel)
          Constructor
 
Method Summary
 int getLevels()
          Returns the number of visible select 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.
 void setDesignModel(MultiLevelSelectDesignModel designModel)
          Sets the DesignModel
 void setOptions(OptionListDesignModel options, java.lang.Object elements)
          Sets a option list.
 
Methods inherited from class com.cc.framework.ui.control.SelectControl
getBody, getDataModel, getDesignModel, getOptionElements, getOptions, getSize, getStateModel, getValues, isMultiple, reset, setBody, setDesignModel, setValue, setValues
 
Methods inherited from class com.cc.framework.ui.control.Control
addButton, allowAjaxRendering, execute, execute, execute, execute, execute, execute, execute, getAction, getAjaxId, getButtons, getControlName, getDesignRules, getFrameworkString, getHandler, getHandlers, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getPrincipal, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getUniqueStyleId, getWidth, isAjaxEnabled, isDisabled, isFormElement, markDirty, onHelp, setAjaxAttribute, setHandler, setPrincipal, show, showButton, synchronizeState, synchronizeState
 
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.StateModel
reset, synchronizeState
 
Methods inherited from interface com.cc.framework.ui.model.SelectDataModel
getValues, setValues
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values
Constructor Detail

MultiLevelSelectControl

public MultiLevelSelectControl()
Constructor


MultiLevelSelectControl

public MultiLevelSelectControl(MultiLevelSelectDesignModel designModel)
Constructor

Parameters:
designModel - SelectDesignModel
Method Detail

setDesignModel

public void setDesignModel(MultiLevelSelectDesignModel designModel)
Sets the DesignModel

Parameters:
designModel - SwapSelectDesignModel

getLevels

public int getLevels()
Returns the number of visible select levels

Returns:
returns the number of levels

getSelectableProperty

public 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. Each node of the data model has to implement this property. The property must return a boolean value.

Returns:
property name or null

setOptions

public void setOptions(OptionListDesignModel options,
                       java.lang.Object elements)
Sets a option list. This has to be a Object of type TreeNodeDataModel

Overrides:
setOptions in class SelectControl
Parameters:
options - The options to set
elements - The Option elements (TreeNodeDataModel)


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