|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.gui.table.ColumnDescription
public class ColumnDescription
This class represents the description of a column within a table, i.e. it defines the properties for a column like its name or if the column is visible by default. It depends on the table implementation if all properties are interpreted.
| Constructor Summary | |
|---|---|
ColumnDescription(String id,
Object name)
Creates a new column description. |
|
ColumnDescription(String id,
Object name,
String description,
boolean visible,
boolean editable,
boolean edit)
Creates a new column description. |
|
| Method Summary | |
|---|---|
String |
getDescription()
Returns the description. |
String |
getId()
Returns the id. |
Object |
getName()
Returns the name. |
boolean |
isEdit()
Return true if this column can be edited, false otherwise. |
boolean |
isEditable()
Returns true if direct editing is possible for this column, false otherwise. |
boolean |
isFiltered()
Returns true if this column is used in a filter. |
boolean |
isVisible()
Returns true if this column should be visible, false otherwise. |
void |
setDescription(String description)
Sets the description. |
void |
setEdit(boolean edit)
Sets if this column can be edited. |
void |
setEditable(boolean editable)
Sets if direct editing should be possible for this column. |
void |
setFiltered(boolean filtered)
|
void |
setId(String id)
Sets the id. |
void |
setName(Object name)
Sets the name. |
void |
setVisible(boolean visible)
Sets if this column will be visible. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnDescription(String id,
Object name)
id - the id of the column for referencing itname - the name for showing it in table header and column picker
public ColumnDescription(String id,
Object name,
String description,
boolean visible,
boolean editable,
boolean edit)
id - the id of the column for referencing itname - the name for showing it in table header and column pickerdescription - the description which will be used as tooltip text in the column pickervisible - if true the column is visible by default, otherwise it is invisibleeditable - if true the column allows direct editing, otherwise notedit - if true the column can be edited directly, otherwise not| Method Detail |
|---|
public void setId(String id)
id - the id to setpublic String getId()
public void setName(Object name)
name - the name to setpublic Object getName()
public void setDescription(String description)
description - the description to setpublic String getDescription()
public void setVisible(boolean visible)
visible - pass true if the column should be visible, false otherwisepublic boolean isVisible()
public boolean isFiltered()
public void setFiltered(boolean filtered)
public void setEditable(boolean editable)
editable - pass ture if editing should be possible, false otherwisepublic boolean isEditable()
public void setEdit(boolean edit)
edit - pass true if this column can be edited, false otherwisepublic boolean isEdit()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||