Class DefaultProjectGridImpl
- java.lang.Object
-
- au.com.centrumsystems.hudson.plugin.buildpipeline.Grid<ProjectForm>
-
- au.com.centrumsystems.hudson.plugin.buildpipeline.ProjectGrid
-
- au.com.centrumsystems.hudson.plugin.buildpipeline.DefaultProjectGridImpl
-
public abstract class DefaultProjectGridImpl extends ProjectGrid
ProjectGrid
backed by map.- Author:
- Kohsuke Kawaguchi, Centrum Systems
-
-
Constructor Summary
Constructors Constructor Description DefaultProjectGridImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectForm
get(int row, int col)
Gets the project at the specified location.int
getColumns()
Width of the grid.int
getRows()
Height of the grid.void
set(int row, int col, ProjectForm p)
Mutable, but only forProjectGridBuilder
-
Methods inherited from class au.com.centrumsystems.hudson.plugin.buildpipeline.ProjectGrid
builds
-
Methods inherited from class au.com.centrumsystems.hudson.plugin.buildpipeline.Grid
getNextAvailableRow, isEmpty
-
-
-
-
Method Detail
-
set
public void set(int row, int col, ProjectForm p)
Mutable, but only forProjectGridBuilder
- Parameters:
row
- position of the formcol
- position of the formp
- The project to add. null to remove the value.
-
get
public ProjectForm get(int row, int col)
Gets the project at the specified location.- Specified by:
get
in classGrid<ProjectForm>
- Parameters:
row
- position of the formcol
- position of the form- Returns:
- possibly null.
-
getColumns
public int getColumns()
Description copied from class:Grid
Width of the grid. Total number of columns.- Specified by:
getColumns
in classGrid<ProjectForm>
- Returns:
- positive integer
-
getRows
public int getRows()
Description copied from class:Grid
Height of the grid. Total number of rows.- Specified by:
getRows
in classGrid<ProjectForm>
- Returns:
- positive integer
-
-