This class manages values which are sent as tables in a command.
Constructor.
Argument | Type | Default | Description |
command | AFXCommand | Host command. | |
name | String | Keyword name. | |
isRequired | Bool | False | True if this keyword is a required argument. |
minLength | Int | 0 | Minimum (and default) row length. |
maxLength | Int | -1 | Maximum row length (-1 => unlimited). |
opts | Int | 0 | Options. |
Returns True if the two table element values compare equal (index not used).
Argument | Type | Default | Description |
index | Int | Element index (not used). | |
a | String | First value. | |
b | String | Second value. |
Returns the style of the column elements. Will never return AFXTABLE_STYLE_DEFAULT!
Argument | Type | Default | Description |
index | Int | Column index. |
Returns the type of the column elements. Will never return AFXTABLE_TYPE_DEFAULT!
Argument | Type | Default | Description |
index | Int | Column index. |
Returns the formatted value of the table element, suitable for placing in a command. If the element has AFXTABLE_EVALUATE style, and its contents are invalid, an exception will be thrown.
Argument | Type | Default | Description |
row | Int | Row index. | |
column | Int | Column index. |
Returns the number of columns in the row.
Argument | Type | Default | Description |
row | Int | Row index. |
Returns a string with the contents of a table row.
Argument | Type | Default | Description |
row | Int | Row index. |
Returns the name of the table keyword type.
Implements AFXKeyword.
Reimplemented in AFXTableKeyword.
Returns the value of a table element.
Argument | Type | Default | Description |
row | Int | Row index. | |
column | Int | Column index. |
Returns the keyword's value as a float; returns False upon failure.
Returns the formatted string that represents the current keyword value in a command.
Implements AFXKeyword.
Returns the element value substituted for blank for the column.
Argument | Type | Default | Description |
column | Int | Column index. |
Returns a string containing values of the tuple elements. as entered by the user.
Returns a string with values substituted for blanks for all table columns.
Inserts columns starting at the given index.
Argument | Type | Default | Description |
index | Int | Starting index. | |
numColumns | Int | Number of columns to insert. |
Inserts rows starting at the given index.
Argument | Type | Default | Description |
index | Int | Starting index. | |
numRows | Int | Number of rows to insert. |
Returns True if the keyword value differs from its previous value.
Implements AFXKeyword.
Removes columns starting at the given index.
Argument | Type | Default | Description |
index | Int | Starting index. | |
numColumns | Int | Number of columns to remove. |
Removes rows starting at the given index.
Argument | Type | Default | Description |
index | Int | Starting index. | |
numRows | Int | Number of rows to remove. |
Sets the style of the column elements.
Argument | Type | Default | Description |
index | Int | Column index. | |
style | Int | New column style. |
Sets the type of the column elements.
Argument | Type | Default | Description |
index | Int | Column index. | |
type | Int | New column type. |
Sets the default style for the table elements.
Argument | Type | Default | Description |
style | Int | New default style. |
Sets the default type for table elements.
Argument | Type | Default | Description |
type | Int | New default type. |
Sets the default values for this table.
Argument | Type | Default | Description |
values | String | Sequence string with default values. |
Sets the maximum number of columns.
Argument | Type | Default | Description |
length | Int | New maximum number of columns, or -1 for unbounded. |
Sets the minimum number of columns.
Argument | Type | Default | Description |
length | Int | New minimum length. |
Sets the allowable range for the number of columns.
Argument | Type | Default | Description |
minLength | Int | New minimum number of columns. | |
maxLength | Int | New maximum number of columns, or -1 for unbounded. |
Sets the contents of a table row.
Argument | Type | Default | Description |
row | Int | Row index. | |
seq | String | Sequence with elements. |
Sets the value of a table element.
Argument | Type | Default | Description |
row | Int | Row index. | |
column | Int | Column index. | |
value | String | New value. |
Sets the element value substituted for blank for the column.
Argument | Type | Default | Description |
column | Int | Column index. | |
value | String | New value. |
Sets all values for the table elements.
Argument | Type | Default | Description |
values | String | Table string with new values. |
Sets the values substituted for blanks for all table columns.
Argument | Type | Default | Description |
values | String | String containing comma-separated values. |
Sets the keyword value to its default.
Argument | Type | Default | Description |
ignoreUnspecified | Bool | False | Should ignore if default is an unspecified value. |
Sets the keyword value to its previous value.
Implements AFXKeyword.
Sets the keyword's previous value to its current value.
Implements AFXKeyword.
Message ID's.
ID_TABLE | ID for AFXTable widgets. |
ID_VALUE | ID for widgets exchanging array strings. |
ID_PRINTSNIPPET | For debugging. |
Flags for table options.
AFXTABLE_TYPE_ANY | Any type is accepted. |
AFXTABLE_TYPE_DEFAULT | Column type is the same as the table default type. |
AFXTABLE_TYPE_INT | Column stores integer numbers. |
AFXTABLE_TYPE_FLOAT | Column stores floating-point numbers. |
AFXTABLE_TYPE_STRING | Column stores string values. |
AFXTABLE_TYPE_BOOL | Column stores True or False. |
AFXTABLE_TYPE_MASK | Mask for column types. |
AFXTABLE_ALLOW_EMPTY | Allow empty values for the column elements. |
AFXTABLE_DEFAULT_IF_EMPTY | Always substitute the default for empty values. |
AFXTABLE_EVALUATE | Evaluate integer and float elements. |
AFXTABLE_STYLE_DEFAULT | Use table default column style. |
AFXTABLE_STYLE_MASK | Mask for column styles. |