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, wait
createTable
public GXAbstractTable(String name)
public GXAbstractTable()
public GXAbstractTable(String name, GXIScreenCollection screens)
public void createTable(GXIScreen screen) throws GXColumnNotFoundException
createTable
in interface GXITable
GXColumnNotFoundException
GXITable.createTable(GXIScreenCollection, GXVariables)
public void createTable(GXIScreenCollection screenCollection, GXVariables variables) throws GXColumnNotFoundException
GXITable
createTable
in interface GXITable
screenCollection
- 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)
GXITable
removeColumn
in interface GXITable
columnIndex
- column index to remove, should range between 0 to columnCount - 1.public void removeColumn(String columnName)
GXITable
removeColumn
in interface GXITable
columnName
- column name to remove.public void sort(String[] columnNames, boolean[] isAscending)
GXITable
public void sort(String columnName, boolean isAscending)
GXITable
public void sort(int[] columnIndices, boolean[] isAscending)
GXITable
public void sort(int columnIndex, boolean isAscending)
GXITable
public String getName()
public void setName(String name)
public GXITableColumnCollection getColumns()
getColumns
in interface GXITable
public void addColumn(GXITableColumn column)
GXITable
public void addColumn(String column)
GXITable
public void addColumns(String[] columns)
GXITable
addColumns
in interface GXITable
columns
- names of the column to create and add.public GXITableRowCollection getRows()
public GXITableRow getNewRow()
GXITable
public GXITableColumn[] getPrimaryKey()
GXITable
getPrimaryKey
in interface GXITable
public void setPrimaryKey(GXITableColumn[] primaryKey)
GXITable
setPrimaryKey
in interface GXITable
primaryKey
- the columns that compose the primary key.GXITable.getPrimaryKey()
public void setPrimaryKey(GXITableColumn primaryKey)
GXITable
setPrimaryKey
in interface GXITable
primaryKey
- 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 Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright 2021 Software AG. All rights reserved. Use is subject to license terms.