|
||||||||||
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.extensions.GuiDemoCase
public abstract class GuiDemoCase
Constructor Summary | |
---|---|
GuiDemoCase()
|
|
GuiDemoCase(java.lang.String name)
|
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 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)
|
Methods inherited from class de.jdemo.framework.AbstractDemoCase |
---|
accept, after, assertNotNull, assertNull, assertTrue, before, createThreadGroup, executeSetUp, 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 GuiDemoCase()
public GuiDemoCase(java.lang.String name)
Method Detail |
---|
protected java.lang.Object clone()
AbstractDemoCase
clone
in class AbstractDemoCase
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 void disposeDemoWindow()
protected final void registerDemoWindow(java.awt.Window window)
public void cancel()
AbstractDemoCase
IDemoCaseRunnable
when the user requests termination of the
Demo.
Should not be called from within a demo.
cancel
in class AbstractDemoCase
protected void exit()
AbstractDemoCase
exit
in class AbstractDemoCase
AbstractDemoCase.cancel()
public java.awt.Window getRegisteredDemoWindow()
null
if there is none registered.
registerDemoWindow(Window)
public void executeTearDown() throws java.lang.Exception
AbstractDemoCase
executeTearDown
in class AbstractDemoCase
java.lang.Exception
public boolean isRegisteredDemoWindowOpened()
protected void setRegisteredDemoWindowOpened(boolean opened)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |