|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.model.ColumnView
public class ColumnView
A ColumnView
contains all column names that should be shown.
IRowDefinition
Constructor Summary | |
---|---|
ColumnView(ColumnView pColumnView)
Constructs a new ColumnView with the same columns as the given column view. |
|
ColumnView(IDataRow pDataRow)
Constructs a new ColumnView for all columns of the given data row. |
|
ColumnView(IRowDefinition pRowDefinition)
Constructs a new ColumnView for all columns of the given row definition. |
|
ColumnView(String... pColumnNames)
Constructs a new ColumnView. |
Method Summary | |
---|---|
void |
addColumnNames(int pIndex,
String... pColumnNames)
Adds the column names at the specific index. |
void |
addColumnNames(String... pColumnNames)
Adds the column names at the end. |
void |
addRowDefinition(IRowDefinition pRowDefinition)
Adds an IRowDefinition. |
int |
getColumnCount()
Returns the column count of this IRowDefintion . |
String |
getColumnName(int pIndex)
Returns the column name for the given index. |
int |
getColumnNameIndex(String pColumnName)
Returns the index of the column name. |
String[] |
getColumnNames()
Returns the String[] of all column names. |
IRowDefinition[] |
getRowDefinitions()
Gets all IRowDefinition that are currently added. |
void |
moveColumnName(int pFromIndex,
int pToIndex)
Moves the column name from an index to an index. |
void |
notifyRepaint()
Invokes for each IControl the notifyRepaint() method. |
void |
removeColumnName(int pIndex)
Removes the column name at the specific index. |
void |
removeColumnNames(String... pColumnNames)
Removes the column names. |
void |
removeRowDefinition(IRowDefinition pRowDefinition)
Removes an IRowDefinition. |
void |
setColumnNames(String... pColumnNames)
Sets the String[] of all column names. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColumnView(String... pColumnNames)
pColumnNames
- the column names.public ColumnView(ColumnView pColumnView)
pColumnView
- the column view.public ColumnView(IRowDefinition pRowDefinition)
pRowDefinition
- the column view.public ColumnView(IDataRow pDataRow)
pDataRow
- the column view.Method Detail |
---|
public int getColumnCount()
IRowDefintion
.
IRowDefintion
.public String getColumnName(int pIndex)
pIndex
- the index.
public int getColumnNameIndex(String pColumnName)
pColumnName
- name of the column.
public String[] getColumnNames()
public void setColumnNames(String... pColumnNames)
pColumnNames
- the String[] of all column names.public void addColumnNames(String... pColumnNames)
pColumnNames
- the column names.public void addColumnNames(int pIndex, String... pColumnNames)
pIndex
- the index.pColumnNames
- the column names.public void removeColumnNames(String... pColumnNames)
pColumnNames
- the column names.public void removeColumnName(int pIndex)
pIndex
- the index.public void moveColumnName(int pFromIndex, int pToIndex)
pFromIndex
- the index of the column name to be moved.pToIndex
- the index where the column name should be moved to.public void addRowDefinition(IRowDefinition pRowDefinition)
pRowDefinition
- the IRowDefinition to addpublic void removeRowDefinition(IRowDefinition pRowDefinition)
pRowDefinition
- the IRowDefinition to removepublic IRowDefinition[] getRowDefinitions()
public void notifyRepaint()
IControl
the notifyRepaint()
method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |