au.com.centrumsystems.hudson.plugin.buildpipeline
Class DefaultProjectGridImpl

java.lang.Object
  extended by au.com.centrumsystems.hudson.plugin.buildpipeline.Grid<ProjectForm>
      extended by au.com.centrumsystems.hudson.plugin.buildpipeline.ProjectGrid
          extended by au.com.centrumsystems.hudson.plugin.buildpipeline.DefaultProjectGridImpl

public abstract class DefaultProjectGridImpl
extends ProjectGrid

ProjectGrid backed by map.

Author:
Kohsuke Kawaguchi, Centrum Systems

Constructor Summary
DefaultProjectGridImpl()
           
 
Method Summary
 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 for ProjectGridBuilder
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProjectGridImpl

public DefaultProjectGridImpl()
Method Detail

set

public void set(int row,
                int col,
                ProjectForm p)
Mutable, but only for ProjectGridBuilder

Parameters:
row - position of the form
col - position of the form
p - 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 class Grid<ProjectForm>
Parameters:
row - position of the form
col - 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 class Grid<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 class Grid<ProjectForm>
Returns:
positive integer


Copyright © 2004-2015. All Rights Reserved.