com.sas.swing.visuals.tableview
Class TableFormatArea

com.sas.swing.visuals.tableview.TableFormatArea
All Implemented Interfaces:
com.sas.swing.visuals.tableview.TableFormatAreaInterface

public class TableFormatArea
implements com.sas.swing.visuals.tableview.TableFormatAreaInterface

Defines an area of columns and rows within a TableView. The startRow/Column must be > 0. The endRow/Column must be >= startRow/Column or == -1, where -1 means all rows/columns after the startRow/Column. The repeatRow/Column must be > 0 and represents every nth row/column between startRow/Column and endRow/Column. All attributes are 1-based.


Field Summary
static java.lang.String RB_KEY
           
 
Constructor Summary
TableFormatArea(int sr, int er, int rr, int sc, int ec, int rc)
           
 
Method Summary
 boolean areaMatches(int row, int column, java.lang.Object uniqueID)
          Checks to see if two FormatAreaInterface instances match.
 int getEndColumn()
          Returns the end column.
 int getEndRow()
          Returns the end row.
 int getRepeatColumn()
          Returns the repeat column.
 int getRepeatRow()
          Returns the repeat row.
 int getStartColumn()
          Returns the start column.
 int getStartRow()
          Returns the start row.
 void setEndColumn(int end)
          Set the end column.
 void setEndRow(int end)
          Set the end row.
 void setRepeatColumn(int repeat)
          Set the repeat column.
 void setRepeatRow(int repeat)
          Set the repeat row.
 void setStartColumn(int start)
          Set the start column.
 void setStartRow(int start)
          Set the start row.
 

Field Detail

RB_KEY

public static final java.lang.String RB_KEY
See Also:
Constant Field Values
Constructor Detail

TableFormatArea

public TableFormatArea(int sr,
                       int er,
                       int rr,
                       int sc,
                       int ec,
                       int rc)
Method Detail

getStartRow

public int getStartRow()
Returns the start row.

Returns:
the start row

setStartRow

public void setStartRow(int start)
Set the start row.

Parameters:
start - the start row

getEndRow

public int getEndRow()
Returns the end row.

Returns:
the end row

setEndRow

public void setEndRow(int end)
Set the end row.

Parameters:
end - the end row

getRepeatRow

public int getRepeatRow()
Returns the repeat row.

Returns:
the repeat row

setRepeatRow

public void setRepeatRow(int repeat)
Set the repeat row.

Parameters:
repeat - the repeat row

getStartColumn

public int getStartColumn()
Returns the start column.

Returns:
the start column

setStartColumn

public void setStartColumn(int start)
Set the start column.

Parameters:
start - the start column

getEndColumn

public int getEndColumn()
Returns the end column.

Returns:
the end column

setEndColumn

public void setEndColumn(int end)
Set the end column.

Parameters:
end - the end column

getRepeatColumn

public int getRepeatColumn()
Returns the repeat column.

Returns:
the repeat column

setRepeatColumn

public void setRepeatColumn(int repeat)
Set the repeat column.

Parameters:
start - the repeat column

areaMatches

public boolean areaMatches(int row,
                           int column,
                           java.lang.Object uniqueID)
Checks to see if two FormatAreaInterface instances match.

Specified by:
areaMatches in interface com.sas.swing.visuals.tableview.TableFormatAreaInterface
Parameters:
row - The row number (0-based) to match against
column - The column number (0-based) to match against
uniqueID - This is ignored by the TableFormatArea



Copyright © 2009 SAS Institute Inc. All Rights Reserved.