com.cc.framework.ui.painter.def
Class DefTabsetPainter

java.lang.Object
  extended bycom.cc.framework.ui.painter.ControlPainter
      extended bycom.cc.framework.ui.painter.def.DefPainterBase
          extended bycom.cc.framework.ui.painter.def.DefTabbarPainter
              extended bycom.cc.framework.ui.painter.def.DefTabsetPainter

public class DefTabsetPainter
extends DefTabbarPainter

Painter for the Tabset Control

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

Field Summary
 
Fields inherited from class com.cc.framework.ui.painter.ControlPainter
log
 
Constructor Summary
DefTabsetPainter(PainterContext painterContext, TabsetControl ctrl)
          Constructor for DefTabsetPainter
 
Method Summary
protected  org.apache.ecs.ConcreteElement doCreateBody(TabDesignModel tab)
          Creates the Content of a single Tab Page
protected  org.apache.ecs.ConcreteElement doCreateBody(TabDesignModel[] tabs)
          This method creates the content for the selected tab.
 Color getBgColor()
          Retrieves the Background color of the tabset
 java.lang.String getElementClass(int type)
          The method returns the HTML style class required for a list or treelist control.
protected  java.lang.String[] getJSImageResources()
          Creates the array which holds the images resources used by our JavaScript tree
protected  java.lang.String getJSRangeResource()
           
protected  java.lang.String getJSType()
           
protected  boolean showFrame()
          Checks if the frame should be painted
 
Methods inherited from class com.cc.framework.ui.painter.def.DefTabbarPainter
createClientScript, doCreateElement, getCtrl, getTabImage, isOverlapping, isSelected
 
Methods inherited from class com.cc.framework.ui.painter.def.DefPainterBase
createHelpElement, createHelpElement, doCreateHelpButton, doCreateHelpIcon
 
Methods inherited from class com.cc.framework.ui.painter.ControlPainter
ajaxPaint, attr, attr, attr, beginPaint, createActionPainter, createActionPainter, createElement, createImage, createImage, createImage, createInput, createInput, createSpacer, createSpacer, createSpacer, decorateURL, doAddDecorationsToRow, doAddDecorationsToRow, doAfterCreate, doAttachDecorations, doBeforeCreate, encodeURL, endPaint, forceControlName, getAsString, getAwtColor, getColor, getContextPath, getControlName, getDecorationsOnce, getElementName, getFramePainter, getFrameworkString, getFrameworkString, getImage, getImage, getImage, getImageSrc, getImageSrc, getImageSrc, getLocale, getPageContext, getPainterContext, getPrincipal, getRequest, getResponse, getSession, getSmartCaption, getSmartDetail, getSource, getSource, getStringResource, getStyleId, html, html, html, init, isRunAtClient, localize, localize, localize, paint, removeHtml, removeHtml, request, response, session, showComments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefTabsetPainter

public DefTabsetPainter(PainterContext painterContext,
                        TabsetControl ctrl)
Constructor for DefTabsetPainter

Parameters:
painterContext - The PainterContext
ctrl - The Control to render
Method Detail

showFrame

protected boolean showFrame()
Checks if the frame should be painted

Overrides:
showFrame in class DefTabbarPainter
Returns:
true if the frame should be painted

getElementClass

public java.lang.String getElementClass(int type)
Description copied from class: ControlPainter
The method returns the HTML style class required for a list or treelist control.

Overrides:
getElementClass in class DefTabbarPainter
See Also:
ControlPainter.getElementClass(int)

doCreateBody

protected org.apache.ecs.ConcreteElement doCreateBody(TabDesignModel tab)
Creates the Content of a single Tab Page

Parameters:
tab - The tab page
Returns:
ConcreteElement

doCreateBody

protected org.apache.ecs.ConcreteElement doCreateBody(TabDesignModel[] tabs)
This method creates the content for the selected tab. If the Tabset is configured as RunAt="CLIENT" than all tabs will be rendered in hidden DIV elements.

Overrides:
doCreateBody in class DefTabbarPainter
Parameters:
tabs - The collection with the visible tabs
Returns:
ConcreteElement

getBgColor

public Color getBgColor()
Retrieves the Background color of the tabset

Overrides:
getBgColor in class DefTabbarPainter
Returns:
Background color

getJSType

protected java.lang.String getJSType()
Overrides:
getJSType in class DefTabbarPainter
Returns:
The control type for JavaScript

getJSRangeResource

protected java.lang.String getJSRangeResource()
Overrides:
getJSRangeResource in class DefTabbarPainter
Returns:
Resource identifier for the range text resource

getJSImageResources

protected java.lang.String[] getJSImageResources()
Creates the array which holds the images resources used by our JavaScript tree

Overrides:
getJSImageResources in class DefTabbarPainter
Returns:
Array containing the images resources


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