|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.painter.ControlPainter
com.cc.framework.ui.painter.def.DefPainterBase
com.cc.framework.ui.painter.def.DefCrumbsPainter
Painter class for the crumbs control
| Field Summary | |
protected static int |
FLAG_DISABLED
Crumb is disabled |
protected static int |
FLAG_FIRST
This flag is set for the first visible crumb |
protected static int |
FLAG_LAST
This flag is set for the last visible crumb |
protected static int |
FLAG_SELECTED
Crumb is selected |
protected static int |
FLAG_STATES
Crumbs State Mask |
protected static int |
FLAG_UNSELECTED
Crumb is unselected |
| Fields inherited from class com.cc.framework.ui.painter.ControlPainter |
log |
| Constructor Summary | |
DefCrumbsPainter(PainterContext painterContext,
CrumbsControl ctrl)
Constructor |
|
| Method Summary | |
protected org.apache.ecs.html.IMG |
createImage(int lstate,
int rstate)
Retrieves the corner image for two adjacent crumbs |
protected org.apache.ecs.ConcreteElement |
doCreateCrumb(org.apache.ecs.ConcreteElement face,
int lstate,
int state,
int rstate)
This method creates the crumb element |
protected org.apache.ecs.ConcreteElement |
doCreateCrumbs(CrumbModel[] crumbs)
Method doCreateCrumbs |
protected org.apache.ecs.ConcreteElement |
doCreateElement()
Creates the HTML-Element. |
protected ImageModel |
getBgImage(int state)
Retrieves the background image for the specified style |
protected ImageModel |
getCrumbImage(CrumbModel crumb,
int state)
Returns the Image of a crumb |
protected int |
getCrumbState(CrumbModel[] crumbs,
int index)
Calculates the state flags for the given crumb |
protected CrumbsControl |
getCtrl()
Retrieves the control for this painter |
protected java.util.Locale |
getLocale(CrumbModel crumb)
Retrieves the locale to use for a given content element |
protected java.lang.String |
getStyleClass(int state)
Retrieves the style class for the specified crumb state |
protected boolean |
isOverlapping()
Checks if the crumbs should be painted in overlapping mode |
protected boolean |
isSelected(CrumbModel crumb)
Checks if the specified crumb is selected |
| Methods inherited from class com.cc.framework.ui.painter.def.DefPainterBase |
createHelpElement, createHelpElement, doCreateHelpButton, doCreateHelpIcon, getElementClass |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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
| Constructor Detail |
public DefCrumbsPainter(PainterContext painterContext,
CrumbsControl ctrl)
painterContext - The PainterContextctrl - The Control to render| Method Detail |
protected CrumbsControl getCtrl()
protected boolean isOverlapping()
true when overlapping crumbs should be drawnprotected java.util.Locale getLocale(CrumbModel crumb)
crumb - Crumb element
protected org.apache.ecs.ConcreteElement doCreateElement()
ControlPainter
doCreateElement in class ControlPainterControlPainter.doCreateElement()protected boolean isSelected(CrumbModel crumb)
crumb - CrumbDesignModel
protected int getCrumbState(CrumbModel[] crumbs,
int index)
crumbs - The list of all visible crumbsindex - The crumbs index
protected java.lang.String getStyleClass(int state)
state - the crumbs state
protected ImageModel getBgImage(int state)
state - the crumbs state
protected org.apache.ecs.html.IMG createImage(int lstate,
int rstate)
lstate - State of the left crumbrstate - State of the right crumb
protected org.apache.ecs.ConcreteElement doCreateCrumb(org.apache.ecs.ConcreteElement face,
int lstate,
int state,
int rstate)
face - The crumbs face contentlstate - State of the left neighborstate - State of the crumbrstate - State of the right neighbor
protected org.apache.ecs.ConcreteElement doCreateCrumbs(CrumbModel[] crumbs)
crumbs - the crumbs list
protected ImageModel getCrumbImage(CrumbModel crumb,
int state)
crumb - CrumbDesignModelstate - the selection state of the crumb
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||