Class AbstractTableTreePage

java.lang.Object
org.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.Page
org.apache.wicket.markup.html.WebPage
org.jppf.admin.web.AbstractJPPFPage
org.jppf.admin.web.TemplatePage
org.jppf.admin.web.tabletree.AbstractTableTreePage
All Implemented Interfaces:
Serializable, Iterable<org.apache.wicket.Component>, org.apache.wicket.event.IEventSink, org.apache.wicket.event.IEventSource, org.apache.wicket.feedback.IFeedbackContributor, org.apache.wicket.IConverterLocator, org.apache.wicket.IMetadataContext<Serializable,org.apache.wicket.Component>, org.apache.wicket.IQueueRegion, org.apache.wicket.markup.html.IHeaderContributor, org.apache.wicket.page.IManageablePage, org.apache.wicket.request.component.IRequestableComponent, org.apache.wicket.request.component.IRequestablePage, org.apache.wicket.util.IHierarchical<org.apache.wicket.Component>, org.apache.wicket.util.io.IClusterable, TableTreeHolder, RefreshTimerHolder
Direct Known Subclasses:
HealthPage, JobsPage, TopologyPage

public abstract class AbstractTableTreePage extends TemplatePage implements TableTreeHolder
Abstract super class for pages holding a toolbar and a table tree view.
Author:
Laurent Cohen
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final String
    The name prefix for the toolbar and table tree.
    protected final org.apache.wicket.ajax.AjaxSelfUpdatingTimerBehavior
    The behavior that periodically refreshes the toolbar and table tree.
    Holds the available and visible stats.
    Handles the selection of rows in the tree table.
    protected JPPFTableTree
    The tree table component.
    protected org.apache.wicket.markup.html.form.Form<String>
    The toolbar.
    protected org.jppf.ui.treetable.AbstractJPPFTreeTableModel
    The tree table model.
    protected final org.jppf.ui.treetable.TreeViewType
    The type of tree this page holds.

    Fields inherited from class org.jppf.admin.web.TemplatePage

    nodeFilterLink

    Fields inherited from class org.jppf.admin.web.AbstractJPPFPage

    PATH_PREFIX

    Fields inherited from class org.apache.wicket.Component

    ENABLE, FLAG_INITIALIZED, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING, RFLAG_CONTAINER_HAS_REMOVALS
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractTableTreePage(org.jppf.ui.treetable.TreeViewType viewType, String namePrefix)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
     
    protected abstract List<? extends org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<DefaultMutableTreeNode,String>>
     
    protected void
    Create a SelectableLayout populated with the list of all available columns, except the tree column.
    protected JPPFTableTree
    createTableTree(String layoutProperty)
    Create the tree table.
    org.apache.wicket.ajax.AjaxSelfUpdatingTimerBehavior
     
     
    org.apache.wicket.markup.html.form.Form<String>
     
    protected void
     

    Methods inherited from class org.jppf.admin.web.TemplatePage

    renderHead

    Methods inherited from class org.jppf.admin.web.AbstractJPPFPage

    onConfigure, setTooltip, setTooltip

    Methods inherited from class org.apache.wicket.markup.html.WebPage

    configureResponse, dirty, getMarkupType, homePageLink, onAfterRender, onRender, renderXmlDecl, reportMissingHead, setHeaders

    Methods inherited from class org.apache.wicket.Page

    componentChanged, componentRendered, detachModels, dirty, getAutoIndex, getId, getPageClass, getPageId, getPageParameters, getPageReference, getRenderCount, getSizeInBytes, getStatelessHint, hierarchyAsString, internalOnModelChanged, isBookmarkable, isErrorPage, isPageStateless, onBeforeRender, onDetach, renderPage, setFreezePageId, setNumericId, setStatelessHint, setWasCreatedBookmarkable, toString, wasCreatedBookmarkable, wasRendered

    Methods inherited from class org.apache.wicket.MarkupContainer

    add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onComponentTagBody, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, visitChildren, visitChildren

    Methods inherited from class org.apache.wicket.Component

    add, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMarkupTag, 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, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onComponentTag, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, 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.page.IManageablePage

    detach

    Methods inherited from interface org.apache.wicket.IQueueRegion

    dequeue, getRegionMarkup, newDequeueContext

    Methods inherited from interface org.apache.wicket.request.component.IRequestableComponent

    canCallListenerAfterExpiry, detach, get, getBehaviorById, getBehaviorId, getPage, getPageRelativePath

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Field Details

    • tableTree

      protected transient JPPFTableTree tableTree
      The tree table component.
    • treeModel

      protected transient org.jppf.ui.treetable.AbstractJPPFTreeTableModel treeModel
      The tree table model.
    • selectionHandler

      protected transient SelectionHandler selectionHandler
      Handles the selection of rows in the tree table.
    • toolbar

      protected transient org.apache.wicket.markup.html.form.Form<String> toolbar
      The toolbar.
    • refreshTimer

      protected final transient org.apache.wicket.ajax.AjaxSelfUpdatingTimerBehavior refreshTimer
      The behavior that periodically refreshes the toolbar and table tree.
    • viewType

      protected final org.jppf.ui.treetable.TreeViewType viewType
      The type of tree this page holds.
    • namePrefix

      protected final String namePrefix
      The name prefix for the toolbar and table tree.
    • selectableLayout

      protected SelectableLayout selectableLayout
      Holds the available and visible stats.
  • Constructor Details

    • AbstractTableTreePage

      public AbstractTableTreePage(org.jppf.ui.treetable.TreeViewType viewType, String namePrefix)
      Parameters:
      viewType - the type of tree this page holds.
      namePrefix - the name prefix for the toolbar and table tree.
  • Method Details

    • onInitialize

      protected void onInitialize()
      Overrides:
      onInitialize in class org.apache.wicket.Page
    • getTableTree

      public JPPFTableTree getTableTree()
      Specified by:
      getTableTree in interface TableTreeHolder
      Returns:
      the table tree.
    • getToolbar

      public org.apache.wicket.markup.html.form.Form<String> getToolbar()
      Specified by:
      getToolbar in interface TableTreeHolder
      Returns:
      the toolbar.
    • getRefreshTimer

      public org.apache.wicket.ajax.AjaxSelfUpdatingTimerBehavior getRefreshTimer()
      Specified by:
      getRefreshTimer in interface RefreshTimerHolder
      Returns:
      the refresh timer.
    • createTableTree

      protected JPPFTableTree createTableTree(String layoutProperty)
      Create the tree table.
      Parameters:
      layoutProperty - name of the property used when saving/loading the visible columns to/from the user settings.
      Returns:
      a JPPFTableTree instance.
    • createSelectableLayout

      protected void createSelectableLayout(String propertyName)
      Create a SelectableLayout populated with the list of all available columns, except the tree column.
      Parameters:
      propertyName - name of the property used when saving to / loading from the user settings.
    • createColumns

      protected abstract List<? extends org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<DefaultMutableTreeNode,String>> createColumns()
      Returns:
      the list of columns.
    • createActions

      protected abstract void createActions()