public abstract class GXAbstractTable extends Object implements GXITable, Externalizable
| Constructor and Description |
|---|
GXAbstractTable() |
GXAbstractTable(String name) |
GXAbstractTable(String name,
GXIScreen screen)
Creates a new table with all the multiple application fields in the screen
as the table's columns.
|
GXAbstractTable(String name,
GXIScreenCollection screens)
Creates a new table with all the multiple application fields in all the screens
in the screen collection as the table's columns.
|
GXAbstractTable(String name,
String[] columnsNames) |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(GXITableColumn column)
Adds a column at the end of the table.
|
void |
addColumn(String column)
Creates a new table column of the specified name and adds it at the end of the table.
|
void |
addColumns(String[] columns)
Creates new table columns of the specified names and adds them at the end of the table,
according to their order in the names array.
|
void |
createTable(GXIScreen screen) |
void |
createTable(GXIScreenCollection screenCollection,
GXVariables variables)
Creates a table based on Base Object screens and variables and on the table's columns schema.
|
boolean |
equals(Object obj) |
GXITableColumnCollection |
getColumns() |
GXRectangle |
getCornersCoordinates() |
GXRectangle |
getHeaderCoordinates() |
String |
getName() |
GXITableRow |
getNewRow()
Used to programmatically add a new row to the table.
|
GXITableColumn[] |
getPrimaryKey()
The table's primary key is based on one or more columns.
|
GXITableRowCollection |
getRows() |
void |
readExternal(ObjectInput in) |
void |
removeColumn(int columnIndex)
Removes the column at the specified index.
|
void |
removeColumn(String columnName)
Removes the column of the specified name.
|
void |
setCornersCoordinates(GXRectangle corners) |
void |
setHeaderCoordinates(GXRectangle header) |
void |
setName(String name) |
void |
setPrimaryKey(GXITableColumn primaryKey)
Sets one table column as the primary key.
|
void |
setPrimaryKey(GXITableColumn[] primaryKey)
Sets the columns that compose the table's primary key.
|
void |
sort(int[] columnIndices,
boolean[] isAscending)
Sorts table rows according to specified columns indices.
|
void |
sort(int columnIndex,
boolean isAscending)
Sorts table rows according to specified column index.
|
void |
sort(String[] columnNames,
boolean[] isAscending)
Sorts table rows according to specified column names.
|
void |
sort(String columnName,
boolean isAscending)
Sorts table rows according to specified column name.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
getClass, hashCode, notify, notifyAll, wait, wait, waitcreateTablepublic GXAbstractTable(String name)
public GXAbstractTable()
public GXAbstractTable(String name, GXIScreenCollection screens)
public void createTable(GXIScreen screen) throws GXColumnNotFoundException
createTable in interface GXITableGXColumnNotFoundExceptionGXITable.createTable(GXIScreenCollection, GXVariables)public void createTable(GXIScreenCollection screenCollection, GXVariables variables) throws GXColumnNotFoundException
GXITablecreateTable in interface GXITablescreenCollection - a collection of screen(s).variables - path variables.GXColumnNotFoundException - when the field or variable associated to the column
is not found in the input.public void removeColumn(int columnIndex)
GXITableremoveColumn in interface GXITablecolumnIndex - column index to remove, should range between 0 to columnCount - 1.public void removeColumn(String columnName)
GXITableremoveColumn in interface GXITablecolumnName - column name to remove.public void sort(String[] columnNames, boolean[] isAscending)
GXITablepublic void sort(String columnName, boolean isAscending)
GXITablepublic void sort(int[] columnIndices,
boolean[] isAscending)
GXITablepublic void sort(int columnIndex,
boolean isAscending)
GXITablepublic String getName()
public void setName(String name)
public GXITableColumnCollection getColumns()
getColumns in interface GXITablepublic void addColumn(GXITableColumn column)
GXITablepublic void addColumn(String column)
GXITablepublic void addColumns(String[] columns)
GXITableaddColumns in interface GXITablecolumns - names of the column to create and add.public GXITableRowCollection getRows()
public GXITableRow getNewRow()
GXITablepublic GXITableColumn[] getPrimaryKey()
GXITablegetPrimaryKey in interface GXITablepublic void setPrimaryKey(GXITableColumn[] primaryKey)
GXITablesetPrimaryKey in interface GXITableprimaryKey - the columns that compose the primary key.GXITable.getPrimaryKey()public void setPrimaryKey(GXITableColumn primaryKey)
GXITablesetPrimaryKey in interface GXITableprimaryKey - the table column to serve as the primary key.GXITable.getPrimaryKey()public void setCornersCoordinates(GXRectangle corners)
public void setHeaderCoordinates(GXRectangle header)
public GXRectangle getCornersCoordinates()
public GXRectangle getHeaderCoordinates()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright 2022 Software AG. All rights reserved. Use is subject to license terms.