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

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.CrumbsDesignModelImp
All Implemented Interfaces:
AccessControlled, ActionBehavior, AjaxSupport, ClientHandler, ControlDesignModel, CrumbsDesignModel, DesignModel, java.io.Serializable

public class CrumbsDesignModelImp
extends ControlDesignModelImp
implements CrumbsDesignModel

Designmodel for the CrumbsControl

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

Field Summary
private  java.util.ArrayList crumbs
          Buffer for the crumbs of the CrumbControl
private  boolean filter
          Specifies if all String should be converted into there HTML representation
private  ImageMap imagemap
          The ImageMap which can be used to paint icons in front of the labels.
private  int labelLength
          The length of the labels.
private static long serialVersionUID
          Serial Version UID
 
Fields inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp
 
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
 
Constructor Summary
CrumbsDesignModelImp()
          Constructor for CrumbsDesignModelImp
 
Method Summary
 CrumbsDesignModel addCrumb(CrumbModel newCrumb)
          Adds a single Crumb
 boolean filter()
          Returns if the filter is activated (default=true).
 CrumbModel[] getCrumbs()
          Returns an Array with all Crumbs
 ImageMap getImageMap()
          Returns the ImageMap
 int getLabelLength()
          Returns the maximal length for labels
 void removeCrumb(CrumbModel crumb)
          Removes a Crumb from the CrumbControl
 void setFilter(boolean filter)
          Activates the HTML encoding (filter).
 void setImageMap(ImageMap imagemap)
          Sets the ImageMap
 void setLabelLength(int length)
          Sets the maximal length for labels shown on a Crumb If a label is longer as the size defined here, it will be cut.
 int size()
          Returns the total Number of Crumbs
 
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

crumbs

private java.util.ArrayList crumbs
Buffer for the crumbs of the CrumbControl


labelLength

private int labelLength
The length of the labels. If a label exceed this length it will be cut.


imagemap

private ImageMap imagemap
The ImageMap which can be used to paint icons in front of the labels.


filter

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

Constructor Detail

CrumbsDesignModelImp

public CrumbsDesignModelImp()
Constructor for CrumbsDesignModelImp

Method Detail

addCrumb

public CrumbsDesignModel addCrumb(CrumbModel newCrumb)
Description copied from interface: CrumbsDesignModel
Adds a single Crumb

Specified by:
addCrumb in interface CrumbsDesignModel
Parameters:
newCrumb - CrumbDesignModel
Returns:
TabsetDesignModel
See Also:
CrumbsDesignModel.addCrumb(com.cc.framework.ui.model.CrumbModel)

removeCrumb

public void removeCrumb(CrumbModel crumb)
Description copied from interface: CrumbsDesignModel
Removes a Crumb from the CrumbControl

Specified by:
removeCrumb in interface CrumbsDesignModel
Parameters:
crumb - Crumb to be removed
See Also:
CrumbsDesignModel.removeCrumb(com.cc.framework.ui.model.CrumbModel)

getCrumbs

public CrumbModel[] getCrumbs()
Description copied from interface: CrumbsDesignModel
Returns an Array with all Crumbs

Specified by:
getCrumbs in interface CrumbsDesignModel
Returns:
CrumbDesignModel
See Also:
CrumbsDesignModel.getCrumbs()

size

public int size()
Description copied from interface: CrumbsDesignModel
Returns the total Number of Crumbs

Specified by:
size in interface CrumbsDesignModel
Returns:
integer
See Also:
CrumbsDesignModel.size()

getImageMap

public ImageMap getImageMap()
Description copied from interface: CrumbsDesignModel
Returns the ImageMap

Specified by:
getImageMap in interface CrumbsDesignModel
Returns:
ImageMap
See Also:
CrumbsDesignModel.getImageMap()

setImageMap

public void setImageMap(ImageMap imagemap)
Description copied from interface: CrumbsDesignModel
Sets the ImageMap

Specified by:
setImageMap in interface CrumbsDesignModel
Parameters:
imagemap - ImageMap
See Also:
CrumbsDesignModel.setImageMap(com.cc.framework.ui.ImageMap)

getLabelLength

public int getLabelLength()
Description copied from interface: CrumbsDesignModel
Returns the maximal length for labels

Specified by:
getLabelLength in interface CrumbsDesignModel
Returns:
integer
See Also:
CrumbsDesignModel.getLabelLength()

setLabelLength

public void setLabelLength(int length)
Description copied from interface: CrumbsDesignModel
Sets the maximal length for labels shown on a Crumb If a label is longer as the size defined here, it will be cut.

Specified by:
setLabelLength in interface CrumbsDesignModel
Parameters:
length - LabelLength
See Also:
CrumbsDesignModel.setLabelLength(int)

filter

public boolean filter()
Description copied from interface: CrumbsDesignModel
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 CrumbsDesignModel
Returns:
true if string will be HTML encoded; false otherwise
See Also:
CrumbsDesignModel.filter()

setFilter

public void setFilter(boolean filter)
Description copied from interface: CrumbsDesignModel
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 CrumbsDesignModel
Parameters:
filter - true if strings should be HTML encoded; false otherwise
See Also:
CrumbsDesignModel.setFilter(boolean)


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