Class ReloadTableAction<T>
- java.lang.Object
-
- javax.swing.AbstractAction
-
- io.github.jonestimd.swing.action.LocalizedAction
-
- io.github.jonestimd.swing.action.BackgroundAction<java.util.List<T>>
-
- io.github.jonestimd.swing.table.action.ReloadTableAction<T>
-
- Type Parameters:
T
- the class of the beans displayed in the table
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public abstract class ReloadTableAction<T> extends BackgroundAction<java.util.List<T>>
An abstract UI action for reloading the data in a table. Displays a confirmation dialog if the table contains unsaved changes.- See Also:
BufferedBeanListTableModel
, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.github.jonestimd.swing.action.LocalizedAction
LocalizedAction.Factory
-
-
Constructor Summary
Constructors Constructor Description ReloadTableAction(javax.swing.JComponent owner, java.util.ResourceBundle bundle, java.lang.String resourcePrefix, DecoratedTable<T,? extends BeanListTableModel<T>> table, BufferedBeanListTableModel<T> tableModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
confirmAction(java.awt.event.ActionEvent event)
void
updateUI(java.util.List<T> rows)
-
Methods inherited from class io.github.jonestimd.swing.action.BackgroundAction
actionPerformed, handleException, performTask
-
Methods inherited from class io.github.jonestimd.swing.action.LocalizedAction
create
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
ReloadTableAction
public ReloadTableAction(javax.swing.JComponent owner, java.util.ResourceBundle bundle, java.lang.String resourcePrefix, DecoratedTable<T,? extends BeanListTableModel<T>> table, BufferedBeanListTableModel<T> tableModel)
-
-
Method Detail
-
confirmAction
public boolean confirmAction(java.awt.event.ActionEvent event)
- Specified by:
confirmAction
in classBackgroundAction<java.util.List<T>>
-
updateUI
public void updateUI(java.util.List<T> rows)
- Specified by:
updateUI
in classBackgroundAction<java.util.List<T>>
-
-