|
|||||||||||
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.html.HtmlPainterBase com.cc.framework.ui.painter.html.HtmlTextPainter com.cc.framework.ui.painter.html.HtmlCalendarPainter
Painter for the calendar control. This painter generates the HTML whch is necessary for the calendar control. The control consist of a HTML input element followed by an img element, which is embedded into an anchor. If the user clicks on the image an new browser window opens which includes the calendar.
Field Summary |
Fields inherited from class com.cc.framework.ui.painter.html.HtmlTextPainter |
|
Fields inherited from class com.cc.framework.ui.painter.ControlPainter |
log |
Constructor Summary | |
HtmlCalendarPainter(PainterContext painterContext,
CalendarControl ctrl)
Constructor for HtmlCalendarPainter |
Method Summary | |
protected org.apache.ecs.ConcreteElement |
doCreateElement()
Creates the HTML-Element. |
protected org.apache.ecs.html.A |
doCreateImageLink()
Creates the calendar icon which is used to open the popup calendar. |
protected java.lang.String |
doCreateLinkInlineWindow(java.lang.String localeStr,
java.lang.String format,
java.lang.String width,
java.lang.String height,
java.lang.String layout)
Creates the javascript needed to open the inline calendar. |
protected java.lang.String |
doCreateLinkPopUpWindow(java.lang.String localeStr,
java.lang.String format,
java.lang.String width,
java.lang.String height,
java.lang.String layout)
Creates the javascript needed to open the popup calendar, which opens in a seperat new window. |
java.lang.String |
getAsString(Converter converter,
java.lang.Object value)
Uses a Bean Converter to convert the given object to a String representation. |
protected java.lang.String |
getFormat()
Returns the DateTime pattern /format |
Methods inherited from class com.cc.framework.ui.painter.html.HtmlTextPainter |
doCreateDisplayElement, doCreateEditElement, getCtrl, getValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HtmlCalendarPainter(PainterContext painterContext, CalendarControl ctrl)
painterContext
- The PainterContextctrl
- The Control to renderMethod Detail |
protected org.apache.ecs.ConcreteElement doCreateElement()
ControlPainter
doCreateElement
in class HtmlTextPainter
ControlPainter.doCreateElement()
protected org.apache.ecs.html.A doCreateImageLink()
protected java.lang.String doCreateLinkPopUpWindow(java.lang.String localeStr, java.lang.String format, java.lang.String width, java.lang.String height, java.lang.String layout)
localeStr
- The Localeformat
- The format maskwidth
- The window widthheight
- The window heightlayout
- The layout template to use
protected java.lang.String doCreateLinkInlineWindow(java.lang.String localeStr, java.lang.String format, java.lang.String width, java.lang.String height, java.lang.String layout)
localeStr
- The Localeformat
- The format maskwidth
- The window widthheight
- The window heightlayout
- The layout template to use
protected java.lang.String getFormat()
public java.lang.String getAsString(Converter converter, java.lang.Object value) throws ConverterException
getAsString
in class ControlPainter
converter
- The converter to use or null
to use a default
Convertervalue
- The Bean to convert
null
ConverterException
- Is thrown when a conversion exception occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |