|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jdemo.framework.AbstractDemoCase
de.jdemo.extensions.SwtDemoCase
public abstract class SwtDemoCase
Abstract superclass for all demos demonstrating SWT components.
| Constructor Summary | |
|---|---|
SwtDemoCase()
|
|
| Method Summary | |
|---|---|
void |
cancel()
Give this DemoCase the chance to exit. |
protected java.lang.Object |
clone()
Returns a clone of this democase, that is a new instance being the same demonstration case, but not having any listeners or other temporary fields. |
IDemoCaseRunnable |
createRunnable(boolean allowExternalLaunches)
Creates a runnable for running this demo case. |
protected org.eclipse.swt.widgets.Shell |
createShell()
Creates a new Shellobject that can be used for adding widgets. |
void |
executeTearDown()
Called by the DemoCaseRunner to invoke the tearDown method. |
protected org.eclipse.swt.widgets.Display |
getDisplay()
|
void |
runDemo()
Override to run the demo and assert its state. |
| Methods inherited from class de.jdemo.framework.AbstractDemoCase |
|---|
accept, after, assertNotNull, assertNull, assertTrue, before, createThreadGroup, executeSetUp, exit, fail, getClone, getIdentifier, getName, getRunnable, setName, setRunnable, setUp, tearDown, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SwtDemoCase()
| Method Detail |
|---|
public IDemoCaseRunnable createRunnable(boolean allowExternalLaunches)
IDemoCase
createRunnable in interface 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.
public void executeTearDown()
throws java.lang.Exception
AbstractDemoCase
executeTearDown in class AbstractDemoCasejava.lang.Exceptionprotected java.lang.Object clone()
AbstractDemoCase
clone in class AbstractDemoCasepublic void cancel()
AbstractDemoCaseIDemoCaseRunnable when the user requests termination of the
Demo.
Should not be called from within a demo.
cancel in class AbstractDemoCaseprotected org.eclipse.swt.widgets.Display getDisplay()
protected org.eclipse.swt.widgets.Shell createShell()
Shellobject that can be used for adding widgets.
The shell will automatically be made visible when returning from the
demo... method. Not that calling this method more often than once will
result in a DemoExecutionFailedError.
public void runDemo()
throws java.lang.Throwable
AbstractDemoCase
runDemo in class AbstractDemoCasejava.lang.Throwable - if any exception is thrown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||