votorola.a.election
Class WP_Vote

java.lang.Object
  extended by org.apache.wicket.Component
      extended by org.apache.wicket.MarkupContainer
          extended by org.apache.wicket.Page
              extended by org.apache.wicket.markup.html.WebPage
                  extended by VPage
                      extended by WP_Vote
All Implemented Interfaces:
Serializable, IClusterable, IConverterLocator, IRedirectListener, IRequestListener, IHeaderContributor, INewBrowserWindowListener, IPageMapEntry, RegionalPage, TabbedPage

@ThreadRestricted(value="wicket")
public final class WP_Vote
extends VPage
implements TabbedPage, RegionalPage

A voting page, for casting a vote in an election. The particular election is specified by query parameter 's'. Query parameters for this page are:

Key Value Default
c Email address of a candidate, as a default for the input field. Null, leaving the candidate field empty.
s Service name of the election. Null, leaving the page empty, except for the navigation controls.

See Also:
WP_Vote.html, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.wicket.Page
Page.IPageSerializer
 
Nested classes/interfaces inherited from class org.apache.wicket.Component
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor, Component.VisibilityChange
 
Field Summary
(package private) static NavTab NAV_TAB
          The navigation tab, linking to the voting page (an instance of WP_Vote).
 
Fields inherited from class VPage
SHORT_STRING_LENGTH_MAX
 
Fields inherited from class org.apache.wicket.Page
LATEST_VERSION, serializer
 
Fields inherited from class org.apache.wicket.Component
ENABLE, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER
 
Fields inherited from interface org.apache.wicket.markup.html.INewBrowserWindowListener
INTERFACE
 
Fields inherited from interface org.apache.wicket.IRedirectListener
INTERFACE
 
Constructor Summary
WP_Vote(PageParameters parameters)
          Constructs a WP_Vote.
 
Method Summary
 NavTab navTab(VRequestCycle cycle)
          Finds and returns the navigation tab for this page.
 RegionalPath regionalPath()
          The regional path that is displayed on this page.
 
Methods inherited from class VPage
appendStyleClass, emailAddressValidator, inputLengthConstrained, inputLengthValidator, invalidStyled, newCustomLabel, newLabelNBSP, newNullComponent, newNullComponentAsLabel, renderHead, shortened, shortenedWords, styleClassForKeyword, vApplication, vRequestCycle
 
Methods inherited from class org.apache.wicket.markup.html.WebPage
configureResponse, getMarkupType, getUrlCompressor, getWebRequestCycle, homePageLink, onDetach, onNewBrowserWindow, setHeaders
 
Methods inherited from class org.apache.wicket.Page
afterCallComponent, beforeCallComponent, componentChanged, componentRendered, detachModels, dirty, endComponentRender, expireOldestVersion, getAjaxVersionNumber, getAutoIndex, getCurrentVersionNumber, getId, getNumericId, getPageClass, getPageMap, getPageMapEntry, getPageMapName, getPageParameters, getSizeInBytes, getStatelessHint, getVersion, getVersions, hierarchyAsString, ignoreVersionMerge, internalOnModelChanged, isBookmarkable, isErrorPage, isPageStateless, moveToPageMap, newVersionManager, onBeforeRender, onPageAttached, onRedirect, onRender, removePersistedFormData, renderPage, rollbackPage, setNumericId, setStatelessHint, startComponentRender, toString, writeReplace
 
Methods inherited from class org.apache.wicket.MarkupContainer
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onComponentTagBody, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, visitChildren, visitChildren
 
Methods inherited from class org.apache.wicket.Component
add, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getBehaviors, getBehaviors, getClassRelativePath, getComponentBorder, getConverter, getConverter, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMetaData, getModel, getModelComparator, getModelObject, getModelObjectAsString, getModelObjectAsString, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageFactory, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, newPage, newPage, onAfterRender, onAttach, onBeginRequest, onComponentTag, onEndRequest, onModelChanged, onModelChanging, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderHead, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMetaData, setModelObject, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.wicket.session.pagemap.IPageMapEntry
getPage
 

Field Detail

NAV_TAB

static final NavTab NAV_TAB
The navigation tab, linking to the voting page (an instance of WP_Vote).

Constructor Detail

WP_Vote

public WP_Vote(PageParameters parameters)
Constructs a WP_Vote.

Method Detail

regionalPath

public RegionalPath regionalPath()
Description copied from interface: RegionalPage
The regional path that is displayed on this page.

Specified by:
regionalPath in interface RegionalPage

navTab

public NavTab navTab(VRequestCycle cycle)
Description copied from interface: TabbedPage
Finds and returns the navigation tab for this page. In cases where a single page class has multiple tabs (corresponding, for example, to multiple pages with different parameters) the search will extend through the hierarchy of navigation bars.

Specified by:
navTab in interface TabbedPage
See Also:
NAV_TAB