Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jvnet.substance
Class SubstanceTableUI.TableCellId

    java.lang.Object
      org.jvnet.substance.SubstanceTableUI.TableCellId

All Implemented Interfaces:
  java.lang.Comparable

Enclosing class:
  SubstanceTableUI

    public static class SubstanceTableUI.TableCellId

extends java.lang.Object
implements java.lang.Comparable

ID of a single table cell.

Author:
  Kirill Grouchnikov

Field Summary
`protected int` | `column` Cell column.
`protected boolean` | `isExactComparison` Indicates whether the comparison (`equals(Object)`) should return `false` when it is passed either `SubstanceTableUI.TableColumnId` or `SubstanceTableUI.TableRowId`.
`protected int` | `row` Cell row.

Constructor Summary
`SubstanceTableUI.TableCellId(int row, int column)` Creates a new cell ID.

Method Summary
`int` | `compareTo(java.lang.Object o)`
`boolean` | `equals(java.lang.Object obj)`
`int` | `hashCode()`
`void` | `setExactComparison(boolean isExactComparison)` Sets the comparison flag.
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Field Detail

### row

    protected int row

  Cell row.

### column

    protected int column

  Cell column.

### isExactComparison

    protected boolean isExactComparison

  Indicates whether the comparison (`equals(Object)`) should return `false` when it is passed either `SubstanceTableUI.TableColumnId` or `SubstanceTableUI.TableRowId`.

Constructor Detail

### SubstanceTableUI.TableCellId

    public SubstanceTableUI.TableCellId(int row,
                                        int column)

  Creates a new cell ID.

  Parameters:
    `row` - Cell row.
    `column` - Cell column.

Method Detail

### setExactComparison

    public void setExactComparison(boolean isExactComparison)

  Sets the comparison flag.

  Parameters:
    `isExactComparison` - If `true`, the (`equals(Object)`) will return `false` when it is passed either `SubstanceTableUI.TableColumnId` or `SubstanceTableUI.TableRowId`.

### compareTo

    public int compareTo(java.lang.Object o)

  Specified by:
    `compareTo` in interface `java.lang.Comparable`

### equals

    public boolean equals(java.lang.Object obj)

  Overrides:
    `equals` in class `java.lang.Object`

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `java.lang.Object`

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD