CellSelector (Database)
Use the CellSelector
to
view a cell in a TableModel such as a result set returned by a Select or ProcedureCall
bean.
CellSelector Properties
- beanName
- Specifies the name of the CellSelector bean instance. It must follow standard naming
rules for beans. The default name is CellSelectorn, where n is the
number of CellSelector beans with default names; for example, the first default name is
CellSelector1.
- columnName
- Specifies the name of the column selected from the source TabelModel. The match on
column name is not case sensitive. If the specified column name is blank or null, the
selected column will be identified by columnNumber.
- columnNames
- An array containing the names of the columns that are currently selected.
- columnNumber
- The index of the column to be selected from the source TableModel. This column index
will only be used if the value of columnName is null or blank string.
- indexFromOne
- Whether the row and column indexes are assumed to index from one. This property should
be set to true where the selection row and/or column properties are connected to a bean
property that indexes from one. If set to false, indexing is from zero. The default is false.
- model
- The Java TableModel used as the source of the data for the selection.
- notificationType
- Specifies which data access property will be notified of changes by a propertyChange event. Selectors
are able to convert source data into a variety of data types, each of which has a
corresponding bound property. All of these properties are theoretically altered when the
selector data source or selection criteria are changed. However, it would be very
inefficient to generate property change events for all these properties, so the property
of interest may be specified, limiting property change events to a single property. By
default, no property change events are generated.
- rowNumber
- The index of the row to be selected from the source TableModel.
The following are data access properties used by CellSelector bean for data conversion.
- BigDecimal
- Value of the cell as a java.math.BigDecimal data type.
- BigInteger
- Value of the cell as a java.math.BigInteger data type.
- boolean
- Value of the cell as a boolean data type.
- byte
- Value of the cell as a byte data type.
- byte[]
- Value of the cell as a byte array data type.
- Date
- Value of the cell as a java.sql.Date data type.
- double
- Value of the cell as a double data type.
- float
- Value of the cell as a float data type.
- int
- Value of the cell as an int data type.
- long
- Value of the cell as a long data type.
- Object
- Value of the cell as an Object data type.
- short
- Value of the cell as a short data type.
- String
- Value of the cell as a String data type.
- Time
- Value of the cell as a java.sql.Time data type.
- Timestamp
- Value of the cell as a java.sql.Timestamp data type.

Editing CellSelector Bean Properties
Using Selector Bean Data Access Properties

CellRangeSelector
ColumnSelector
RowSelector
