maps.hudson.plugin.xfpanel
Class XFPanelView

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.View
          extended by hudson.model.ListView
              extended by maps.hudson.plugin.xfpanel.XFPanelView
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.View>, hudson.model.ModelObject, hudson.model.Saveable, hudson.search.SearchableModelObject, hudson.search.SearchItem, hudson.security.AccessControlled

public class XFPanelView
extends hudson.model.ListView

Represents an eXtreme Feedback Panel View. Thanks to Mark Howard and his work on the Radiator View Plugin from which this was based.

Author:
jrenaut

Nested Class Summary
protected static class XFPanelView.Blame
           
static class XFPanelView.XFColors
          Represents colors to be used on the view
 class XFPanelView.XFPanelEntry
          Represents a job to be shown on the panel Intermediates access to data available for the given Job
static class XFPanelView.XFPanelViewDescriptor
          Notify Hudson we're implementing a new View
 
Nested classes/interfaces inherited from class hudson.model.ListView
hudson.model.ListView.DescriptorImpl
 
Nested classes/interfaces inherited from class hudson.model.View
hudson.model.View.People, hudson.model.View.UserInfo
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
protected  XFPanelView.Blame BlameState
           
 
Fields inherited from class hudson.model.View
CONFIGURE, CREATE, DELETE, description, filterExecutors, filterQueue, LIST, name, owner, PERMISSIONS, SORTER, transientActions
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
XFPanelView(java.lang.String name, java.lang.Integer numColumns)
          C'tor
 
Method Summary
 XFPanelView.XFColors getColors()
           
 java.lang.Boolean getFullHD()
           
 java.lang.Integer getGuiBuildFont()
           
 java.lang.Integer getGuiClaimFont()
           
 java.lang.Integer getGuiFailFont()
           
 java.lang.Integer getGuiHeight()
           
 java.lang.Integer getGuiImgHeight()
           
 java.lang.Integer getGuiInfoFont()
           
 java.lang.Integer getGuiJobFont()
           
 java.lang.Boolean getHideSuccessfulBuilds()
           
 java.lang.Boolean getIsClaimPluginInstalled()
          Return true, if claim-plugin is installed
 java.lang.Integer getMaxAmmountOfResponsibles()
           
 java.lang.Integer getNumColumns()
           
 java.lang.Integer getRefresh()
           
 java.lang.Boolean getReplaceNumberOfTestCases()
           
 java.lang.Boolean getReplaceResponsibles()
           
 java.lang.String getResponsiblesTopic()
           
 java.lang.Boolean getShowClaimInfo()
           
 java.lang.Boolean getShowDescription()
           
 java.lang.Boolean getShowTimeStamp()
           
 java.lang.Boolean getShowWarningIcon()
           
 java.lang.Boolean getShowZeroTestCounts()
           
 java.lang.Boolean getSortDescending()
           
 java.util.Collection<XFPanelView.XFPanelEntry> sort(java.util.Collection<hudson.model.Job<?,?>> jobs)
           
protected  void submit(org.kohsuke.stapler.StaplerRequest req)
          Gets from the request the configuration parameters
 
Methods inherited from class hudson.model.ListView
add, contains, doCreateItem, getColumns, getDefaultColumns, getIncludeRegex, getItems, getJobFilters, getStatusFilter, hasJobFilterExtensions, initColumns, initJobFilters, onJobRenamed, save
 
Methods inherited from class hudson.model.View
all, checkPermission, create, doConfigSubmit, doDoDelete, doRssAll, doRssFailed, doRssLatest, doSubmitDescription, getAbsoluteUrl, getACL, getActions, getApi, getBuilds, getComputers, getDescription, getDescriptor, getDisplayName, getDynamic, getItem, getItemCreatePermission, getJob, getOwner, getPeople, getPostConstructLandingPage, getQueueItems, getSearchUrl, getTimeline, getUrl, getViewName, getViewUrl, getWidgets, hasPeople, hasPermission, isDefault, isEditable, isFilterExecutors, isFilterQueue, makeSearchIndex, rename
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BlameState

protected XFPanelView.Blame BlameState
Constructor Detail

XFPanelView

@DataBoundConstructor
public XFPanelView(java.lang.String name,
                                        java.lang.Integer numColumns)
C'tor

Parameters:
name - the name of the view
numColumns - the number of columns to use on the layout (work in progress)
Method Detail

getColors

public XFPanelView.XFColors getColors()
Returns:
the colors to use

getGuiHeight

public java.lang.Integer getGuiHeight()

getGuiImgHeight

public java.lang.Integer getGuiImgHeight()

getGuiJobFont

public java.lang.Integer getGuiJobFont()

getGuiFailFont

public java.lang.Integer getGuiFailFont()

getGuiInfoFont

public java.lang.Integer getGuiInfoFont()

getGuiBuildFont

public java.lang.Integer getGuiBuildFont()

getGuiClaimFont

public java.lang.Integer getGuiClaimFont()

getMaxAmmountOfResponsibles

public java.lang.Integer getMaxAmmountOfResponsibles()

getFullHD

public java.lang.Boolean getFullHD()

getShowDescription

public java.lang.Boolean getShowDescription()

getSortDescending

public java.lang.Boolean getSortDescending()

getShowZeroTestCounts

public java.lang.Boolean getShowZeroTestCounts()

getShowTimeStamp

public java.lang.Boolean getShowTimeStamp()

getShowClaimInfo

public java.lang.Boolean getShowClaimInfo()

getShowWarningIcon

public java.lang.Boolean getShowWarningIcon()

getReplaceResponsibles

public java.lang.Boolean getReplaceResponsibles()

getResponsiblesTopic

public java.lang.String getResponsiblesTopic()

getHideSuccessfulBuilds

public java.lang.Boolean getHideSuccessfulBuilds()

getIsClaimPluginInstalled

public java.lang.Boolean getIsClaimPluginInstalled()
Return true, if claim-plugin is installed


getReplaceNumberOfTestCases

public java.lang.Boolean getReplaceNumberOfTestCases()

sort

public java.util.Collection<XFPanelView.XFPanelEntry> sort(java.util.Collection<hudson.model.Job<?,?>> jobs)
Parameters:
jobs - the selected jobs
Returns:
the jobs list wrapped into XFPanelView.XFPanelEntry instances

getRefresh

public java.lang.Integer getRefresh()
Returns:
the refresh time in seconds

getNumColumns

public java.lang.Integer getNumColumns()
Returns:
the numColumns

submit

protected void submit(org.kohsuke.stapler.StaplerRequest req)
               throws javax.servlet.ServletException,
                      hudson.model.Descriptor.FormException,
                      java.io.IOException
Gets from the request the configuration parameters

Overrides:
submit in class hudson.model.ListView
Parameters:
req - StaplerRequest
Throws:
javax.servlet.ServletException - if any
hudson.model.Descriptor.FormException - if any
java.io.IOException


Copyright © 2004-2012. All Rights Reserved.