|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.painter.ControlPortionPainter com.cc.framework.ui.painter.def.frame.DefFramePainterBase com.cc.framework.ui.painter.def.frame.DefTabbedFramePainter
Painter for a tabbed frame
Field Summary | |
protected static int |
FLAG_DISABLED
Tab is disabled |
protected static int |
FLAG_FIRST
This flag is set for the first visible tab |
protected static int |
FLAG_LAST
This flag is set for the last visible tab |
protected static int |
FLAG_SELECTED
Tab is selected |
protected static int |
FLAG_STATES
Tab State Mask |
protected static int |
FLAG_UNSELECTED
Tab is unselected |
private boolean |
overlapping
This flag indicates if tabs should be drawn with overlapping |
Fields inherited from class com.cc.framework.ui.painter.ControlPortionPainter |
|
Constructor Summary | |
DefTabbedFramePainter(boolean overlapping)
Creates a new FramePainter |
Method Summary | |
void |
addSection(Frame frame,
FrameTitle title,
boolean showFrame)
Adds a new titled section to the given frame |
protected CompositeElement |
createBody()
Creates the body element of the frame |
Frame |
createFrame(boolean showFrame)
Creates a frame |
Frame |
createFrame(FrameTitle title,
boolean showFrame)
Creates a frame with a title bar |
protected org.apache.ecs.html.IMG |
createImage(int lstate,
int rstate,
Color bgcolor)
Retrieves the corner image for two adjacent tabs |
Frame |
createInnerFrame(boolean showFrame)
Creates a inner frame |
org.apache.ecs.ConcreteElement |
createTitle(FrameTitle title,
boolean showFrame)
Creates the title of the frame. |
protected org.apache.ecs.ConcreteElement |
doCreateNextButton(TabDesignModel scrollTo)
Creates the scroll left Button |
protected org.apache.ecs.ConcreteElement |
doCreatePrevButton(TabDesignModel scrollTo)
Creates the scroll left Button |
protected org.apache.ecs.ConcreteElement |
doCreateStackedTabs(TabDesignModel[] tabs)
This method creates the tab stack |
protected org.apache.ecs.ConcreteElement |
doCreateTab(org.apache.ecs.ConcreteElement face,
int lstate,
int state,
int rstate)
This method creates the tab face |
protected org.apache.ecs.ConcreteElement |
doCreateTab(TabDesignModel tab,
int lstate,
int state,
int rstate)
This method creates the tab face |
protected org.apache.ecs.ConcreteElement |
doCreateTabs()
Method createTabs |
protected org.apache.ecs.ConcreteElement |
doCreateTabs(TabDesignModel[] tabs,
int startIndex,
int stopIndex)
This method creates the tab stripe |
protected Color |
getBgColor()
Retrieves the Background color of the tabset |
protected ImageModel |
getBgImage(int state,
Color bgcolor)
Retrieves the background image for the specified style |
protected TabbarControl |
getCtrl()
Retrieves the control for this painter |
protected java.lang.String |
getStyleClass(int state)
Retrieves the style class for the specified tab state |
protected ImageModel |
getTabImage(TabDesignModel tab)
Returns the optional image for the given tab |
protected int |
getTabState(TabDesignModel[] tabs,
int index)
Calculates the state flags for the given tab |
boolean |
isOverlapping()
Checks if the tabs should be painted in overlapping mode |
protected boolean |
isSelected(TabDesignModel tab)
Checks if the specified tab is selected |
Methods inherited from class com.cc.framework.ui.painter.def.frame.DefFramePainterBase |
createButtonList, createHelpButton, createInnerFrame, showButtons, showHelpButton |
Methods inherited from class com.cc.framework.ui.painter.ControlPortionPainter |
attr, attr, attr, createActionPainter, createActionPainter, createImage, createImage, createImage, createSpacer, getColor, getControlPainter, getElementClass, getFrameworkString, getFrameworkString, getImage, getImage, getImageSrc, getImageSrc, getLocale, getPageContext, getPainterContext, getPrincipal, getSafeLocale, html, html, html, isRunAtClient, localize, removeHtml, removeHtml, setControlPainter |
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.painter.FramePainter |
setControlPainter |
Field Detail |
protected static final int FLAG_STATES
protected static final int FLAG_UNSELECTED
protected static final int FLAG_SELECTED
protected static final int FLAG_DISABLED
protected static final int FLAG_FIRST
protected static final int FLAG_LAST
private boolean overlapping
Constructor Detail |
public DefTabbedFramePainter(boolean overlapping)
overlapping
- This flag indicates if tabs should be drawn with overlappingMethod Detail |
protected TabbarControl getCtrl()
protected boolean isSelected(TabDesignModel tab)
tab
- the tab to check
true
if the tab is selectedpublic boolean isOverlapping()
true
when overlapping tabs should be drawnprotected Color getBgColor()
protected ImageModel getTabImage(TabDesignModel tab)
tab
- the tab
protected int getTabState(TabDesignModel[] tabs, int index)
tabs
- The list of all visible Tabsindex
- The tabs index
protected java.lang.String getStyleClass(int state)
state
- the tabs state
protected ImageModel getBgImage(int state, Color bgcolor)
state
- the tabs statebgcolor
- the tabsets background color
protected org.apache.ecs.html.IMG createImage(int lstate, int rstate, Color bgcolor)
lstate
- State of the left tabrstate
- State of the right tabbgcolor
- the tabsets background color
protected org.apache.ecs.ConcreteElement doCreateTab(org.apache.ecs.ConcreteElement face, int lstate, int state, int rstate)
face
- The tabs face contentlstate
- State of the left neighborstate
- State of the tabrstate
- State of the right neighbor
protected org.apache.ecs.ConcreteElement doCreateTab(TabDesignModel tab, int lstate, int state, int rstate)
tab
- The tab design modellstate
- State of the left neighborstate
- State of the tabrstate
- State of the right neighbor
protected org.apache.ecs.ConcreteElement doCreatePrevButton(TabDesignModel scrollTo)
scrollTo
- The tab to scroll to
protected org.apache.ecs.ConcreteElement doCreateNextButton(TabDesignModel scrollTo)
scrollTo
- The tab to scroll to
protected org.apache.ecs.ConcreteElement doCreateTabs()
protected org.apache.ecs.ConcreteElement doCreateTabs(TabDesignModel[] tabs, int startIndex, int stopIndex)
tabs
- Collection with all TabsstartIndex
- Index of the first visible TabstopIndex
- Index of the last visible Tab
protected org.apache.ecs.ConcreteElement doCreateStackedTabs(TabDesignModel[] tabs)
tabs
- Collection with all Tabs
protected CompositeElement createBody()
public Frame createFrame(boolean showFrame)
FramePainter
showFrame
- This flag indicates if the painter should create a visible or
invisible frame
FramePainter.createFrame(boolean)
public Frame createFrame(FrameTitle title, boolean showFrame)
FramePainter
title
- The frames titleshowFrame
- This flag indicates if the painter should create a visible or
invisible frame
FramePainter.createFrame(com.cc.framework.ui.model.FrameTitle, boolean)
public Frame createInnerFrame(boolean showFrame)
FramePainter
showFrame
- This flag indicates if the painter should create a visible or
invisible frame
FramePainter.createInnerFrame(boolean)
public org.apache.ecs.ConcreteElement createTitle(FrameTitle title, boolean showFrame)
FramePainter
title
- The frames titleshowFrame
- This flag indicates if the painter should create a visible or
invisible frame
FramePainter.createTitle(com.cc.framework.ui.model.FrameTitle, boolean)
public void addSection(Frame frame, FrameTitle title, boolean showFrame)
FramePainter
frame
- the frame where to add a new sectiontitle
- The frames titleshowFrame
- This flag indicates if the painter should create a visible or
invisible frameFramePainter.addSection(com.cc.framework.ui.painter.Frame, com.cc.framework.ui.model.FrameTitle, boolean)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |