Class RowColLocation

java.lang.Object
docking.widgets.fieldpanel.support.RowColLocation
Direct Known Subclasses:
DefaultRowColLocation

public class RowColLocation extends Object
Simple class to return a row, column location.
  • Field Summary

    Fields
    Change
    Modifier and Type
    Field
    Description
    protected int
     
    protected int
     
  • Constructor Summary

    Constructors
    Change
    Constructor
    Description
    RowColLocation(int row, int col)
    Constructs a new RowColLocation with the given row and column.
    RowColLocation(int row, int col, boolean isHidden)
    Constructs a new RowColLocation with the given row and column.
  • Method Summary

    Change
    Modifier and Type
    Method
    Description
    int
    col()
     
    boolean
    equals(Object object)
     
    int
     
    boolean
    Returns true if this location is hidden, such as when the location is replaced by an ellipsis in the UI.
    int
    row()
     
     
    withCol(int newColumn)
     
    withRow(int newRow)
     

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • row

      protected int row
    • col

      protected int col
  • Constructor Details

    • RowColLocation

      public RowColLocation(int row, int col)
      Constructs a new RowColLocation with the given row and column.
      Parameters:
      row - the row location
      col - the column location
    • RowColLocation

      public RowColLocation(int row, int col, boolean isHidden)
      Constructs a new RowColLocation with the given row and column.
      Parameters:
      row - the row location
      col - the column location
      isHidden - true if the given location is replaced with ellipsis in the UI
  • Method Details

    • row

      public int row()
    • col

      public int col()
    • isHidden NEW

      public boolean isHidden()
      Returns true if this location is hidden, such as when the location is replaced by an ellipsis in the UI.
      Returns:
      true if this location is hidden, such as when the location is replaced by an ellipsis in the UI
    • withCol

      public RowColLocation withCol(int newColumn)
    • withRow

      public RowColLocation withRow(int newRow)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object