|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.painter.ControlPainter com.cc.framework.ui.painter.def.DefPainterBase com.cc.framework.ui.painter.def.DefTabbarPainter
Painter class for the tabbar control
Field Summary |
Fields inherited from class com.cc.framework.ui.painter.ControlPainter |
log |
Constructor Summary | |
DefTabbarPainter(PainterContext painterContext,
TabbarControl ctrl)
Constructor for DefTabbarPainter |
Method Summary | |
protected JavaScript |
createClientScript(TabDesignModel[] tabs)
Creates an JavaScript for the client Side Handler of the control. |
protected org.apache.ecs.ConcreteElement |
doCreateBody(TabDesignModel[] tabs)
This method creates the content for the selected tab. |
protected org.apache.ecs.ConcreteElement |
doCreateElement()
Creates the HTML-Element. |
Color |
getBgColor()
Retrieves the Background color of the control |
protected TabbarControl |
getCtrl()
Retrieves the control for this painter |
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()
|
ImageModel |
getTabImage(TabDesignModel tab)
Returns the optional image for the given tab |
protected boolean |
isOverlapping()
Checks if the tabs should be painted in overlapping mode |
protected boolean |
isSelected(TabDesignModel tab)
Checks if the specified tab is selected |
protected boolean |
showFrame()
Checks if the frame should be painted |
Methods inherited from class com.cc.framework.ui.painter.def.DefPainterBase |
createHelpElement, createHelpElement, doCreateHelpButton, doCreateHelpIcon |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefTabbarPainter(PainterContext painterContext, TabbarControl ctrl)
painterContext
- The PainterContextctrl
- The Control to renderMethod Detail |
protected TabbarControl getCtrl()
protected boolean isSelected(TabDesignModel tab)
tab
- the tab to check
true
if the tab is selectedprotected boolean isOverlapping()
true
when overlapping tabs should be drawnprotected boolean showFrame()
true
if the frame should be paintedpublic Color getBgColor()
public ImageModel getTabImage(TabDesignModel tab)
tab
- the tab
public java.lang.String getElementClass(int type)
ControlPainter
getElementClass
in class DefPainterBase
ControlPainter.getElementClass(int)
protected org.apache.ecs.ConcreteElement doCreateBody(TabDesignModel[] tabs)
tabs
- The collection with the visible tabs
protected JavaScript createClientScript(TabDesignModel[] tabs)
tabs
- TabDesignModel
protected java.lang.String getJSType()
protected java.lang.String getJSRangeResource()
protected java.lang.String[] getJSImageResources()
protected org.apache.ecs.ConcreteElement doCreateElement()
ControlPainter
doCreateElement
in class ControlPainter
ControlPainter.doCreateElement()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |