votorola.a.election
Class WP_Election

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_Election
All Implemented Interfaces:
Serializable, IClusterable, IConverterLocator, IRedirectListener, IRequestListener, IHeaderContributor, INewBrowserWindowListener, IPageMapEntry, RegionalPage, TabbedPage

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

An election overview page. The particular election is specified by query parameter 's'. Query parameters for this page are:

Key Value Default
s Service name of the election. Null, leaving the page empty, except for the navigation controls.

See Also:
WP_Election.html, Serialized Form

Nested Class Summary
(package private) static class WP_Election.ElectionFetcher
          A serializeable container for an election and its latest count.
static class WP_Election.ElectionLink
          A link to a page under the election navigation bar.
(package private) static class WP_Election.ElectionNavPile
          Navigation bars for the top of an election page.
(package private) static class WP_Election.ElectionTab
          A navigation tab for an election page.
(package private) static class WP_Election.RegionalPathMPE
          A mutable regional path for an election page.
 
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
 
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_Election(PageParameters parameters)
          Constructs a WP_Election.
 
Method Summary
(package private) static Election electionOrNullFor(PageParameters parameters, VRequestCycle cycle)
          Returns the election corresponding to query parameter 's', if it is specified.
static NavBar navBar()
          The bar for navigating among the pages of the election.
 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
 

Constructor Detail

WP_Election

public WP_Election(PageParameters parameters)
Constructs a WP_Election.

Method Detail

electionOrNullFor

static Election electionOrNullFor(PageParameters parameters,
                                  VRequestCycle cycle)
Returns the election corresponding to query parameter 's', if it is specified.

Returns:
election; or null, if no query parameter 's' is specified
Throws:
RestartResponseException - redirecting to an error message page, if the specified parameter 's' does not identify a known election

navBar

public static NavBar navBar()
The bar for navigating among the pages of the election.


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