org.gswing.gui.services
Interface IDesktopManagement

All Superinterfaces:
IViewerInvocation
All Known Implementing Classes:
Desktop

public interface IDesktopManagement
extends IViewerInvocation

Defines the services provided by the desktop manager.


Method Summary
 void add(JInternalFrame guiComponent)
          Add a component window to the desktop.
 void executeLengthyTask(Object source, String method, Object[] params, BoundedRangeModel model)
          Execute a method that could take some time.
 JDesktopPane getDesktopPane()
           
 JRootPane getRootPane()
           
 void invokeInserter(JComponent parent, String constituency, char type, String parentConstituency)
          Display the inserter dialog.
 void remove(JInternalFrame guiComponent)
          Remove a component window from the desktop.
 
Methods inherited from interface org.gswing.components.common.gui.IViewerInvocation
showResult
 

Method Detail

add

void add(JInternalFrame guiComponent)
Add a component window to the desktop.

Parameters:
guiComponent - The component to be added.

remove

void remove(JInternalFrame guiComponent)
Remove a component window from the desktop.

Parameters:
guiComponent - The component to be removed.

invokeInserter

void invokeInserter(JComponent parent,
                    String constituency,
                    char type,
                    String parentConstituency)
Display the inserter dialog.

Parameters:
parent - The component that invoked this.
constituency - The name of the constituency to display.
type - The constituency type.
parentConstituency - The parent constituency.

executeLengthyTask

void executeLengthyTask(Object source,
                        String method,
                        Object[] params,
                        BoundedRangeModel model)
Execute a method that could take some time. The method is executed in a seperate thread allowing futher GUI processing. A progress bar is displayed in the GUI status bar.

Parameters:
source - The object that the method is to invoked on.
method - The name of the method to be invoked.
params - The method parameters.
model - The progress bar model.

getDesktopPane

JDesktopPane getDesktopPane()
Returns:
The desktop's JDesktopPane.

getRootPane

JRootPane getRootPane()
Returns:
The desktop's JRootPane.


Copyright © 2008. All Rights Reserved.