public abstract class ReloadablePanel<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ReloadablePanel.DataProvider<T> |
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JPanel |
myActionPanel |
Constructor and Description |
---|
ReloadablePanel() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doUpdateValues(java.util.Set<T> values) |
protected void |
fillActionPanel() |
javax.swing.JLabel |
getErrorComponent() |
abstract javax.swing.JPanel |
getMainPanel() |
abstract T |
getSelectedValue() |
boolean |
isBackgroundJobRunning() |
void |
onUpdateValues(java.util.Set<T> values) |
void |
onValuesUpdateError(java.lang.String errorMessage) |
void |
reloadValuesInBackground() |
void |
setDataProvider(ReloadablePanel.DataProvider<T> dataProvider) |
public final void setDataProvider(ReloadablePanel.DataProvider<T> dataProvider)
protected abstract void doUpdateValues(java.util.Set<T> values)
public abstract T getSelectedValue()
public final javax.swing.JLabel getErrorComponent()
public final boolean isBackgroundJobRunning()
public final void onUpdateValues(java.util.Set<T> values)
public final void reloadValuesInBackground()
protected void fillActionPanel()
public final void onValuesUpdateError(java.lang.String errorMessage)
public abstract javax.swing.JPanel getMainPanel()