public abstract class DemoCase extends AbstractDemoCase
DemoSuite| Constructor and Description |
|---|
DemoCase()
No-arg constructor to enable serialization.
|
DemoCase(java.lang.String name)
Constructs a demo case with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
IDemoCaseRunnable |
createRunnable(boolean allowExternalLaunches)
Creates a runnable for running this demo case.
|
protected java.io.File |
createTempFile(java.lang.String suffix)
Creates a temporary file using the specified suffig (e.g.
|
void |
setFileLauncher(IFileLauncher fileLauncher)
Sets the launcher to show files with.
|
void |
setTextLauncher(ITextLauncher textLauncher)
Sets the launcher to show texts with.
|
protected void |
show(java.lang.CharSequence text)
Shows the given text by using the demos text launcher.
|
protected void |
show(java.io.File file)
Tries to open the given file by passing it to the operating system.
|
accept, after, assertNotNull, assertNull, assertTrue, before, cancel, clone, createThreadGroup, executeSetUp, executeTearDown, exit, fail, getClone, getIdentifier, getName, getRunnable, runDemo, setName, setRunnable, setUp, tearDown, toStringpublic DemoCase()
public DemoCase(java.lang.String name)
public IDemoCaseRunnable createRunnable(boolean allowExternalLaunches)
IDemoCaseallowExternalLaunches - indicates whether this demo is allowed e.g. to launch a file in
an external software. This flag will be false if this demo is executed as test for example.protected final java.io.File createTempFile(java.lang.String suffix)
throws java.io.IOException
suffix - the filename suffix for the temporary file to be created.java.io.IOExceptionshow(File)protected final void show(java.io.File file)
createTempFile(String)protected final void show(java.lang.CharSequence text)
setTextLauncher(ITextLauncher)public void setFileLauncher(IFileLauncher fileLauncher)
public void setTextLauncher(ITextLauncher textLauncher)
JDemo homepage: http://www.jdemo.de
Copyright © 2003-2012 Markus Gebhard. All Rights Reserved.