|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.bus.bean.Bean
net.sf.doolin.gui.field.table.Column
public class Column
Column definition.
| Constructor Summary | |
|---|---|
Column()
|
|
| Method Summary | |
|---|---|
Column |
copy()
Creates a copy of this column. |
static List<Column> |
filter(List<Column> allColumns)
Filter. |
Class<?> |
getColumnClass()
Class for the column. |
ColumnUpdatePolicy |
getColumnUpdatePolicy()
Gets the column update policy. |
Comparator<?> |
getComparator()
Returns the comparator which is used by this column. |
ColumnEditable<Object> |
getEditable()
Gets the editable. |
TableCellEditor |
getEditor()
Gets the editor. |
String |
getName()
Gets the name. |
GUIAction |
getOnEditAction()
Gets the on edit action. |
TableCellRenderer |
getRenderer()
Gets the renderer. |
String |
getTitleExpression()
Gets the title expression. |
String |
getType()
Gets the type. |
ColumnValueFactory |
getValueFactory()
Gets the value factory. |
ValueUnit |
getWidth()
Gets the width. |
boolean |
isEditable(Object baseObject)
Returns if the object is editable or not for this column. |
boolean |
isRequired()
Checks if the display of this column is required or not. |
boolean |
isResizeable()
Checks if is resizeable. |
boolean |
isVisible()
Checks if is visible. |
void |
setColumnUpdatePolicy(ColumnUpdatePolicy columnUpdatePolicy)
Update policy when the column cell is edited |
void |
setEditable(ColumnEditable<Object> editable)
Defines if the column is editable |
void |
setEditor(TableCellEditor editor)
Editor for the column |
void |
setName(String name)
Name of the column |
void |
setOnEditAction(GUIAction onEditAction)
Action to execute when an item is edited |
void |
setRenderer(TableCellRenderer renderer)
Renderer for the column |
void |
setRequired(boolean required)
Sets if the display of this column is required or not. |
void |
setResizeable(boolean resizeable)
Defines if the column can be resized |
void |
setTitleExpression(String titleExpression)
Sets the title expression. |
void |
setType(String type)
Sets the type for the column. |
void |
setValueFactory(ColumnValueFactory valueFactory)
Sets the factory for the value of the column. |
void |
setVisible(boolean visible)
Sets the initial visibility of the column. |
void |
setWidth(ValueUnit width)
Sets the default width of the column. |
String |
toString()
|
| Methods inherited from class net.sf.doolin.bus.bean.Bean |
|---|
getBeanNotificationSupport, getParentBean, notify, setParentBean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Column()
| Method Detail |
|---|
public static List<Column> filter(List<Column> allColumns)
allColumns - the all columns
public Column copy()
public Class<?> getColumnClass()
public ColumnUpdatePolicy getColumnUpdatePolicy()
public Comparator<?> getComparator()
ColumnValueFactory.getComparator()public ColumnEditable<Object> getEditable()
public TableCellEditor getEditor()
public String getName()
public GUIAction getOnEditAction()
public TableCellRenderer getRenderer()
public String getTitleExpression()
public String getType()
public ColumnValueFactory getValueFactory()
public ValueUnit getWidth()
public boolean isEditable(Object baseObject)
baseObject - Object to edit
true if this object is editable or notColumnEditable.isEditable(Column, Object)public boolean isRequired()
true if this column is required to be displayedpublic boolean isResizeable()
public boolean isVisible()
public void setColumnUpdatePolicy(ColumnUpdatePolicy columnUpdatePolicy)
columnUpdatePolicy - the new column update policypublic void setEditable(ColumnEditable<Object> editable)
editable - the new editablepublic void setEditor(TableCellEditor editor)
editor - the new editorpublic void setName(String name)
name - the new namepublic void setOnEditAction(GUIAction onEditAction)
onEditAction - the on edit actionpublic void setRenderer(TableCellRenderer renderer)
renderer - the new rendererpublic void setRequired(boolean required)
true by default.
required - true if this column is required to be displayedpublic void setResizeable(boolean resizeable)
resizeable - the new resizeablepublic void setTitleExpression(String titleExpression)
titleExpression - the new title expressionpublic void setType(String type)
type - the new typepublic void setValueFactory(ColumnValueFactory valueFactory)
valueFactory - the new value factorypublic void setVisible(boolean visible)
visible - the new visiblepublic void setWidth(ValueUnit width)
width - the new widthpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||