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

java.lang.Object
  extended bycom.cc.framework.ui.model.imp.ClientHandlerImp
      extended bycom.cc.framework.ui.model.imp.ColumnDesignModelImp
          extended bycom.cc.framework.ui.model.imp.ColumnGroupDesignModelImp
All Implemented Interfaces:
AccessControlled, ActionBehavior, AjaxSupport, ClientHandler, ColumnContainer, ColumnDesignModel, ColumnGroupDesignModel, DesignModel, java.io.Serializable

public class ColumnGroupDesignModelImp
extends ColumnDesignModelImp
implements ColumnGroupDesignModel

Implementation of the Column group

Version:
$Revision: 1.9 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  ColumnContainer columns
          The buffer with the columns of the list control
private static long serialVersionUID
          Serial Version UID
 
Fields inherited from class com.cc.framework.ui.model.imp.ColumnDesignModelImp
 
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
 
Constructor Summary
ColumnGroupDesignModelImp()
          Constructor
 
Method Summary
 void addColumn(ColumnDesignModel column)
          Adds a new column definition to the ListControl
 ColumnDesignModel getColumn(int index)
          Returns the column with the given index
 ColumnDesignModel[] getColumns()
          Returns an array with all column definitions
 void removeColumn(ColumnDesignModel column)
          Removes a column
 boolean show(Principal principal)
          A collumn group is visible when the user has the permission to see the group and and at least one child column is visible
 int size()
          Returns the number of columns
 
Methods inherited from class com.cc.framework.ui.model.imp.ColumnDesignModelImp
addDesignRule, allowAjaxRendering, enableAjax, filter, getAlignment, getAnchor, getAnchorProperty, getConverter, getDesignRules, getDisableProperty, getEditableProperty, getEnableProperty, getEnvironment, getHandler, getHeader, getImageMap, getImageProperty, getJoinMode, getLinkName, getLinkNameProperty, getMaxLength, getPermission, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getTarget, getTargetProperty, getTitle, getTooltip, getTooltipProperty, getTransaction, getType, getWidth, isAjaxEnabled, isDisabled, isEditable, isSortable, setAlignment, setAlignment, setAnchor, setAnchorProperty, setConverter, setDisabled, setDisabled, setDisableProperty, setEditable, setEditable, setEditableProperty, setEnableProperty, setEnvironment, setFilter, setFilter, setHeader, setImageMap, setImageProperty, setJoinMode, setJoinMode, setLinkName, setLinkNameProperty, setMaxLength, setMaxLength, setPermission, setPermission, setProperty, setRunAt, setSortable, setStyle, setStyleClass, setStyleId, setTarget, setTargetProperty, setTitle, setTooltip, setTooltipProperty, setTransaction, setType, setWidth, setWidth
 
Methods inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
evaluate, 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.ColumnDesignModel
addDesignRule, allowAjaxRendering, filter, getAlignment, getAnchor, getAnchorProperty, getConverter, getDesignRules, getDisableProperty, getEditableProperty, getEnableProperty, getEnvironment, getHeader, getImageMap, getImageProperty, getJoinMode, getLinkName, getLinkNameProperty, getMaxLength, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getTarget, getTargetProperty, getTitle, getTooltip, getTooltipProperty, getTransaction, getType, getWidth, isDisabled, isEditable, isSortable, setAlignment, setAlignment, setAnchor, setAnchorProperty, setConverter, setDisabled, setDisabled, setDisableProperty, setEditable, setEditable, setEditableProperty, setEnableProperty, setEnvironment, setFilter, setFilter, setHeader, setImageMap, setImageProperty, setJoinMode, setJoinMode, setLinkName, setLinkNameProperty, setMaxLength, setMaxLength, setPermission, setPermission, setProperty, setRunAt, setSortable, setStyle, setStyleClass, setStyleId, setTarget, setTargetProperty, setTitle, setTooltip, setTooltipProperty, setTransaction, setType, setWidth, 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
 
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

columns

private ColumnContainer columns
The buffer with the columns of the list control

Constructor Detail

ColumnGroupDesignModelImp

public ColumnGroupDesignModelImp()
Constructor

Method Detail

addColumn

public void addColumn(ColumnDesignModel column)
Description copied from interface: ColumnContainer
Adds a new column definition to the ListControl

Specified by:
addColumn in interface ColumnContainer
Parameters:
column - The column definition to add
See Also:
ColumnContainer.addColumn(com.cc.framework.ui.model.ColumnDesignModel)

getColumns

public ColumnDesignModel[] getColumns()
Description copied from interface: ColumnContainer
Returns an array with all column definitions

Specified by:
getColumns in interface ColumnContainer
Returns:
array of ColumnDesignModels
See Also:
ColumnContainer.getColumns()

getColumn

public ColumnDesignModel getColumn(int index)
Description copied from interface: ColumnContainer
Returns the column with the given index

Specified by:
getColumn in interface ColumnContainer
Parameters:
index - column index
Returns:
ColumnDesignModel
See Also:
ColumnContainer.getColumn(int)

removeColumn

public void removeColumn(ColumnDesignModel column)
Description copied from interface: ColumnContainer
Removes a column

Specified by:
removeColumn in interface ColumnContainer
Parameters:
column - The column to remove
See Also:
ColumnContainer.removeColumn(com.cc.framework.ui.model.ColumnDesignModel)

size

public int size()
Description copied from interface: ColumnContainer
Returns the number of columns

Specified by:
size in interface ColumnContainer
Returns:
int The number of columns
See Also:
ColumnContainer.size()

show

public boolean show(Principal principal)
A collumn group is visible when the user has the permission to see the group and and at least one child column is visible

Specified by:
show in interface AccessControlled
Overrides:
show in class ColumnDesignModelImp
See Also:
AccessControlled.show(Principal)


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