|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(java.lang.String id,
java.lang.Object name)
Creates a new column description. |
|
ColumnDescription(java.lang.String id,
java.lang.Object name,
java.lang.String description,
boolean visible,
boolean editable,
boolean edit)
Creates a new column description. |
Method Summary | |
---|---|
protected java.lang.Object |
clone()
|
java.lang.String |
getDescription()
Returns the description. |
java.lang.String |
getId()
Returns the id. |
java.lang.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(java.lang.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(java.lang.String id)
Sets the id. |
void |
setName(java.lang.Object name)
Sets the name. |
void |
setVisible(boolean visible)
Sets if this column will be visible. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ColumnDescription(java.lang.String id, java.lang.Object name)
id
- the id of the column for referencing itname
- the name for showing it in table header and column pickerpublic ColumnDescription(java.lang.String id, java.lang.Object name, java.lang.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 notMethod Detail |
---|
public void setId(java.lang.String id)
id
- the id to setpublic java.lang.String getId()
public void setName(java.lang.Object name)
name
- the name to setpublic java.lang.Object getName()
public void setDescription(java.lang.String description)
description
- the description to setpublic java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |