|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.content.TableViewRowEditor
public class TableViewRowEditor
Default table view row editor.
Constructor Summary | |
---|---|
TableViewRowEditor()
Creates a new TableViewRowEditor. |
Method Summary | |
---|---|
void |
cancel()
Cancels an edit that is in progress by reverting any edits the user has made. |
void |
edit(TableView tableView,
int rowIndex,
int columnIndex)
Notifies the editor that editing should begin. |
Dictionary<String,Component> |
getCellEditors()
Gets this row editor's cell editor dictionary. |
boolean |
isEditing()
Tells whether or not an edit is currently in progress. |
void |
save()
Saves an edit that is in progress by updating the appropriate data object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableViewRowEditor()
Method Detail |
---|
public Dictionary<String,Component> getCellEditors()
This row editor uses data binding to populate the cell editor components and to get the data back out of those components, so it is the caller's responsibility to set up the data binding keys in each component they specify in this dictionary. The data binding key should equal the column name that the cell editor serves.
public void edit(TableView tableView, int rowIndex, int columnIndex)
TableView.RowEditor
edit
in interface TableView.RowEditor
tableView
- The table viewrowIndex
- The row index of the cell to editcolumnIndex
- The column index of the cell to editTableView.setRowEditor(RowEditor)
public boolean isEditing()
Editor
isEditing
in interface Editor
public void save()
Editor
save
in interface Editor
public void cancel()
Editor
cancel
in interface Editor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |