|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.jdemo.framework.AbstractDemoCase de.jdemo.framework.DemoCase
public abstract class DemoCase
Abstract superclass for all text/file based demos or extensions.
DemoSuite
Constructor Summary | |
---|---|
DemoCase()
No-arg constructor to enable serialization. |
|
DemoCase(java.lang.String name)
Constructs a demo case with the given name. |
Method Summary | |
---|---|
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. |
Methods inherited from class de.jdemo.framework.AbstractDemoCase |
---|
accept, after, assertNotNull, assertNull, assertTrue, before, cancel, clone, createThreadGroup, executeSetUp, executeTearDown, exit, fail, getClone, getIdentifier, getName, getRunnable, runDemo, setName, setRunnable, setUp, tearDown, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DemoCase()
public DemoCase(java.lang.String name)
Method Detail |
---|
public IDemoCaseRunnable createRunnable(boolean allowExternalLaunches)
IDemoCase
allowExternalLaunches
- 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.IOException
show(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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |