votorola.a.election
Class WP_Count

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

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

A count page - showing the results of an election. 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.
v Voter email address of a candidate to scroll to. Views that are indexed by email address (such as candidate rankings) are pre-scrolled, if necessary, to ensure this candidate is visible. If the candidate is not in the view, it is scrolled to the very end. Null, voter-indexed views are not pre-scrolled.

See Also:
WP_Count.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
static long MAX_RANK_INDEX
          The maximum index viewable in the table of ranked candidates.
(package private) static NavTab NAV_TAB
          The navigation tab, linking to the count page (an instance of WP_Count).
 
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_Count(PageParameters parameters)
          Constructs a WP_Count.
 
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

MAX_RANK_INDEX

public static final long MAX_RANK_INDEX
The maximum index viewable in the table of ranked candidates.

See Also:
Constant Field Values

NAV_TAB

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

Constructor Detail

WP_Count

public WP_Count(PageParameters parameters)
Constructs a WP_Count.

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