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.PropertyList, 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, NEW_PRONOUN, owner, PERMISSIONS, READ, SORTER, transientActions
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
XFPanelView(String name, Integer numColumns)
          C'tor
 
Method Summary
 Boolean getAutoResizeEntryHeight()
           
 XFPanelView.XFColors getColors()
           
 Boolean getFullHD()
           
 Integer getGuiBuildFont()
           
 Integer getGuiClaimFont()
           
 Integer getGuiFailFont()
           
 Integer getGuiHeight()
           
 Integer getGuiInfoFont()
           
 Integer getGuiJobFont()
           
 Boolean getHideSuccessfulBuilds()
           
 Boolean getIsClaimPluginInstalled()
          Return true, if claim-plugin is installed
 Integer getMaxAmmountOfResponsibles()
           
 Integer getNumColumns()
           
 Integer getRefresh()
           
 Boolean getReplaceNumberOfTestCases()
           
 Boolean getReplaceResponsibles()
           
 String getResponsiblesTopic()
           
 Boolean getShowClaimInfo()
           
 Boolean getShowClaimInfoInUnstable()
           
 Boolean getShowDescription()
           
 Boolean getShowTimeStamp()
           
 Boolean getShowWarningIcon()
           
 Boolean getShowZeroTestCounts()
           
 Boolean getSortDescending()
           
 Collection<XFPanelView.XFPanelEntry> sort(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
 
Methods inherited from class hudson.model.View
all, allInstantiable, checkPermission, create, doConfigSubmit, doDoDelete, doRssAll, doRssFailed, doRssLatest, doSubmitDescription, getAbsoluteUrl, getACL, getActions, getAllProperties, getApi, getApplicablePropertyDescriptors, getBuilds, getComputers, getDescription, getDescriptor, getDisplayName, getDynamic, getIndenter, getItem, getItemCreatePermission, getJob, getNewPronoun, getOwner, getOwnerItemGroup, getOwnerPrimaryView, getOwnerViewActions, getPeople, getPostConstructLandingPage, getProperties, getQueueItems, getSearchUrl, getTimeline, getUrl, getViewName, getViewUrl, getWidgets, hasPeople, hasPermission, isDefault, isEditable, isFilterExecutors, isFilterQueue, makeSearchIndex, rename, save
 
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
 
Methods inherited from interface hudson.model.Saveable
save
 

Field Detail

BlameState

protected XFPanelView.Blame BlameState
Constructor Detail

XFPanelView

@DataBoundConstructor
public XFPanelView(String name,
                                        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 Integer getGuiHeight()

getGuiJobFont

public Integer getGuiJobFont()

getGuiFailFont

public Integer getGuiFailFont()

getGuiInfoFont

public Integer getGuiInfoFont()

getGuiBuildFont

public Integer getGuiBuildFont()

getGuiClaimFont

public Integer getGuiClaimFont()

getMaxAmmountOfResponsibles

public Integer getMaxAmmountOfResponsibles()

getFullHD

public Boolean getFullHD()

getShowDescription

public Boolean getShowDescription()

getSortDescending

public Boolean getSortDescending()

getShowZeroTestCounts

public Boolean getShowZeroTestCounts()

getShowTimeStamp

public Boolean getShowTimeStamp()

getShowClaimInfo

public Boolean getShowClaimInfo()

getShowClaimInfoInUnstable

public Boolean getShowClaimInfoInUnstable()

getShowWarningIcon

public Boolean getShowWarningIcon()

getReplaceResponsibles

public Boolean getReplaceResponsibles()

getResponsiblesTopic

public String getResponsiblesTopic()

getHideSuccessfulBuilds

public Boolean getHideSuccessfulBuilds()

getIsClaimPluginInstalled

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


getReplaceNumberOfTestCases

public Boolean getReplaceNumberOfTestCases()

getAutoResizeEntryHeight

public Boolean getAutoResizeEntryHeight()

sort

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

getRefresh

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

getNumColumns

public Integer getNumColumns()
Returns:
the numColumns

submit

protected void submit(org.kohsuke.stapler.StaplerRequest req)
               throws javax.servlet.ServletException,
                      hudson.model.Descriptor.FormException,
                      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
IOException


Copyright © 2004-2012. All Rights Reserved.