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
- Object
- Table.Merge
A rectangular range of cells shown as one, anchored at its top-left cell.
Fields
public final int row | The anchor row. |
public final int column | The anchor column. |
public final int rows | The number of rows spanned, at least one. |
public final int columns | The 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 rowThe anchor row.
column
public final int columnThe anchor column.
rows
public final int rowsThe number of rows spanned, at least one.
columns
public final int columnsThe number of columns spanned, at least one.
Constructor details
Merge
public Merge(int row, int column, int rows, int columns)Creates a merge.
Parameters
rowint- the anchor row
columnint- the anchor column
rowsint- rows spanned
columnsint- columns spanned
Method details
contains
public boolean contains(int r, int c)Whether the range contains a cell.
Parameters
rint- the row
cint- the column
Returns
true when inside
equals
public boolean equals(Object o)Two merges are equal when they cover the same range.
Parameters
oObject- the other object
Returns
true when equal
hashCode
public int hashCode()A hash consistent with
equals.Returns
the hash