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

java.lang.Object
  extended bycom.cc.framework.ui.model.imp.ClientHandlerImp
      extended bycom.cc.framework.ui.model.imp.PanelItemDesignModelImp
All Implemented Interfaces:
AccessControlled, ClientHandler, DesignModel, PanelItemDesignModel, java.io.Serializable

public class PanelItemDesignModelImp
extends ClientHandlerImp
implements PanelItemDesignModel

Designmodel for a PanelItem

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

Field Summary
private  java.lang.String action
          The action
private  java.lang.String detail
          The detail
private  java.lang.Boolean filter
          Specifies if all String should be converted into there HTML representation
private  java.lang.String localeName
          Locale Setting
private  Permission permission
          The permission for the PanelItem
private static long serialVersionUID
          Serial Version UID
private  java.lang.String target
          The target
private  java.lang.String title
          The title of the PanelItem
private  java.lang.String tooltip
          The tooltip
 
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
 
Constructor Summary
PanelItemDesignModelImp()
          Constructor
 
Method Summary
 java.lang.Boolean filter()
          Returns if the filter is activated (default=true).
 java.lang.String getAction()
          Returns the Action which should be processed by the Item
 java.lang.String getDetail()
          Returns the detail Text
 java.lang.String getLocaleName()
          Gets the Local Setting for this element
 Permission getPermission()
          Returns the authorizations required to access an object If the method returns null no access rights is required.
 java.lang.String getTarget()
          Returns the target
 java.lang.String getTitle()
          Returns the title of a panel item
 java.lang.String getTooltip()
          Returns the Tooltip
 void setAction(java.lang.String action)
          Sets the Action
 void setDetail(java.lang.String detail)
          Sets the detail Text
 void setFilter(boolean filter)
          Activates the HTML encoding (filter).
 void setLocaleName(java.lang.String locale)
          Sets the Locale configuration for this element
 void setPermission(Permission permission)
          Sets a list with permissions to access this object.
 void setTarget(java.lang.String target)
          Sets the target where the document referenced will appear (like _blank, _parent, ...).
 void setTitle(java.lang.String title)
          Returns the Title
 void setTooltip(java.lang.String tooltip)
          Sets the Tooltip
 boolean show(Principal principal)
          Checks if the Object has a required permission.
 
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.ClientHandler
getHandler, getHandlers, setHandler
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

title

private java.lang.String title
The title of the PanelItem


detail

private java.lang.String detail
The detail


action

private java.lang.String action
The action


tooltip

private java.lang.String tooltip
The tooltip


target

private java.lang.String target
The target


filter

private java.lang.Boolean filter
Specifies if all String should be converted into there HTML representation


localeName

private java.lang.String localeName
Locale Setting


permission

private Permission permission
The permission for the PanelItem

Constructor Detail

PanelItemDesignModelImp

public PanelItemDesignModelImp()
Constructor

Method Detail

getDetail

public java.lang.String getDetail()
Description copied from interface: PanelItemDesignModel
Returns the detail Text

Specified by:
getDetail in interface PanelItemDesignModel
Returns:
String
See Also:
PanelItemDesignModel.getDetail()

getTitle

public java.lang.String getTitle()
Description copied from interface: PanelItemDesignModel
Returns the title of a panel item

Specified by:
getTitle in interface PanelItemDesignModel
Returns:
String
See Also:
PanelItemDesignModel.getTitle()

setDetail

public void setDetail(java.lang.String detail)
Description copied from interface: PanelItemDesignModel
Sets the detail Text

Specified by:
setDetail in interface PanelItemDesignModel
Parameters:
detail - Detail
See Also:
PanelItemDesignModel.setDetail(String detail)

setTitle

public void setTitle(java.lang.String title)
Description copied from interface: PanelItemDesignModel
Returns the Title

Specified by:
setTitle in interface PanelItemDesignModel
Parameters:
title - Title
See Also:
PanelItemDesignModel.setTitle(String title)

getAction

public java.lang.String getAction()
Description copied from interface: PanelItemDesignModel
Returns the Action which should be processed by the Item

Specified by:
getAction in interface PanelItemDesignModel
Returns:
String
See Also:
PanelItemDesignModel.getAction()

setAction

public void setAction(java.lang.String action)
Description copied from interface: PanelItemDesignModel
Sets the Action

Specified by:
setAction in interface PanelItemDesignModel
Parameters:
action - Action
See Also:
PanelItemDesignModel.setAction(String)

setTooltip

public void setTooltip(java.lang.String tooltip)
Description copied from interface: PanelItemDesignModel
Sets the Tooltip

Specified by:
setTooltip in interface PanelItemDesignModel
Parameters:
tooltip - Tooltip
See Also:
PanelItemDesignModel.setTooltip(String)

getTooltip

public java.lang.String getTooltip()
Description copied from interface: PanelItemDesignModel
Returns the Tooltip

Specified by:
getTooltip in interface PanelItemDesignModel
Returns:
String
See Also:
PanelItemDesignModel.getTooltip()

getPermission

public Permission getPermission()
Description copied from interface: AccessControlled
Returns the authorizations required to access an object If the method returns null no access rights is required.

Specified by:
getPermission in interface AccessControlled
Returns:
Permission A list with required permissions separated by ";"
See Also:
AccessControlled.getPermission()

setPermission

public void setPermission(Permission permission)
Description copied from interface: PanelItemDesignModel
Sets a list with permissions to access this object. The permission are separated by ';'.

Specified by:
setPermission in interface PanelItemDesignModel
Parameters:
permission - Permission
See Also:
PanelItemDesignModel.setPermission(com.cc.framework.security.Permission)

show

public boolean show(Principal principal)
Description copied from interface: AccessControlled
Checks if the Object has a required permission.

Specified by:
show in interface AccessControlled
Parameters:
principal - the users principal object
Returns:
true if the permission exists
See Also:
AccessControlled.show(Principal)

getTarget

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

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

setTarget

public void setTarget(java.lang.String target)
Description copied from interface: PanelItemDesignModel
Sets the target where the document referenced will appear (like _blank, _parent, ...).

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

filter

public java.lang.Boolean filter()
Description copied from interface: PanelItemDesignModel
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 PanelItemDesignModel
Returns:
true if string will be HTML encoded; false otherwise. If a null is returned than the filter of the enclosing CrumbControl should be used
See Also:
PanelItemDesignModel.filter()

setFilter

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

getLocaleName

public java.lang.String getLocaleName()
Description copied from interface: PanelItemDesignModel
Gets the Local Setting for this element

Specified by:
getLocaleName in interface PanelItemDesignModel
Returns:
Locale Setting
See Also:
PanelItemDesignModel.getLocaleName()

setLocaleName

public void setLocaleName(java.lang.String locale)
Description copied from interface: PanelItemDesignModel
Sets the Locale configuration for this element

Specified by:
setLocaleName in interface PanelItemDesignModel
Parameters:
locale - Locale Identifier or true|false
See Also:
PanelItemDesignModel.setLocaleName(java.lang.String)


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