ch.tatool.core.executable
Class GenericContentExecutable

java.lang.Object
  extended by ch.tatool.core.element.AbstractPropertyHolder
      extended by ch.tatool.core.element.NodeImpl
          extended by ch.tatool.core.executable.BlockingExecutable
              extended by ch.tatool.core.executable.BlockingAWTExecutable
                  extended by ch.tatool.core.executable.GenericContentExecutable
All Implemented Interfaces:
PropertyHolder, Executable, Node, KeyEventDispatcher

public class GenericContentExecutable
extends BlockingAWTExecutable

Executable element that displays generic content in the different regions. Executable finish can either triggered through a timeout or through a user input or both.

Author:
Michael Ruflin

Constructor Summary
GenericContentExecutable()
           
GenericContentExecutable(String id)
           
 
Method Summary
 void addContent(RegionsContainer.Region region, JPanel panel)
           
protected  void cancelExecutionAWT()
          cancelExecution called in the awt thread.
 Color getBackgroundColor()
           
 long getDisplayDuration()
           
 boolean isFinishOnInput()
           
 void setBackgroundColor(Color backgroundColor)
           
 void setDisplayDuration(long displayDuration)
           
 void setDisplayTest(String text)
          Adds a text display content to the center region.
 void setFinishOnInput(boolean finishOnInput)
           
protected  void startExecutionAWT()
          To be implemented.
 
Methods inherited from class ch.tatool.core.executable.BlockingAWTExecutable
cancelExecution, startExecution
 
Methods inherited from class ch.tatool.core.executable.BlockingExecutable
cancel, dispatchKeyEvent, execute, finishExecution, getExecutionContext, getFinishExecutionLock, setExecutionContext
 
Methods inherited from class ch.tatool.core.element.NodeImpl
assignParent, assignParent, assignParents, getId, getLocalId, getParent, setId, setLocalId, setParent
 
Methods inherited from class ch.tatool.core.element.AbstractPropertyHolder
clearProperties, getKeys, getProperty, removeProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ch.tatool.element.Executable
cancel, execute, setExecutionContext
 
Methods inherited from interface ch.tatool.element.Node
getParent, setParent
 
Methods inherited from interface ch.tatool.data.PropertyHolder
clearProperties, getId, getKeys, getProperty, removeProperty, setProperty
 

Constructor Detail

GenericContentExecutable

public GenericContentExecutable()

GenericContentExecutable

public GenericContentExecutable(String id)
Method Detail

startExecutionAWT

protected void startExecutionAWT()
Description copied from class: BlockingAWTExecutable
To be implemented. Called at the start of the executable execution.

Specified by:
startExecutionAWT in class BlockingAWTExecutable

cancelExecutionAWT

protected void cancelExecutionAWT()
Description copied from class: BlockingAWTExecutable
cancelExecution called in the awt thread.

Overrides:
cancelExecutionAWT in class BlockingAWTExecutable

setDisplayTest

public void setDisplayTest(String text)
Adds a text display content to the center region.


addContent

public void addContent(RegionsContainer.Region region,
                       JPanel panel)

getBackgroundColor

public Color getBackgroundColor()

setBackgroundColor

public void setBackgroundColor(Color backgroundColor)

getDisplayDuration

public long getDisplayDuration()

setDisplayDuration

public void setDisplayDuration(long displayDuration)

isFinishOnInput

public boolean isFinishOnInput()

setFinishOnInput

public void setFinishOnInput(boolean finishOnInput)


Copyright © 2012. All Rights Reserved.