com.cc.framework.ui.model
Interface TabDesignModel

All Superinterfaces:
AccessControlled, ClientHandler, DesignModel
All Known Implementing Classes:
TabDesignModelImp

public interface TabDesignModel
extends DesignModel, ClientHandler, AccessControlled

Designmodel for a tab

Since:
1.0
Version:
$Revision: 1.12 $
Author:
Harald Schulz

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
 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 action)
          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 ref)
          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
 
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
 

Method Detail

getTabId

public java.lang.String getTabId()
Returns the unique key for the TabPage

Returns:
The id of the tabpage

setTabId

public void setTabId(java.lang.String tabid)
Sets the Id for the TabPage

Parameters:
tabid - Unique Id

getAction

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

Returns:
String

setAction

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

Parameters:
action - Action

getTitle

public java.lang.String getTitle()
Returns the Title

Returns:
The Title

setTitle

public void setTitle(java.lang.String title)
Sets the Title

Parameters:
title - The Title

setTooltip

public void setTooltip(java.lang.String tooltip)
Sets the tooltip text

Parameters:
tooltip - The Tooltip

getTooltip

public java.lang.String getTooltip()
Returns the tooltip

Returns:
The tooltip

isEnabled

public boolean isEnabled()
Returns if the tab can be selected

Returns:
boolean true if the TabPage can be selected; false otherwise

setEnable

public void setEnable(boolean enable)
Sets the enable Flag

Parameters:
enable - false if the TabPage can not be selected

setContent

public void setContent(java.lang.String content)
Sets the Content (Name of the JSP) of the TagPage

Parameters:
content - Name of the JSP Page

getContent

public java.lang.String getContent()
Returns the Content of the TabPage

Returns:
String

setBody

public void setBody(java.lang.String body)
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.

Parameters:
body - HTML-Code

getBody

public java.lang.String getBody()
Returns the HTML-String which should be displayed as Content of the TabPage

Returns:
String

setBgColor

public void setBgColor(Color bgcolor)
sets the Background Color

Parameters:
bgcolor - Color

getBgColor

public Color getBgColor()
Returns the Background Color

Returns:
Color

setImageRef

public void setImageRef(java.lang.String ref)
Assigns the TapPage an Image from an ImageMap

Parameters:
ref - Rule of the ImageMap to match

getImageRef

public java.lang.String getImageRef()
Returns the assignment Rule

Returns:
String

setPermission

public void setPermission(Permission permission)
Sets a list with permission for the object. Permissions are separated by ';'

Parameters:
permission - Permission

setTarget

public void setTarget(java.lang.String target)
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.

Parameters:
target - The target where the document referenced will appear

getTarget

public java.lang.String getTarget()
Returns where the document referenced will appear.

Returns:
String


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