Class ListView

All Implemented Interfaces:
CapybaraPortingLayer

public class ListView extends View
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • ListView

      public ListView(com.google.inject.Injector injector, URL url)
  • Method Details

    • createWithColumn

      public static <T extends ListViewColumn> T createWithColumn(Container owner, Class<T> columnClass)
      Creates a new list view with the specified column.
      Type Parameters:
      T - the type of the column
      Parameters:
      owner - owner of the list view (jenkins, folder, etc.)
      columnClass - the class of the column to add
      Returns:
      the created column
    • addColumn

      public <T extends ListViewColumn> T addColumn(Class<T> type)
      Adds a column on the dashboard.
      Type Parameters:
      T - The type of the new dashboard column.
      Parameters:
      type - The class object of the type of the new dashboard column.
      Returns:
      The new dashboard column.
    • getColumn

      public <T extends ListViewColumn> T getColumn(Class<T> type)
      Returns:
      the column to the corresponding type
    • addJob

      public void addJob(Job job)
      Explicitly add a job to the view.
    • scheduleJob

      public void scheduleJob(String name)
    • scheduleJob

      public void scheduleJob(String name, Map<String,Object> params)