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

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.ListDesignModelImp
              extended bycom.cc.framework.ui.model.imp.TreelistDesignModelImp
All Implemented Interfaces:
AccessControlled, ActionBehavior, AjaxSupport, ButtonContainer, ClientHandler, ColumnContainer, ControlDesignModel, DesignModel, FrameContainer, ListDesignModel, ScrollSupport, java.io.Serializable, TreelistDesignModel, TreeStyle

public class TreelistDesignModelImp
extends ListDesignModelImp
implements TreelistDesignModel

Designmodel for the TreeListControl

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

Field Summary
private  java.lang.String enableProperty
          Field enableProperty
private  ExpansionMode expansion
          Field expansion
private  boolean groupSelect
          Field groupSelect
private  boolean labelWrap
          Controls how labels are wrapped when displayed
private static long serialVersionUID
          Serial Version UID
private  boolean showButtons
          Tells the control to show or hide the buttons for expanding and collapsing the tree nodes
private  boolean showCheckBoxes
          Field showCheckBoxes
private  boolean showLines
          Field showLines
private  boolean showLinesAtRoot
          Field showLinesAtRoot
private  boolean showRoot
          Field showRoot
 
Fields inherited from class com.cc.framework.ui.model.imp.ListDesignModelImp
 
Fields inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp
 
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
 
Constructor Summary
TreelistDesignModelImp()
          Constructor for TreelistDesignModelImp
 
Method Summary
 java.lang.String getEnableProperty()
          Liefert den Namen der Eigenschaft, welche die Spaltendaten ermittelt, zurück
 ExpansionMode getExpansionMode()
          Returns the expansion state.
 boolean getGroupSelect()
          Returns if the group nodes are selectabel.
 java.lang.String getTarget()
          Returns the target attribute.
 java.lang.String getTargetProperty()
          Returns the name of the property.
 java.lang.String getTooltipProperty()
          Returns the name of the property.
private  ColumnTreeDesignModel getTreeColumn()
          Returns the ColumnTreeDesignModel
 void setEnableProperty(java.lang.String property)
          Setzt den Namen der Eigenschaft mit deren Hilfe der Spaltenwert bestimmt werden kann.
 void setExpansionMode(ExpansionMode mode)
          Sets the expansion state
 void setGroupSelect(boolean select)
          Defines if the group nodes should be selectabel.
 void setLabelWrap(boolean wrap)
          Sets the label wrapping behavior
 void setTarget(java.lang.String target)
          Defines a target attribute which should be inserted in all generated hyperlinks of the columns.
 void setTargetProperty(java.lang.String targetProperty)
          Specifies the name of a property with the help of which the relevant line can generate an HTML-target attribute.
 void setTooltipProperty(java.lang.String tooltipProperty)
          Specifies the name of a property with the help of which the relevant line can generate an HTML-text attribute.
 boolean showButtons()
          Returns if the icons for expanding a node are displayed.
 void showButtons(boolean show)
          Defines if the icons for expanding a node should be displayed.
 boolean showCheckBoxes()
          Returns if a checkbox is displayed before the tree entries.
 void showCheckBoxes(boolean show)
          Indicates whether a checkbox should be displayed before the tree entries
The tree entries must implement the Checkable Interface, so that the control element can draw the checkboxes.
 boolean showLines()
          Returns if a line between the nodes is displayed.
 void showLines(boolean show)
          Defines if a line between the nodes should be displayed.
 boolean showLinesAtRoot()
          Returns whether lines should be drawn to the construction elements of the uppermost (displayed) level.
 void showLinesAtRoot(boolean show)
          Specifies whether lines should be drawn to the construction elements of the uppermost (displayed) level.
 boolean showRoot()
          Returns if the root element should be displayed
 void showRoot(boolean show)
          Specifies whether the root of the tree element should be displayed.
 boolean wrapLabels()
           
 
Methods inherited from class com.cc.framework.ui.model.imp.ListDesignModelImp
addColumn, addInnerFrame, getButtonPermission, getCellPadding, getCellSpacing, getColumn, getColumns, getEmptyText, getHeaderHeight, getImage, getInnerFrames, getMinRowCount, getPageButtons, getRowCount, getRowHeight, getScrollHeight, getSelectMode, getTabOrientation, getTitle, removeColumn, setButtonPermission, setCellPadding, setCellSpacing, setCreateButtonPermission, setEmptyText, setImage, setMinRowCount, setPageButtons, setRefreshButtonPermission, setRowCount, setScrollHeight, setSelectMode, setShowFrame, setShowHeader, setTabOrientation, setTitle, showButton, showCreateButton, showFrame, showHeader, showRefreshButton, size
 
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.ListDesignModel
getCellPadding, getCellSpacing, getEmptyText, getHeaderHeight, getMinRowCount, getPageButtons, getRowCount, getRowHeight, getSelectMode, getTabOrientation, getTitle, setCellPadding, setCellSpacing, setEmptyText, setMinRowCount, setPageButtons, setRowCount, setSelectMode, setShowFrame, setShowHeader, setTabOrientation, setTitle, showFrame, showHeader
 
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
 
