|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.jmsmvc4swing.base.ControllerResultBusyAdapter<T>
T - The type of the UI to be locked.public class ControllerResultBusyAdapter<T extends JComponent>
Maps the received controller events to a JBusyComponent. The UI
will be locked when started() is called and unlocked when
failed(Exception) or succeded() is called. The
Adapter can be configured with the
configure(Cancelable, boolean) method to show a progress bar and
a "cancel" control.
| Constructor Summary | |
|---|---|
ControllerResultBusyAdapter(org.divxdede.swing.busy.JBusyComponent<T> busyComponent)
Constcructor with the UI to be locked. |
|
| Method Summary | |
|---|---|
void |
configure(Cancelable cancelable,
boolean determinate)
Changes the underlying busy model. |
void |
failed(Exception ex)
Work was interrupted by an exception. |
void |
progress(ProgressInfo progressInfo)
Controller signals progress. |
void |
started()
Controller started working. |
void |
succeded()
Controller finished work. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ControllerResultBusyAdapter(org.divxdede.swing.busy.JBusyComponent<T> busyComponent)
busyComponent - Component to be locked.| Method Detail |
|---|
public final void configure(Cancelable cancelable,
boolean determinate)
configure in interface BusyConfigurablecancelable - The instance to be cancelled if the "cancel" UI control is
pressed.determinate - If a progress bar should be visible TRUE else FALSE.public final void started()
started in interface ControllerResultListenerpublic final void progress(ProgressInfo progressInfo)
progress in interface ControllerResultListenerprogressInfo - Progress informations.public final void failed(Exception ex)
failed in interface ControllerResultListenerex - Cause.public final void succeded()
succeded in interface ControllerResultListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||