站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

VcsCommandVisualizer.Wrapper (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.commands
Interface VcsCommandVisualizer.Wrapper

All Known Implementing Classes:
DialogVisualizerWrapper
Enclosing interface:
VcsCommandVisualizer

public static interface VcsCommandVisualizer.Wrapper

The wrapper of the visualizer.


Method Summary
 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.
 

Method Detail

setTask

public void setTask(CommandTask task)
After instatiation this method is called with the task that is wrapped. The task can be already finished when this method is called.


wrap

public ActionListener wrap(JComponent visualizerComponent,
                           boolean showStatus,
                           boolean showClose)
Wrap a visualizer component. This method is to be used to display the visualizer if wrapper is defined.

Parameters:
visualizerComponent - The component to wrap
showStatus - Whether to show the status of the command (running/finished)
showClose - Whether to provide a possibility to close the dialog
Returns:
The action listener, that is notified when the dialog should be closed.

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.