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
ProjectGrid backed by map.- Author:
- Kohsuke Kawaguchi, Centrum Systems
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(int row, int col) Gets the project at the specified location.intWidth of the grid.intgetRows()Height of the grid.voidset(int row, int col, ProjectForm p) Mutable, but only forProjectGridBuilderMethods inherited from class au.com.centrumsystems.hudson.plugin.buildpipeline.ProjectGrid
buildsMethods inherited from class au.com.centrumsystems.hudson.plugin.buildpipeline.Grid
getNextAvailableRow, isEmpty
-
Constructor Details
-
DefaultProjectGridImpl
public DefaultProjectGridImpl()
-
-
Method Details
-
set
Mutable, but only forProjectGridBuilder- Parameters:
row- position of the formcol- position of the formp- The project to add. null to remove the value.
-
get
Gets the project at the specified location.- Specified by:
getin classGrid<ProjectForm>- Parameters:
row- position of the formcol- position of the form- Returns:
- possibly null.
-
getColumns
public int getColumns()Description copied from class:GridWidth of the grid. Total number of columns.- Specified by:
getColumnsin classGrid<ProjectForm>- Returns:
- positive integer
-
getRows
public int getRows()Description copied from class:GridHeight of the grid. Total number of rows.- Specified by:
getRowsin classGrid<ProjectForm>- Returns:
- positive integer
-