public abstract class GuiDemoCase extends AbstractDemoCase
| Constructor and Description |
|---|
GuiDemoCase() |
GuiDemoCase(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
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 void |
disposeDemoWindow() |
void |
executeTearDown()
Called by the DemoCaseRunner to invoke the tearDown method.
|
protected void |
exit()
Can be called from within the demonstration code to indicate that this
demonstration has been finished.
|
java.awt.Window |
getRegisteredDemoWindow()
Returns the demo window registered with this GuiDemoCase or
null
if there is none registered. |
boolean |
isRegisteredDemoWindowOpened() |
protected void |
registerDemoWindow(java.awt.Window window)
Registers the given window as demo window for this GuiDemoCase.
|
protected void |
setRegisteredDemoWindowOpened(boolean opened) |
accept, after, assertNotNull, assertNull, assertTrue, before, createThreadGroup, executeSetUp, fail, getClone, getIdentifier, getName, getRunnable, runDemo, setName, setRunnable, setUp, tearDown, toStringpublic GuiDemoCase()
public GuiDemoCase(java.lang.String name)
protected java.lang.Object clone()
AbstractDemoCaseclone in class AbstractDemoCasepublic 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 void disposeDemoWindow()
protected final void registerDemoWindow(java.awt.Window window)
public void cancel()
AbstractDemoCaseIDemoCaseRunnable when the user requests termination of the
Demo.
Should not be called from within a demo.cancel in class AbstractDemoCaseprotected void exit()
AbstractDemoCaseexit in class AbstractDemoCaseAbstractDemoCase.cancel()public java.awt.Window getRegisteredDemoWindow()
null
if there is none registered.registerDemoWindow(Window)public void executeTearDown()
throws java.lang.Exception
AbstractDemoCaseexecuteTearDown in class AbstractDemoCasejava.lang.Exceptionpublic boolean isRegisteredDemoWindowOpened()
protected void setRegisteredDemoWindowOpened(boolean opened)
JDemo homepage: http://www.jdemo.de
Copyright © 2003-2012 Markus Gebhard. All Rights Reserved.