Methods inherited from interface com.cc.framework.ui.model.ScrollSupport
getScrollHeight, setScrollHeight
 
Methods inherited from interface com.cc.framework.ui.model.ColumnContainer
addColumn, getColumn, getColumns, removeColumn, size
 
Methods inherited from interface com.cc.framework.ui.model.FrameContainer
addInnerFrame, getImage, getInnerFrames, setImage
 
Methods inherited from interface com.cc.framework.ui.model.ButtonContainer
getButtonPermission, setButtonPermission, showButton
 
Methods inherited from interface com.cc.framework.ui.model.TreeStyle
getSelectMode, getStyle, getStyleClass, getStyleId, isDisabled, setDisabled, setSelectMode, setStyle, setStyleClass, setStyleId
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

expansion

private ExpansionMode expansion
Field expansion


showButtons

private boolean showButtons
Tells the control to show or hide the buttons for expanding and collapsing the tree nodes


labelWrap

private boolean labelWrap
Controls how labels are wrapped when displayed


showLines

private boolean showLines
Field showLines


showLinesAtRoot

private boolean showLinesAtRoot
Field showLinesAtRoot


showCheckBoxes

private boolean showCheckBoxes
Field showCheckBoxes


showRoot

private boolean showRoot
Field showRoot


groupSelect

private boolean groupSelect
Field groupSelect


enableProperty

private java.lang.String enableProperty
Field enableProperty

Constructor Detail

TreelistDesignModelImp

public TreelistDesignModelImp()
Constructor for TreelistDesignModelImp

Method Detail

getTreeColumn

private ColumnTreeDesignModel getTreeColumn()
Returns the ColumnTreeDesignModel

Returns:
ColumnTreeDesignModel

getExpansionMode

public ExpansionMode getExpansionMode()
Description copied from interface: TreeStyle
Returns the expansion state.

Specified by:
getExpansionMode in interface TreeStyle
Returns:
The expansion mode
See Also:
TreeStyle.getExpansionMode()

setExpansionMode

public void setExpansionMode(ExpansionMode mode)
Description copied from interface: TreeStyle
Sets the expansion state

Specified by:
setExpansionMode in interface TreeStyle
Parameters:
mode - The expansion mode
See Also:
TreeStyle.setExpansionMode(ExpansionMode)

showButtons

public boolean showButtons()
Description copied from interface: TreeStyle
Returns if the icons for expanding a node are displayed. Note: The class which implements this interface must be aware of the settings of the expansion mode. If the nodes are always expanded this method should return false.

Specified by:
showButtons in interface TreeStyle
Returns:
boolean
See Also:
TreeStyle.showButtons()

showButtons

public void showButtons(boolean show)
Description copied from interface: TreeStyle
Defines if the icons for expanding a node should be displayed.

Specified by:
showButtons in interface TreeStyle
Parameters:
show - true if the icons should be displayed;
false otherwise.
See Also:
TreeStyle.showButtons(boolean)

showLines

public boolean showLines()
Description copied from interface: TreeStyle
Returns if a line between the nodes is displayed.

Specified by:
showLines in interface TreeStyle
Returns:
true if a line between the nodes is displayed;
false otherwise.
See Also:
TreeStyle.showLines()

showLines

public void showLines(boolean show)
Description copied from interface: TreeStyle
Defines if a line between the nodes should be displayed.

Specified by:
showLines in interface TreeStyle
Parameters:
show - true if a line between the nodes should be displayed;
false otherwise.
See Also:
TreeStyle.showLines(boolean)

showLinesAtRoot

public boolean showLinesAtRoot()
Description copied from interface: TreeStyle
Returns whether lines should be drawn to the construction elements of the uppermost (displayed) level.

Specified by:
showLinesAtRoot in interface TreeStyle
Returns:
boolean
See Also:
TreeStyle.showLinesAtRoot()

showLinesAtRoot

public void showLinesAtRoot(boolean show)
Description copied from interface: TreeStyle
Specifies whether lines should be drawn to the construction elements of the uppermost (displayed) level.

Specified by:
showLinesAtRoot in interface TreeStyle
Parameters:
show - true if the line should be visible on the uppermost level; false otherwise
See Also:
TreeStyle.showLinesAtRoot(boolean)

showRoot

public boolean showRoot()
Description copied from interface: TreeStyle
Returns if the root element should be displayed

Specified by:
showRoot in interface TreeStyle
Returns:
boolean true if the root element should be displayed; false otherwise
See Also:
TreeStyle.showRoot()

showRoot

public void showRoot(boolean show)
Description copied from interface: TreeStyle
Specifies whether the root of the tree element should be displayed.

Specified by:
showRoot in interface TreeStyle
Parameters:
show - true if the root element should be displayed
See Also:
TreeStyle.showRoot(boolean)

