@ThreadRestricted(value="wicket") public final class WP_Rank extends VPageHTML implements TabbedPage, VoterPage
http://reluk.ca:8080/v/w/Rank?8&p=G!p!sandbox
The particular poll is specified by query parameter 'p'. Query parameters for this page are:
Key | Value | Default |
---|---|---|
p | The name of the poll. Slash characters (/) are technically not allowed here and may therefore be encoded as exclamation marks (!). | Null, resulting in a 303 (see other) redirect that fills in the name of the test poll. |
u | The username of a candidate. The list of candidates is paged to ensure that the specified candidate is visible. If the candidate is not listed, the list is paged to the very end. Incompatible with parameter 'u'; specify one or the other. | Null, specifying no particular candidate. |
v | The email address of a candidate. The list of candidates is paged to ensure that the specified candidate is visible. If the candidate is not listed, the list is paged to the very end. Incompatible with parameter 'u'; specify one or the other. | Null, specifying no particular candidate. |
VoterPage.SessionScope, VoterPage.U
Modifier and Type | Field and Description |
---|---|
static int |
MAX_RANK_INDEX
The maximum index viewable in the table of ranked candidates.
|
(package private) static NavTab |
NAV_TAB
The navigation tab that fetches the ranking page, an instance of WP_Rank.
|
CACHE_DURATION_YEAR
SHORT_STRING_LENGTH_MAX
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER
INTERFACE
Constructor and Description |
---|
WP_Rank(PageParameters pP)
Constructs a WP_Rank.
|
Modifier and Type | Method and Description |
---|---|
NavTab |
navTab(VRequestCycle cycle)
Finds and returns the navigation tab for this page.
|
String |
voterEmail()
Identifies the voter by canonical email address.
|
IDPair |
voterIDPair()
Identifies either the voter who is viewed on this page, or nobody.
|
String |
voterUsername()
The voter's username as derived from the email address.
|
appendStyleClass, getCacheDuration, getPageIcon, inputLengthConstrained, invalidStyled, isCacheable, newLabelNBSP, newNullComponentAsLabel, newPagingNavigator, renderHead, setCacheable, setCacheDuration, setHeaders, setPageIcon
emailAddressValidator, inputLengthValidator, newBodyOnlyFragment, newNullComponent, shortened, shortenedWords, stringNonEmpty, stringRequired, vApplication, vRequestCycle
configureResponse, dirty, getMarkupType, homePageLink, onAfterRender, onRender, renderXmlDecl
componentChanged, componentRendered, detachModels, dirty, endComponentRender, getAutoIndex, getId, getPageClass, getPageId, getPageParameters, getPageReference, getRenderCount, getSizeInBytes, getStatelessHint, hierarchyAsString, internalOnModelChanged, internalPrepareForRender, isBookmarkable, isErrorPage, isPageStateless, onBeforeRender, onDetach, onRedirect, renderPage, setFreezePageId, setNumericId, setStatelessHint, setWasCreatedBookmarkable, startComponentRender, toString, wasCreatedBookmarkable, wasRendered
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onMarkupAttached, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachModel, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFeedbackMessages, getFlag, 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, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onComponentTag, onConfigure, onEvent, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canCallListenerInterface, detach, get, getBehaviorById, getBehaviorId, getPage, getPageRelativePath
detach
public static final int MAX_RANK_INDEX
public WP_Rank(PageParameters pP)
public NavTab navTab(VRequestCycle cycle)
TabbedPage
navTab
in interface TabbedPage
NAV_TAB
public String voterEmail()
VoterPage
voterEmail
in interface VoterPage
VoterPage.voterIDPair()
public IDPair voterIDPair()
VoterPage
voterIDPair
in interface VoterPage
VoterPage.voterEmail()
,
VoterPage.voterUsername()
public String voterUsername()
VoterPage
voterUsername
in interface VoterPage
VoterPage.voterIDPair()