Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public static final class Table.Merge

  1. Object
  2. Table.Merge
A rectangular range of cells shown as one, anchored at its top-left cell.

Fields

public final int rowThe anchor row.
public final int columnThe anchor column.
public final int rowsThe number of rows spanned, at least one.
public final int columnsThe number of columns spanned, at least one.

Constructors

public Merge(int row, int column, int rows, int columns)Creates a merge.

Methods

public boolean contains(int r, int c)Whether the range contains a cell.
public boolean equals(Object o)Two merges are equal when they cover the same range.
public int hashCode()A hash consistent with equals.

Inherited methods

Field details

row

public final int row
The anchor row.

column

public final int column
The anchor column.

rows

public final int rows
The number of rows spanned, at least one.

columns

public final int columns
The number of columns spanned, at least one.

Constructor details

Merge

public Merge(int row, int column, int rows, int columns)
Creates a merge.

Parameters

row int
the anchor row
column int
the anchor column
rows int
rows spanned
columns int
columns spanned

Method details

contains

public boolean contains(int r, int c)
Whether the range contains a cell.

Parameters

r int
the row
c int
the column

Returns

true when inside

equals

public boolean equals(Object o)
Two merges are equal when they cover the same range.

Parameters

o Object
the other object

Returns

true when equal

hashCode

public int hashCode()
A hash consistent with equals.

Returns

the hash