showCheckBoxes

public boolean showCheckBoxes()
Description copied from interface: TreeStyle
Returns if a checkbox is displayed before the tree entries.

Specified by:
showCheckBoxes in interface TreeStyle
Returns:
boolean true if a checkbox is displayed;
false otherwise
See Also:
TreeStyle.showCheckBoxes()

showCheckBoxes

public void showCheckBoxes(boolean show)
Description copied from interface: TreeStyle
Indicates whether a checkbox should be displayed before the tree entries
The tree entries must implement the Checkable Interface, so that the control element can draw the checkboxes. Group nodes must not implement this interface, since the Check-State of groups can be automatically calculated with the help of the state of the pages.

Specified by:
showCheckBoxes in interface TreeStyle
Parameters:
show - true if checkbox should be displayed;
false otherwise
See Also:
TreeStyle.showCheckBoxes(boolean show)

setGroupSelect

public void setGroupSelect(boolean select)
Description copied from interface: TreeStyle
Defines if the group nodes should be selectabel.

Specified by:
setGroupSelect in interface TreeStyle
Parameters:
select - true if the group nodes should be selectabel;
false otherwise
See Also:
TreeStyle.setGroupSelect(boolean)

getGroupSelect

public boolean getGroupSelect()
Description copied from interface: TreeStyle
Returns if the group nodes are selectabel.

Specified by:
getGroupSelect in interface TreeStyle
Returns:
boolean true if the group nodes are selectabel;
false otherwise
See Also:
TreeStyle.getGroupSelect()

setTarget

public void setTarget(java.lang.String target)
Description copied from interface: TreeStyle
Defines a target attribute which should be inserted in all generated hyperlinks of the columns.
Note: The same attribute will be used in all rows!

Specified by:
setTarget in interface TreeStyle
Parameters:
target - The target attribute
See Also:
TreeStyle.setTarget(java.lang.String)

getTarget

public java.lang.String getTarget()
Description copied from interface: TreeStyle
Returns the target attribute.

Specified by:
getTarget in interface TreeStyle
Returns:
The target attribute.
See Also:
TreeStyle.getTarget()

setTargetProperty

public void setTargetProperty(java.lang.String targetProperty)
Description copied from interface: TreeStyle
Specifies the name of a property with the help of which the relevant line can generate an HTML-target attribute.
Note: Valid Java designator/label. The Row-Bean must implement a suitable property-getter method. The attribute can be defined individual within each row (In difference to the method setTarget)

Specified by:
setTargetProperty in interface TreeStyle
Parameters:
targetProperty - The name of the property to use
See Also:
TreeStyle.setTargetProperty(java.lang.String)

getTargetProperty

public java.lang.String getTargetProperty()
Description copied from interface: TreeStyle
Returns the name of the property.

Specified by:
getTargetProperty in interface TreeStyle
Returns:
The name of the property.
See Also:
TreeStyle.getTargetProperty()

getTooltipProperty

public java.lang.String getTooltipProperty()
Description copied from interface: TreeStyle
Returns the name of the property.

Specified by:
getTooltipProperty in interface TreeStyle
Returns:
The name of the property.
See Also:
TreeStyle.getTooltipProperty()

setTooltipProperty

public void setTooltipProperty(java.lang.String tooltipProperty)
Description copied from interface: TreeStyle
Specifies the name of a property with the help of which the relevant line can generate an HTML-text attribute. Note: Valid Java designator/label. The Row-Bean must implement a suitable property-getter method. The attribute can be defined individual within each row

Specified by:
setTooltipProperty in interface TreeStyle
Parameters:
tooltipProperty - The target attribute
See Also:
TreeStyle.setTooltipProperty(java.lang.String)

getEnableProperty

public java.lang.String getEnableProperty()
Description copied from interface: TreeStyle
Liefert den Namen der Eigenschaft, welche die Spaltendaten ermittelt, zurück

Specified by:
getEnableProperty in interface TreeStyle
Returns:
Property
See Also:
TreeStyle.getEnableProperty()

setEnableProperty

public void setEnableProperty(java.lang.String property)
Description copied from interface: TreeStyle
Setzt den Namen der Eigenschaft mit deren Hilfe der Spaltenwert bestimmt werden kann.

Specified by:
setEnableProperty in interface TreeStyle
Parameters:
property - Der Name der Eigenschaft
See Also:
TreeStyle.setEnableProperty(java.lang.String)

setLabelWrap

public void setLabelWrap(boolean wrap)
Description copied from interface: TreeStyle
Sets the label wrapping behavior

Specified by:
setLabelWrap in interface TreeStyle
Parameters:
wrap - true to wrap labels
See Also:
TreeStyle.setLabelWrap(boolean)

wrapLabels

public boolean wrapLabels()
Specified by:
wrapLabels in interface TreeStyle
Returns:
returns true when the tree should wrap labels
See Also:
TreeStyle.wrapLabels()


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