public abstract class AbstractCalendar extends WebComponent
Although this component by itself is fully functional, it doesn't do much other than just displaying the calendar. Hence, this class is abstract.
An easy way to build upon this component is to override
#appendToInit(String, String, String, StringBuffer) and add event handlers etc. in the
YUI widget's initialization function.
DatePicker,
Serialized FormENABLE, FLAG_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING| Constructor and Description |
|---|
AbstractCalendar(String id)
Construct.
|
AbstractCalendar(String id,
boolean contributeDependencies)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendToInit(String markupId,
String javascriptId,
String javascriptWidgetId,
StringBuilder b)
Append javascript to the initialization function for the YUI widget.
|
protected void |
configureWidgetProperties(Map<Object,Object> widgetProperties)
Gives overriding classes the option of adding (or even changing/ removing) configuration
properties for the javascript widget.
|
String |
getJavaScriptId()
Gets the id of the javascript widget.
|
String |
getJavaScriptWidgetId()
The name spaced id of the widget.
|
void |
renderHead(IHeaderResponse response) |
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession, onRenderadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, get, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalInitialize, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onAfterRenderChildren, onBeforeRender, onComponentTag, onComponentTagBody, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModel, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, toString, toString, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrappublic AbstractCalendar(String id)
id - The component idpublic AbstractCalendar(String id, boolean contributeDependencies)
id - The component idcontributeDependencies - Whether to contribute the packaged dependencies. Pass false in case you want to
include the dependencies manually in your own page, e.g. when you want to keep
them in your web application dir. To contribute yourself (in case you want to pass
false), your page header should look like:
<script type="text/javascript" src="yahoo.js"></script>
<script type="text/javascript" src="dom.js"></script>
<script type="text/javascript" src="event.js"></script>
<script type="text/javascript" src="calendar.js"></script>
<link rel="stylesheet" type="text/css" href="calendar.css" />
public final String getJavaScriptId()
getJavaScriptWidgetId().getJavaScriptWidgetId()public final String getJavaScriptWidgetId()
getJavaScriptId()protected void appendToInit(String markupId, String javascriptId, String javascriptWidgetId, StringBuilder b)
markupId - The markup id of the calendar componentjavascriptId - the non-name spaced javascript id of the widgetjavascriptWidgetId - the name space id of the widgetb - the buffer to append the script toprotected void configureWidgetProperties(Map<Object,Object> widgetProperties)
super.configureWidgetProperties(properties).widgetProperties - the current widget propertiespublic void renderHead(IHeaderResponse response)
renderHead in interface IHeaderContributorrenderHead in class ComponentCopyright © 2006–2016 Apache Software Foundation. All rights reserved.