public class GXTableRow extends Object implements GXITableRow, Externalizable
Constructor and Description |
---|
GXTableRow() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
GXITableCell |
getItem(int columnIndex) |
GXITableCell |
getItem(String columnName) |
String |
getItemContent(int columnIndex) |
String |
getItemContent(String columnName) |
GXITableCell[] |
getItems() |
String[] |
getItemsContents() |
String |
getPrimaryKey() |
void |
readExternal(ObjectInput in) |
void |
removeItem(int columnIndex)
Removes the cell at the specified column index.
|
void |
removeItem(String columnName)
Removes the cell of the specified column name.
|
void |
setItem(int columnIndex,
GXITableCell item)
Sets a table cell at specified column index, and replaces the previous cell (if such existed).
|
void |
setItem(String columnName,
GXITableCell item)
Sets a table cell of the specified column name, and replaces the previous cell (if such existed).
|
void |
setItemContent(int columnIndex,
String content)
Sets the content of the cell in the specified column's index.
|
void |
setItemContent(String columnName,
String content)
Sets the content of the cell of the specified column's name.
|
void |
setPrimaryKey(String primaryKey) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public GXITableCell[] getItems()
getItems
in interface GXITableRow
public String[] getItemsContents()
getItemsContents
in interface GXITableRow
public GXITableCell getItem(int columnIndex)
getItem
in interface GXITableRow
columnIndex
- should range between 0 to columnCount - 1.public GXITableCell getItem(String columnName)
getItem
in interface GXITableRow
columnName
- column's name.public void setItem(int columnIndex, GXITableCell item)
GXITableRow
setItem
in interface GXITableRow
columnIndex
- the column's index. Should range between 0 to columnCount - 1.item
- the new cell.public void setItem(String columnName, GXITableCell item)
GXITableRow
setItem
in interface GXITableRow
columnName
- column's name.item
- the new cell.public String getItemContent(int columnIndex)
getItemContent
in interface GXITableRow
columnIndex
- the column's index. Should range between 0 to columnCount - 1.public String getItemContent(String columnName)
getItemContent
in interface GXITableRow
columnName
- column's name.public void setItemContent(int columnIndex, String content)
GXITableRow
setItemContent
in interface GXITableRow
columnIndex
- the column's index. Should range between 0 to columnCount - 1.content
- the new cell's content.public void setItemContent(String columnName, String content)
GXITableRow
setItemContent
in interface GXITableRow
columnName
- column's name.content
- the new cell's content.public String getPrimaryKey()
getPrimaryKey
in interface GXITableRow
GXITable.getPrimaryKey()
public void setPrimaryKey(String primaryKey)
public void removeItem(int columnIndex)
GXITableRow
removeItem
in interface GXITableRow
columnIndex
- the column's index. Should range between 0 to columnCount - 1.public void removeItem(String columnName)
GXITableRow
removeItem
in interface GXITableRow
columnName
- column's name.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
Copyright 2021 Software AG. All rights reserved. Use is subject to license terms.