public class AlertEditor extends org.jdesktop.application.FrameView implements ListSelectionListener
Modifier and Type | Field and Description |
---|---|
protected AlertTableModel |
alertModel
Alert model for table.
|
protected List<TimerAlert> |
alerts
List of cloned task alert list.
|
protected JTable |
alertTable
Table to display alerts .
|
protected boolean |
selectedAlert
Selected alert property.
|
protected TimerTask |
task
Task to manage alert on.
|
protected TimerDataManager |
timerDataManager
Manager to commit alert modification.
|
Constructor and Description |
---|
AlertEditor(org.jdesktop.application.Application application,
TimerDataManager timerDataManager,
TimerTask task)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAlert() |
void |
cancel() |
protected JComponent |
getMainComponent()
Build main component.
|
boolean |
isSelectedAlert()
Is selected alert.
|
void |
removeAlert() |
void |
save() |
void |
setSelectedAlert(boolean selectedAlert)
Change selected alert property.
|
void |
valueChanged(ListSelectionEvent e) |
getApplication, getComponent, getContext, getMenuBar, getResourceMap, getStatusBar, getToolBar, getToolBars, setComponent, setMenuBar, setStatusBar, setToolBar, setToolBars
protected TimerTask task
protected List<TimerAlert> alerts
protected TimerDataManager timerDataManager
protected JTable alertTable
protected AlertTableModel alertModel
protected boolean selectedAlert
public AlertEditor(org.jdesktop.application.Application application, TimerDataManager timerDataManager, TimerTask task)
application
- parenttask
- tasktimerDataManager
- protected JComponent getMainComponent()
public boolean isSelectedAlert()
public void setSelectedAlert(boolean selectedAlert)
selectedAlert
- selected alert property@Action public void addAlert()
@Action(enabledProperty="selectedAlert") public void removeAlert()
@Action public void save()
@Action public void cancel()
public void valueChanged(ListSelectionEvent e)
valueChanged
in interface ListSelectionListener
Copyright © 2007–2013 CodeLutin. All rights reserved.