|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
ca.sqlpower.architect.swingui.action.AbstractArchitectAction
ca.sqlpower.architect.swingui.action.ProgressAction
public abstract class ProgressAction
This class creates an action with a built in progress dialog.
By default this class sets up a dialog with an indeterminate progress bar. The dialog automatically closes when the job finishes.
| Field Summary |
|---|
| Fields inherited from class ca.sqlpower.architect.swingui.action.AbstractArchitectAction |
|---|
frame, playpen, session |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
ProgressAction(ArchitectSwingSession session,
java.lang.String actionName,
java.lang.String actionDescription)
|
|
ProgressAction(ArchitectSwingSession session,
java.lang.String actionName,
java.lang.String actionDescription,
javax.swing.Icon icon)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Setup the dialog, monitors and worker. |
abstract void |
cleanUp(ca.sqlpower.util.MonitorableImpl monitor)
Perform any cleanup code here |
abstract void |
doStuff(ca.sqlpower.util.MonitorableImpl monitor,
java.util.Map<java.lang.String,java.lang.Object> properties)
doStuff replaces the actionPerformed() call |
abstract java.lang.String |
getButtonText()
Return the text that shows up on the dialog button |
abstract java.lang.String |
getDialogMessage()
Gets the message that will be displayed on the progressbar |
abstract boolean |
setup(ca.sqlpower.util.MonitorableImpl monitor,
java.util.Map<java.lang.String,java.lang.Object> properties)
Setup the monitor and doStuff parameters before the progress dialog is shown. |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProgressAction(ArchitectSwingSession session,
java.lang.String actionName,
java.lang.String actionDescription,
javax.swing.Icon icon)
public ProgressAction(ArchitectSwingSession session,
java.lang.String actionName,
java.lang.String actionDescription)
| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent e)
public abstract java.lang.String getButtonText()
public abstract boolean setup(ca.sqlpower.util.MonitorableImpl monitor,
java.util.Map<java.lang.String,java.lang.Object> properties)
public abstract void doStuff(ca.sqlpower.util.MonitorableImpl monitor,
java.util.Map<java.lang.String,java.lang.Object> properties)
public abstract void cleanUp(ca.sqlpower.util.MonitorableImpl monitor)
public abstract java.lang.String getDialogMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||