|
|||||||||||
| 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.DefButtonPainter
HTML painter for the button control
| Field Summary | |
private static java.lang.String |
ONCLICK_CANCEL
|
private static java.lang.String |
ONCLICK_RESET
|
private static java.lang.String |
ONCLICK_SUBMIT
|
private static java.lang.String |
ONCLICK_USERDEF
onClick-Handler for an user defined button |
| Fields inherited from class com.cc.framework.ui.painter.ControlPainter |
log |
| Constructor Summary | |
DefButtonPainter(PainterContext painterContext,
ButtonControl ctrl)
Constructor |
|
| Method Summary | |
protected org.apache.ecs.html.IMG |
disableImg(org.apache.ecs.html.IMG image)
If an image button is disabled the correct image must be used. |
protected java.lang.String |
disableImg(java.lang.String imgSrc)
If an image button is disabled the correct image must be used. |
protected org.apache.ecs.ConcreteElement |
doCreateButtonBody()
Creates the text buttons body element |
protected org.apache.ecs.ConcreteElement |
doCreateElement()
Creates the HTML-Element. |
protected org.apache.ecs.ConcreteElement |
doCreateImageButton()
Creates a image button |
protected org.apache.ecs.ConcreteElement |
doCreateTextButton()
Creates a text button |
protected void |
doSetImageButtonHandlers(org.apache.ecs.html.Input imagebutton)
Assigns the JavaScript handlers to the image button |
protected void |
doSetTextButtonHandlers(org.apache.ecs.MultiPartElement textbutton)
Assigns the JavaScript handlers to the text button |
protected java.lang.String |
getButtonId()
Retrieves the button id |
protected ButtonControl |
getCtrl()
Retrieves the control for this painter |
| 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 |
private static final java.lang.String ONCLICK_SUBMIT
private static final java.lang.String ONCLICK_CANCEL
private static final java.lang.String ONCLICK_RESET
private static final java.lang.String ONCLICK_USERDEF
| Constructor Detail |
public DefButtonPainter(PainterContext painterContext,
ButtonControl ctrl)
painterContext - The PainterContextctrl - The Control to render| Method Detail |
protected ButtonControl getCtrl()
protected java.lang.String getButtonId()
protected org.apache.ecs.ConcreteElement doCreateTextButton()
protected void doSetTextButtonHandlers(org.apache.ecs.MultiPartElement textbutton)
textbutton - the text button elementprotected org.apache.ecs.ConcreteElement doCreateButtonBody()
protected org.apache.ecs.ConcreteElement doCreateImageButton()
protected void doSetImageButtonHandlers(org.apache.ecs.html.Input imagebutton)
imagebutton - the image button elementprotected org.apache.ecs.ConcreteElement doCreateElement()
ControlPainter
doCreateElement in class ControlPainterControlPainter.doCreateElement()protected java.lang.String disableImg(java.lang.String imgSrc)
imgSrc - The image source
protected org.apache.ecs.html.IMG disableImg(org.apache.ecs.html.IMG image)
image - The image
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||