rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Data Access Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Member Functions
IliTableSelection Class Reference

Structure. More...

#include <ilviews/dataccess/tblsel.h>

Inherited by IliFloatingTableSelection.

Public Member Functions

 IliTableSelection (IliTableSelectionType t=IliSelectNone, IlInt r=0, IlInt c=0)
 This constructor initializes the table selection. More...
 
void addColumn (IlInt colno)
 Adds a column to the selection. More...
 
void addRange (IlInt from, IlInt to)
 Adds a range in the selection. More...
 
void addRow (IlInt rowno)
 Adds to the selection a row. More...
 
IlBoolean contains (const IliTableSelection &sel) const
 Returns IlTrue if a selection is included in the selection. More...
 
IlBoolean containsCell (IlInt rowno, IlInt colno) const
 Returns IlTrue if a cell is included in the selection. More...
 
IlBoolean containsColumn (IlInt colno) const
 Returns IlTrue if a column is included in the selection. More...
 
IlBoolean containsRange (IlInt from, IlInt to) const
 IlTrue if the range set of rows belongs to the selection. More...
 
IlBoolean containsRow (IlInt rowno) const
 Returns IlTrue if a row is included in the selection. More...
 
IlInt getColumn () const
 Returns the column position of the selected column or cell. More...
 
IlInt getColumnAt (IlInt idx) const
 Returns a column position from the selection. More...
 
IlInt getColumnsCount () const
 Returns the number of columns included in the selection. More...
 
void getRangeAt (IlInt idx, IlInt &from, IlInt &to) const
 Returns a range from the selection. More...
 
IlInt getRangesCount () const
 Returns the number of ranges included in the selection. More...
 
IlInt getRow () const
 Returns the row position of the selected row or cell. More...
 
IlInt getRowAt (IlInt idx) const
 Returns a row position from the selection. More...
 
IlInt getRowsCount () const
 Returns the number of rows included in the selection. More...
 
IliTableSelectionType getType () const
 Returns the selection type. More...
 
IlBoolean isCell () const
 Returns IlTrue if one cell is selected. More...
 
IlBoolean isColumn () const
 IlTrue if one column is selected. More...
 
IlBoolean isColumnOrCell () const
 Returns IlTrue if one column or one cell is selected. More...
 
IlBoolean isEmpty () const
 Returns IlTrue if the selection is empty. More...
 
IlBoolean isFull () const
 Returns IlTrue if the table-gadget is selected in its entirety. More...
 
IlBoolean isMulti () const
 Returns IlTrue if the selection contains more than one row or column. More...
 
IlBoolean isRow () const
 Returns IlTrue if one row is selected. More...
 
IlBoolean isRowOrCell () const
 Returns IlTrue if one row or one cell is selected. More...
 
void removeColumn (IlInt colno)
 Removes a column from the selection. More...
 
void removeRange (IlInt from, IlInt to)
 Removes a range from the selection. More...
 
void removeRow (IlInt rowno)
 Removes a row from the selection. More...
 
void setColumn (IlInt colno)
 Sets the column position of the selected column or cell. More...
 
void setRow (IlInt rowno)
 Sets the row position of the selected row or cell. More...
 
void setType (IliTableSelectionType type)
 Sets the selection type. More...
 

Detailed Description

Structure.

Library: dataccess

This class describes a selection in a table gadget.

See Also
IliTableGadget, IliTableSelectionType

Constructor & Destructor Documentation

IliTableSelection::IliTableSelection ( IliTableSelectionType  t = IliSelectNone,
IlInt  r = 0,
IlInt  c = 0 
)

This constructor initializes the table selection.

Parameters
tThe selection type.
rownoThe row position.
colnoThe column position.

Member Function Documentation

void IliTableSelection::addColumn ( IlInt  colno)

Adds a column to the selection.

Parameters
colnoThe column position in the table-gadget.
void IliTableSelection::addRange ( IlInt  from,
IlInt  to 
)

Adds a range in the selection.

This range designates either a set of rows or a set of columns (depending on whether the type of the selection is IliSelectRow or IliSelectColumn.)

Parameters
fromThe lower bound (inclusive) of the range.
toThe upper bound (inclusive) of the range.
void IliTableSelection::addRow ( IlInt  rowno)

Adds to the selection a row.

Parameters
rownoThe row position in the table-gadget.
IlBoolean IliTableSelection::contains ( const IliTableSelection sel) const

Returns IlTrue if a selection is included in the selection.

Parameters
selThe selection.
Returns
IlTrue if a selection is included in the selection.
IlBoolean IliTableSelection::containsCell ( IlInt  rowno,
IlInt  colno 
) const

Returns IlTrue if a cell is included in the selection.

This can happen if the type of the selection is IliSelectCell, IliSelectRow, IliSelectColumn, or IliSelectAll.

