|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.content.TableViewRowEditor
public class TableViewRowEditor
Default table view row editor.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TableView.RowEditor |
---|
TableView.RowEditor.RowEditorListenerList |
Constructor Summary | |
---|---|
TableViewRowEditor()
|
Method Summary | |
---|---|
void |
cancelEdit()
Cancels an edit that is in progress by reverting any edits the user has made. |
void |
editRow(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. |
CardPaneSkin.SelectionChangeEffect |
getEditEffect()
Gets the effect that this editor uses when changing from a read-only row to an editable row. |
int |
getEditEffectDuration()
Gets the effect duration that this editor uses when changing from a read-only row to an editable row. |
ListenerList<TableView.RowEditorListener> |
getRowEditorListeners()
Gets the row editor listener list. |
boolean |
isEditing()
Tells whether or not an edit is currently in progress. |
boolean |
saveChanges()
Saves an edit that is in progress by updating the appropriate data object. |
void |
setEditEffect(CardPaneSkin.SelectionChangeEffect editEffect)
Sets the effect that this editor uses when changing from a read-only row to an editable row. |
void |
setEditEffect(String editEffect)
Sets the effect that this editor uses when changing from a read-only row to an editable row. |
void |
setEditEffectDuration(int effectDuration)
Sets the effect duration that this editor uses when changing from a read-only row to an editable row. |
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 CardPaneSkin.SelectionChangeEffect getEditEffect()
public void setEditEffect(CardPaneSkin.SelectionChangeEffect editEffect)
editEffect
- The edit effect, or null to not use an effect.public void setEditEffect(String editEffect)
editEffect
- The edit effect, or null to not use an effect.setEditEffect(CardPaneSkin.SelectionChangeEffect)
public int getEditEffectDuration()
public void setEditEffectDuration(int effectDuration)
effectDuration
- Effect duration in millisecondspublic void editRow(TableView tableView, int rowIndex, int columnIndex)
editRow
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()
isEditing
in interface Editor
public boolean saveChanges()
saveChanges
in interface Editor
public void cancelEdit()
cancelEdit
in interface Editor
public ListenerList<TableView.RowEditorListener> getRowEditorListeners()
getRowEditorListeners
in interface TableView.RowEditor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |