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

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

public class TabDesignModelImp
extends ClientHandlerImp
implements TabDesignModel, java.io.Serializable

Designmodel for the Tabs of a TabControl

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

Field Summary
private  java.lang.String action
          The action which should be processed if the Tab is activated.
private  Color bgcolor
          The background color of the Tab
private  java.lang.String body
          The HTML body which should be displayed on this Tab page.
private  java.lang.String content
          Name of a JSP page with the content of the Tab page to display.
private  boolean enable
          True if the Tab can be selected; false otherwise
private  java.lang.String imageRef
          Reference to an image in the ImageMap of the TabSet Control which should be displayed on the Tab in front of the label.
private  Permission permission
          The Permission for the Control
private static long serialVersionUID
          Serial Version UID
private  java.lang.String tabid
          The unique id of the Tab page
private  java.lang.String target
          Target Attribut
private  java.lang.String title
          The title of the Tab page
private  java.lang.String tooltip
          A tooltip which is displayed if the user moves the mouse over the label/title.
 
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
 
Constructor Summary
TabDesignModelImp()
          Constructor for TabDesignModelImp
 
Method Summary
 java.lang.String getAction()
          Returns the action, which should be processed if the TabPage is selected.
 Color getBgColor()
          Returns the Background Color
 java.lang.String getBody()
          Returns the HTML-String which should be displayed as Content of the TabPage
 java.lang.String getContent()
          Returns the Content of the TabPage
 java.lang.String getImageRef()
          Returns the assignment Rule
 Permission getPermission()
          Returns the authorizations required to access an object If the method returns null no access rights is required.
 java.lang.String getTabId()
          Returns the unique key for the TabPage
 java.lang.String getTarget()
          Returns where the document referenced will appear.
 java.lang.String getTitle()
          Returns the Title
 java.lang.String getTooltip()
          Returns the tooltip
 boolean isEnabled()
          Returns if the tab can be selected
 void setAction(java.lang.String string)
          Sets the Action, which should be processed if a TabPage is selected.
 void setBgColor(Color bgcolor)
          sets the Background Color
 void setBody(java.lang.String body)
          Sets the HTML-String which should be displayed as Content of the TabPage.
 void setContent(java.lang.String content)
          Sets the Content (Name of the JSP) of the TagPage
 void setEnable(boolean enable)
          Sets the enable Flag
 void setImageRef(java.lang.String imageRef)
          Assigns the TapPage an Image from an ImageMap
 void setPermission(Permission permission)
          Sets a list with permission for the object.
 void setTabId(java.lang.String tabid)
          Sets the Id for the TabPage
 void setTarget(java.lang.String target)
          Sets the target where the document referenced will appear.
 void setTitle(java.lang.String title)
          Sets the Title
 void setTooltip(java.lang.String tooltip)
          Sets the tooltip text
 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

tabid

private java.lang.String tabid
The unique id of the Tab page


action

private java.lang.String action
The action which should be processed if the Tab is activated.


title

private java.lang.String title
The title of the Tab page


tooltip

private java.lang.String tooltip
A tooltip which is displayed if the user moves the mouse over the label/title.


enable

private boolean enable
True if the Tab can be selected; false otherwise


content

private java.lang.String content
Name of a JSP page with the content of the Tab page to display.


body

private java.lang.String body
The HTML body which should be displayed on this Tab page. If you do not want to include HTML directly you can specify the name of a JSP page. In this case you do no set the body but the content.


bgcolor

private Color bgcolor
The background color of the Tab


imageRef

private java.lang.String imageRef
Reference to an image in the ImageMap of the TabSet Control which should be displayed on the Tab in front of the label.


permission

private Permission permission
The Permission for the Control


target

private java.lang.String target
Target Attribut

Constructor Detail

TabDesignModelImp

public TabDesignModelImp()
Constructor for TabDesignModelImp

Method Detail

getTitle

public java.lang.String getTitle()
Description copied from interface: TabDesignModel
Returns the Title

Specified by:
getTitle in interface TabDesignModel
Returns:
The Title
See Also:
TabDesignModel.getTitle()

setTitle

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

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

setTooltip

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

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

getTooltip

public java.lang.String getTooltip()
Description copied from interface: TabDesignModel
Returns the tooltip

Specified by:
getTooltip in interface TabDesignModel
Returns:
The tooltip
See Also:
TabDesignModel.getTooltip()

getTabId

public java.lang.String getTabId()
Description copied from interface: TabDesignModel
Returns the unique key for the TabPage

Specified by:
getTabId in interface TabDesignModel
Returns:
The id of the tabpage
See Also:
TabDesignModel.getTabId()

setTabId

public void setTabId(java.lang.String tabid)
Description copied from interface: TabDesignModel
Sets the Id for the TabPage

Specified by:
setTabId in interface TabDesignModel
Parameters:
tabid - Unique Id
See Also:
TabDesignModel.setTabId(String)

isEnabled

public boolean isEnabled()
Description copied from interface: TabDesignModel
Returns if the tab can be selected

Specified by:
isEnabled in interface TabDesignModel
Returns:
boolean true if the TabPage can be selected; false otherwise
See Also:
TabDesignModel.isEnabled()

setEnable

public void setEnable(boolean enable)
Description copied from interface: TabDesignModel
Sets the enable Flag

Specified by:
setEnable in interface TabDesignModel
Parameters:
enable - false if the TabPage can not be selected
See Also:
TabDesignModel.setEnable(boolean)

setBody

public void setBody(java.lang.String body)
Description copied from interface: TabDesignModel
Sets the HTML-String which should be displayed as Content of the TabPage. If the Tab-Tag container has a Body you can not assign a JSP-Page.

Specified by:
setBody in interface TabDesignModel
Parameters:
body - HTML-Code
See Also:
TabDesignModel.setBody(String)

getBody

public java.lang.String getBody()
Description copied from interface: TabDesignModel
Returns the HTML-String which should be displayed as Content of the TabPage

Specified by:
getBody in interface TabDesignModel
Returns:
String
See Also:
TabDesignModel.getBody()

getContent

public java.lang.String getContent()
Description copied from interface: TabDesignModel
Returns the Content of the TabPage

Specified by:
getContent in interface TabDesignModel
Returns:
String
See Also:
TabDesignModel.getContent()

setContent

public void setContent(java.lang.String content)
Description copied from interface: TabDesignModel
Sets the Content (Name of the JSP) of the TagPage

Specified by:
setContent in interface TabDesignModel
Parameters:
content - Name of the JSP Page
See Also:
TabDesignModel.setContent(java.lang.String)

getBgColor

public Color getBgColor()
Description copied from interface: TabDesignModel
Returns the Background Color

Specified by:
getBgColor in interface TabDesignModel
Returns:
Color
See Also:
TabDesignModel.getBgColor()

setBgColor

public void setBgColor(Color bgcolor)
Description copied from interface: TabDesignModel
sets the Background Color

Specified by:
setBgColor in interface TabDesignModel
Parameters:
bgcolor - Color
See Also:
TabDesignModel.setBgColor(com.cc.framework.ui.Color)

getImageRef

public java.lang.String getImageRef()
Description copied from interface: TabDesignModel
Returns the assignment Rule

Specified by:
getImageRef in interface TabDesignModel
Returns:
String
See Also:
TabDesignModel.getImageRef()

setImageRef

public void setImageRef(java.lang.String imageRef)
Description copied from interface: TabDesignModel
Assigns the TapPage an Image from an ImageMap

Specified by:
setImageRef in interface TabDesignModel
Parameters:
imageRef - Rule of the ImageMap to match
See Also:
TabDesignModel.setImageRef(java.lang.String)

getAction

public java.lang.String getAction()
Description copied from interface: TabDesignModel
Returns the action, which should be processed if the TabPage is selected. This applies only to TabSets which did not act as form elements

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

setAction

public void setAction(java.lang.String string)
Description copied from interface: TabDesignModel
Sets the Action, which should be processed if a TabPage is selected. This applies only to TabSets which did not act as form elements.

Specified by:
setAction in interface TabDesignModel
Parameters:
string - Action
See Also:
TabDesignModel.setAction(java.lang.String)

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: TabDesignModel
Sets a list with permission for the object. Permissions are separated by ';'

Specified by:
setPermission in interface TabDesignModel
Parameters:
permission - Permission
See Also:
TabDesignModel.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: TabDesignModel
Returns where the document referenced will appear.

Specified by:
getTarget in interface TabDesignModel
Returns:
String
See Also:
TabDesignModel.getTarget()

setTarget

public void setTarget(java.lang.String target)
Description copied from interface: TabDesignModel
Sets the target where the document referenced will appear. (like _blank, _parent, ...). If you use this method each hyperlinks in each row will use the same target value. If you want to use different targets you have to use a property which gets the target from your data model. Therefore you can specify the property with the setTargetProperty() method.

Specified by:
setTarget in interface TabDesignModel
Parameters:
target - The target where the document referenced will appear
See Also:
TabDesignModel.setTarget(java.lang.String)


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