|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RowHandler
A RowHandler
is called whenever the user wants to add, modify,
or remove a row from a ModifiableTable
. It is responsible for
getting new data from the user, and has the power to veto a removal.
AbstractRowHandler
Method Summary | |
---|---|
boolean |
canModifyRow(int row)
Called when the user selects a row in the table. |
boolean |
canRemoveRow(int row)
Called when the user selects a row in the table. |
java.lang.Object[] |
getNewRowInfo(java.lang.Object[] oldData)
Called when the user chooses to add or modify a row in the table. |
void |
updateUI()
If this row handler has any Swing components/windows in it, this method will update their UI's. |
Method Detail |
---|
boolean canModifyRow(int row)
false
, the "Modify" button is disabled.
row
- The row that might be modified.
canRemoveRow(int)
boolean canRemoveRow(int row)
false
, then the "Remove" button is disabled.
row
- The row that might be removed.
canModifyRow(int)
java.lang.Object[] getNewRowInfo(java.lang.Object[] oldData)
oldData
- The old values of the cells in this row. If the user
is adding a new row, this value is null
.
null
.void updateUI()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |