votorola.a.register
Class WP_List

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

@ThreadRestricted(value="wicket")
public final class WP_List
extends VPage
implements TabbedPage

A page of the voter list, in the Web interface - showing a node of the neighbourhood tree: either a non-leaf neighbourhood, containing a list of child neighbourhoods; or a leaf neighbourhood, containing a list of voters. It provides navigation links to parent and child neighbourhoods, so the user can browse the tree.

The neighbourhood node to display is specified by path, using query parameter 'p'. Query parameters for this page are:

Key Value Default
p Path to the node in the neighbourhood tree, preceded by an opening bracket '(', and ending with either a closing bracket ')' in the case of a leaf node, or an asterisk '*' in the case of a non-leaf. If the node does not exist (including if it is an intermediate node, falling between other nodes, and not explicitly stored, neither concretely nor abstractly), then the path falls back to the non-leaf root "(*". No default, this parameter is required.
v Voter email address of a registration to highlight in the list. Has no effect unless parameter 'p' designates a leaf node, and it contains the specified registration. Null, no.registration is highlighted

See Also:
WP_List.html, Serialized Form

Nested Class Summary
static class WP_List.SessionScope
          Session scope for instances of WP_List.
 
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 NavTab NAV_TAB
          The navigation tab, linking to the neighbourhood page (an instance of WP_List).
 
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_List(PageParameters parameters)
          Constructs a WP_List.
 
Method Summary
 NavTab navTab(VRequestCycle cycle)
          Finds and returns the navigation tab for this page.
static String pValue(String path, boolean isLeaf)
          Constructs a path parameter (p) value for a list 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

public static final NavTab NAV_TAB
The navigation tab, linking to the neighbourhood page (an instance of WP_List). The link parameters are set to redisplay the last neighbourhood shown; or, if none was shown, the root neighbourhood "/" (non-leaf).

Constructor Detail

WP_List

public WP_List(PageParameters parameters)
        throws SQLException
Constructs a WP_List.

Throws:
SQLException
Method Detail

pValue

public static String pValue(String path,
                            boolean isLeaf)
Constructs a path parameter (p) value for a list page.

See Also:
WP_List

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