|
|||||||||||
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.DefMenuPainter
Base Class for menu controls
Field Summary |
Fields inherited from class com.cc.framework.ui.painter.ControlPainter |
log |
Constructor Summary | |
DefMenuPainter(PainterContext painterContext,
MenuControl ctrl)
Constructor |
Method Summary | |
protected org.apache.ecs.ConcreteElement |
createMenuAnchor(MenuItem item,
ImageMap imageMap,
boolean selected)
Creates the Menu Anchor |
protected MenuControl |
getCtrl()
Retrieves the control for this painter |
protected MenuDesignModel |
getDesignModel()
Returns the DesignModel |
protected ImageModel |
getItemImage(MenuItem item,
ImageMap images)
Retrieves the image for the given menu item |
protected java.util.Locale |
getLocale(MenuItem item)
Retrieves the locale to use for a given menu item |
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 |
Constructor Detail |
public DefMenuPainter(PainterContext painterContext, MenuControl ctrl)
painterContext
- The PainterContextctrl
- The Control to renderMethod Detail |
protected MenuControl getCtrl()
protected MenuDesignModel getDesignModel()
protected org.apache.ecs.ConcreteElement createMenuAnchor(MenuItem item, ImageMap imageMap, boolean selected)
item
- MenuItemDesignModelimageMap
- ImageMapselected
- Selected Flag
protected java.util.Locale getLocale(MenuItem item)
item
- Panel item
protected ImageModel getItemImage(MenuItem item, ImageMap images)
item
- the menu itemimages
- the image map
null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |