com.pmease.quickbuild.plugin.report.engine.renderer.statistics
Class AbstractStatisticsPanel

java.lang.Object
  extended by org.apache.wicket.Component
      extended by org.apache.wicket.MarkupContainer
          extended by org.apache.wicket.markup.html.WebMarkupContainer
              extended by org.apache.wicket.markup.html.panel.Panel
                  extended by com.pmease.quickbuild.plugin.report.engine.renderer.statistics.AbstractStatisticsPanel
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<org.apache.wicket.Component>, org.apache.wicket.ajax.IAjaxIndicatorAware, org.apache.wicket.event.IEventSink, org.apache.wicket.event.IEventSource, org.apache.wicket.IClusterable, org.apache.wicket.IConverterLocator, org.apache.wicket.markup.html.IHeaderContributor, org.apache.wicket.request.component.IRequestableComponent, org.apache.wicket.util.IHierarchical<org.apache.wicket.Component>
Direct Known Subclasses:
StatisticsPanel

public class AbstractStatisticsPanel
extends org.apache.wicket.markup.html.panel.Panel
implements org.apache.wicket.ajax.IAjaxIndicatorAware

See Also:
Serialized Form

Field Summary
protected  LineChartOption chartOption
           
protected  StatisticsRenderer renderer
           
 
Fields inherited from class org.apache.wicket.markup.html.panel.Panel
PANEL
 
Fields inherited from class org.apache.wicket.Component
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER
 
Constructor Summary
AbstractStatisticsPanel(java.lang.String id, StatisticsRenderer renderer, org.apache.wicket.model.IModel<RendererContext> model)
           
 
Method Summary
 java.lang.String getAjaxIndicatorMarkupId()
           
protected  Builds getBuilds(java.lang.Long configId, DateRange dateRange)
           
 LineChartOption getChartOption()
           
 java.lang.String getCompareOptionLabel(CompareOption option)
           
 java.util.List<CompareOption> getCompareOptions()
           
 java.util.List<java.lang.Long> getComparisonConfigs()
           
 java.util.List<StatisticsItem> getComparisonItems()
           
protected  Configuration getConfiguration()
           
 Configuration getConfiguration(java.lang.Long configId)
           
 RendererContext getContext()
           
protected  java.util.List<Filter> getFilters(StatisticsItem item)
           
 java.util.List<GroupOption> getGroupOptions()
           
 LineChart getLineChart()
           
 StatisticsItem getPrimaryItem()
           
 StatisticsRenderer getRenderer()
           
 java.lang.String getReportSet()
           
 java.lang.String[] getReportSets()
           
 boolean isByVersionDisabled()
           
 boolean isCompareToPast()
           
protected  boolean isRenderable(StatisticsItem item)
           
 boolean isShowBuildInfo()
           
protected  boolean isShowReports()
           
protected  LineChartData loadChartData(java.lang.Long configId, StatisticsItem item, Builds builds, DateRange dateRange)
           
protected  LineChart loadLineChart()
           
protected  DataReport loadReport(java.lang.Long configId, StatisticsItem item, Builds builds)
           
 void onDetach()
           
 void setReportSet(java.lang.String reportset)
           
 DataColumn statisticsItemToDataColumn(StatisticsItem item)
           
protected  void validateChartOption()
           
 
Methods inherited from class org.apache.wicket.markup.html.panel.Panel
newMarkupSourcingStrategy
 
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getWebPage, getWebRequest
 
Methods inherited from class org.apache.wicket.MarkupContainer
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onMarkupAttached, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
 
Methods inherited from class org.apache.wicket.Component
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFeedbackMessages, getFlag, getId, 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, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onEvent, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, 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, visitParents, warn, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

renderer

protected final StatisticsRenderer renderer

chartOption

protected final LineChartOption chartOption
Constructor Detail

AbstractStatisticsPanel

public AbstractStatisticsPanel(java.lang.String id,
                               StatisticsRenderer renderer,
                               org.apache.wicket.model.IModel<RendererContext> model)
Method Detail

validateChartOption

protected void validateChartOption()

isRenderable

protected boolean isRenderable(StatisticsItem item)

getLineChart

public LineChart getLineChart()

loadLineChart

protected LineChart loadLineChart()

isShowReports

protected boolean isShowReports()

getBuilds

protected Builds getBuilds(java.lang.Long configId,
                           DateRange dateRange)

loadChartData

protected LineChartData loadChartData(java.lang.Long configId,
                                      StatisticsItem item,
                                      Builds builds,
                                      DateRange dateRange)

loadReport

protected DataReport loadReport(java.lang.Long configId,
                                StatisticsItem item,
                                Builds builds)

getFilters

protected java.util.List<Filter> getFilters(StatisticsItem item)

getReportSet

public java.lang.String getReportSet()

setReportSet

public void setReportSet(java.lang.String reportset)

statisticsItemToDataColumn

public DataColumn statisticsItemToDataColumn(StatisticsItem item)

getPrimaryItem

public StatisticsItem getPrimaryItem()

getChartOption

public LineChartOption getChartOption()

isByVersionDisabled

public boolean isByVersionDisabled()

isShowBuildInfo

public boolean isShowBuildInfo()

isCompareToPast

public boolean isCompareToPast()

getComparisonConfigs

public java.util.List<java.lang.Long> getComparisonConfigs()

getComparisonItems

public java.util.List<StatisticsItem> getComparisonItems()

getCompareOptionLabel

public java.lang.String getCompareOptionLabel(CompareOption option)

getGroupOptions

public java.util.List<GroupOption> getGroupOptions()

getCompareOptions

public java.util.List<CompareOption> getCompareOptions()

getContext

public RendererContext getContext()

getConfiguration

public Configuration getConfiguration(java.lang.Long configId)

getReportSets

public java.lang.String[] getReportSets()

getConfiguration

protected Configuration getConfiguration()

getRenderer

public StatisticsRenderer getRenderer()

onDetach

public void onDetach()
Overrides:
onDetach in class org.apache.wicket.Component

getAjaxIndicatorMarkupId

public java.lang.String getAjaxIndicatorMarkupId()
Specified by:
getAjaxIndicatorMarkupId in interface org.apache.wicket.ajax.IAjaxIndicatorAware


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.