|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silvermindsoftware.hitch.binding.AbstractBindingCreator<JTable>
com.silvermindsoftware.hitch.binding.components.TableBinding
public class TableBinding
This class creates bindings for tables.
| Field Summary | |
|---|---|
protected Class<?>[] |
m_columnClasses
The value classes for each column. |
protected boolean[] |
m_columnEditable
Is column editable? |
protected String[] |
m_columnLabels
The column labels. |
protected String[] |
m_propertyNames
Which property to show in the table. |
| Fields inherited from class com.silvermindsoftware.hitch.binding.AbstractBindingCreator |
|---|
m_updateStrategy |
| Constructor Summary | |
|---|---|
TableBinding(String[] propertyNames,
String[] columnLabels)
|
|
TableBinding(String[] propertyNames,
String[] columnLabels,
Class<?>[] columnClasses)
|
|
TableBinding(String[] propertyNames,
String[] columnLabels,
Class<?>[] columnClasses,
boolean[] columnEditable)
|
|
| Method Summary | |
|---|---|
void |
addValidation(JTable formComponent)
Add validation capability. |
org.jdesktop.beansbinding.AutoBinding |
createBinding(Object object,
JTable formComponent)
Create the concrete binding. |
| Methods inherited from class com.silvermindsoftware.hitch.binding.AbstractBindingCreator |
|---|
getUpdateStrategy, setUpdateStrategy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String[] m_propertyNames
protected String[] m_columnLabels
protected Class<?>[] m_columnClasses
protected boolean[] m_columnEditable
| Constructor Detail |
|---|
public TableBinding(String[] propertyNames,
String[] columnLabels)
propertyNames - which property to show in the tablecolumnLabels - the column labels
public TableBinding(String[] propertyNames,
String[] columnLabels,
Class<?>[] columnClasses)
propertyNames - which property to show in the tablecolumnLabels - the column labelscolumnClasses - the value classes for each column
public TableBinding(String[] propertyNames,
String[] columnLabels,
Class<?>[] columnClasses,
boolean[] columnEditable)
propertyNames - which property to show in the tablecolumnLabels - the column labelscolumnClasses - the value classes for each columncolumnEditable - which properties are editable| Method Detail |
|---|
public org.jdesktop.beansbinding.AutoBinding createBinding(Object object,
JTable formComponent)
object - the object to bindformComponent - the widget to bound to
public void addValidation(JTable formComponent)
formComponent - the widget showing the values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||