ch.tatool.core.display.swing
Class SwingExecutionDisplayProvider

java.lang.Object
  extended by ch.tatool.core.display.swing.SwingExecutionDisplayProvider
All Implemented Interfaces:
ExecutionDisplayProvider

public class SwingExecutionDisplayProvider
extends Object
implements ExecutionDisplayProvider

Full screen window used for task execution. Tasks should get partial access to the frame to insert own gui elements into the window, the window itself on the other hand should be managed by Tatool exclusively.

Author:
Michael Ruflin

Field Summary
static String DISPLAY_MODE_FULLSCREEN
           
static String DISPLAY_MODE_WINDOW
           
static String PROPERTY_DISPLAY_MODE
          Module property that defines in what mode the display should be in.
static String PROPERTY_INITIALIZE_REGIONS_CONTAINER
          If set to true then the RegionsContainer will be initialized automatically.
 
Constructor Summary
SwingExecutionDisplayProvider()
          Creates a new SwingExecutionDisplayProvider
 
Method Summary
 void destroy()
          Close the display.
 SwingExecutionDisplay getExecutionDisplay()
          Get the ExecutionDisplay provided by this provider.
 void open()
          Opens the display.
 void setup(Executor executor, Module module)
          Initializes the display.
 void stopModuleExecution()
          Stops the module execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_DISPLAY_MODE

public static final String PROPERTY_DISPLAY_MODE
Module property that defines in what mode the display should be in. Currently window and fullscreen are the only supported modes, with fullscreen being default.

See Also:
Constant Field Values

DISPLAY_MODE_FULLSCREEN

public static final String DISPLAY_MODE_FULLSCREEN
See Also:
Constant Field Values

DISPLAY_MODE_WINDOW

public static final String DISPLAY_MODE_WINDOW
See Also:
Constant Field Values

PROPERTY_INITIALIZE_REGIONS_CONTAINER

public static final String PROPERTY_INITIALIZE_REGIONS_CONTAINER
If set to true then the RegionsContainer will be initialized automatically.

See Also:
Constant Field Values
Constructor Detail

SwingExecutionDisplayProvider

public SwingExecutionDisplayProvider()
Creates a new SwingExecutionDisplayProvider

Method Detail

getExecutionDisplay

public SwingExecutionDisplay getExecutionDisplay()
Get the ExecutionDisplay provided by this provider.

Specified by:
getExecutionDisplay in interface ExecutionDisplayProvider

setup

public void setup(Executor executor,
                  Module module)
Initializes the display.

Specified by:
setup in interface ExecutionDisplayProvider

open

public void open()
Opens the display.

Specified by:
open in interface ExecutionDisplayProvider

destroy

public void destroy()
Close the display.

Specified by:
destroy in interface ExecutionDisplayProvider

stopModuleExecution

public void stopModuleExecution()
Stops the module execution.



Copyright © 2012. All Rights Reserved.