Parameters
rownoThe row position.
colnoThe column position.
Returns
IlTrue if a cell is included in the selection.
IlBoolean IliTableSelection::containsColumn ( IlInt  colno) const

Returns IlTrue if a column is included in the selection.

This can only happen if the type of the selection is IliSelectColumn or IliSelectAll.

Parameters
colnoThe column position.
Returns
IlTrue if a column is included in the selection.
IlBoolean IliTableSelection::containsRange ( IlInt  from,
IlInt  to 
) const

IlTrue if the range set of rows belongs to the selection.

Parameters
fromThe lower bound (inclusive) of the range.
toThe upper bound (inclusive) of the range.
Returns
IlTrue if the range set of rows belongs to the selection.
IlBoolean IliTableSelection::containsRow ( IlInt  rowno) const

Returns IlTrue if a row is included in the selection.

This can only happen if the type of the selection is IliSelectRow or IliSelectAll.

Parameters
rownoThe row position.
Returns
IlTrue if a row is included in the selection.
IlInt IliTableSelection::getColumn ( ) const

Returns the column position of the selected column or cell.

Returns
The position.
IlInt IliTableSelection::getColumnAt ( IlInt  idx) const

Returns a column position from the selection.

Parameters
idxThe index in the selection. The value is between 0 and getColumnsCount().
Returns
The column position.
IlInt IliTableSelection::getColumnsCount ( ) const

Returns the number of columns included in the selection.

Returns
The count.
void IliTableSelection::getRangeAt ( IlInt  idx,
IlInt from,
IlInt to 
) const

Returns a range from the selection.

Parameters
idxThe range index in the selection. The value is between 0 and getRangesCount().
fromThe lower bound (inclusive) of the range.
toThe upper bound (inclusive) of the range.
Returns
The range.
IlInt IliTableSelection::getRangesCount ( ) const

Returns the number of ranges included in the selection.

Returns
The count.
IlInt IliTableSelection::getRow ( ) const

Returns the row position of the selected row or cell.

Returns
The position.
IlInt IliTableSelection::getRowAt ( IlInt  idx) const

Returns a row position from the selection.

Parameters
idxThe index in the selection. The value is between 0 and getRowsCount().
Returns
The row position.
IlInt IliTableSelection::getRowsCount ( ) const

Returns the number of rows included in the selection.

Returns
The count.
IliTableSelectionType IliTableSelection::getType ( ) const

Returns the selection type.

Returns
The type.
IlBoolean IliTableSelection::isCell ( ) const

Returns IlTrue if one cell is selected.

Returns
IlTrue if one cell is selected. In this case, the selected cell is identified by the getRow and getColumn member functions.
IlBoolean IliTableSelection::isColumn ( ) const

IlTrue if one column is selected.

In this case, the selected column is identified by the getColumn member function.

Returns
IlTrue if one column is selected.
IlBoolean IliTableSelection::isColumnOrCell ( ) const

Returns IlTrue if one column or one cell is selected.

Returns
IlTrue if one column or one cell is selected.
IlBoolean IliTableSelection::isEmpty ( ) const

Returns IlTrue if the selection is empty.

Returns
IlTrue if the selection is empty.
IlBoolean IliTableSelection::isFull ( ) const

Returns IlTrue if the table-gadget is selected in its entirety.

Returns
IlTrue if the table-gadget is selected in its entirety.
IlBoolean IliTableSelection::isMulti ( ) const

Returns IlTrue if the selection contains more than one row or column.

Returns
IlTrue if the selection contains more than one row or column.
IlBoolean IliTableSelection::isRow ( ) const

Returns IlTrue if one row is selected.

In this case,the selected row is identified by the getRow member function.

Returns
IlTrue if one row is selected.
IlBoolean IliTableSelection::isRowOrCell ( ) const

Returns IlTrue if one row or one cell is selected.

Returns
IlTrue if one row or one cell is selected.
void IliTableSelection::removeColumn ( IlInt  colno)

Removes a column from the selection.

Parameters
colnoThe column position in the table-gadget.
void IliTableSelection::removeRange ( IlInt  from,
IlInt  to 
)

Removes a range from the selection.

Depending on whether the type of the selection is IliSelectRow or IliSelectColumn, this member function will remove from the selection all rows, (or all columns) whose position falls within the range.

Parameters
fromThe lower bound (inclusive) of the range.
toThe upper bound (inclusive) of the range.
void IliTableSelection::removeRow ( IlInt  rowno)

Removes a row from the selection.

Parameters
rownoThe row position in the table-gadget.
void IliTableSelection::setColumn ( IlInt  colno)

Sets the column position of the selected column or cell.

Parameters
colnoThe column position.
void IliTableSelection::setRow ( IlInt  rowno)

Sets the row position of the selected row or cell.

Parameters
rownoThe row position.
void IliTableSelection::setType ( IliTableSelectionType  type)

Sets the selection type.

Parameters
typeThe selection type.

© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.