|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
org.netbeans.modules.vcscore.commands.DialogVisualizerWrapper
Dialog wrapper of a command visualizer.
This dialog is to be used when it is necessary to wait for a command task in AWT thread. This dialog is able to wrap any GUI that can be presented by the command so that it will not collide with the blocked AWT event queue.
This dialog is modal, therefore its presentation is blocking, but another event pump is started so that the system stays responsive.
Nested Class Summary |
Nested classes inherited from class javax.swing.JDialog |
JDialog.AccessibleJDialog |
Nested classes inherited from class java.awt.Dialog |
Dialog.AccessibleAWTDialog |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
DialogVisualizerWrapper()
Creates new form DialogVisualizerWrapper |
Method Summary | |
void |
commandDone(CommandTaskInfo info)
This method is called when the command is done. |
void |
commandPreprocessed(Command cmd,
boolean status)
Called when the preprocessing of the command finished. |
void |
commandPreprocessing(Command cmd)
Called when the command is just to be preprocessed. |
void |
commandStarting(CommandTaskInfo info)
This method is called when the command is just to be started. |
VcsCommandsProvider |
getProvider()
Get the commands provider. |
void |
setTask(CommandTask task)
After instatiation this method is called with the task that is wrapped. |
ActionListener |
wrap(JComponent visualizerComponent,
boolean showStatus,
boolean showClose)
Wrap a visualizer component. |
Methods inherited from class java.awt.Dialog |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DialogVisualizerWrapper()
Method Detail |
public void setTask(CommandTask task)
VcsCommandVisualizer.Wrapper
setTask
in interface VcsCommandVisualizer.Wrapper
public ActionListener wrap(JComponent visualizerComponent, boolean showStatus, boolean showClose)
VcsCommandVisualizer.Wrapper
wrap
in interface VcsCommandVisualizer.Wrapper
visualizerComponent
- The component to wrapshowStatus
- Whether to show the status of the command (running/finished)showClose
- Whether to provide a possibility to close the dialog
public void commandDone(CommandTaskInfo info)
CommandProcessListener
commandDone
in interface CommandProcessListener
public void commandPreprocessed(Command cmd, boolean status)
CommandProcessListener
commandPreprocessed
in interface CommandProcessListener
cmd
- The command which was preprocessed.status
- The status of preprocessing. If false, the command is not executed.public void commandPreprocessing(Command cmd)
CommandProcessListener
commandPreprocessing
in interface CommandProcessListener
public void commandStarting(CommandTaskInfo info)
CommandProcessListener
commandStarting
in interface CommandProcessListener
public VcsCommandsProvider getProvider()
CommandProcessListener
null
, the listener gets events from all
commands.
getProvider
in interface CommandProcessListener
null
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |