|
||||||||||
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 de.jdemo.extensions.AwtDemoCase
public abstract class AwtDemoCase
Abstract superclass for all demos demonstrating AWT components.
Constructor Summary | |
---|---|
AwtDemoCase()
|
|
AwtDemoCase(java.lang.String name)
|
Method Summary | |
---|---|
protected java.awt.Frame |
createFrame()
Convenience method for creating a new Frame object that can be used for demo
implementations. |
protected java.awt.Component |
createParentComponent()
|
protected java.awt.Image |
getFrameIconImage()
|
protected java.lang.String |
getFrameTitle()
|
protected void |
runOnEventDispatchThread(java.lang.Runnable runnable)
|
protected void |
setFrameIconImage(java.awt.Image image)
Sets the image that will be used for the frame icon when showing this demo. |
protected void |
setFrameTitle(java.lang.String frameTitle)
Sets the title for the frame being created by this demo case. |
protected void |
show(java.lang.CharSequence text)
Shows the given text in a TextArea using a fixed width font. |
protected void |
show(java.awt.Component component)
Convenience method for showing any kind of Component object. |
protected void |
show(java.awt.Component[] components,
java.awt.LayoutManager layoutManager)
Convenience method for showing an array of Component objects. |
protected void |
show(java.awt.Window window)
Convenience method for showing any kind of Window object. |
protected void |
showAsIs(java.awt.Window window)
Shows the given Window object without modifying its size or position. |
protected void |
showProportional(java.lang.CharSequence text)
Shows the given text in a TextArea using a proportional font. |
Methods inherited from class de.jdemo.extensions.GuiDemoCase |
---|
cancel, clone, createRunnable, disposeDemoWindow, executeTearDown, exit, getRegisteredDemoWindow, isRegisteredDemoWindowOpened, registerDemoWindow, setRegisteredDemoWindowOpened |
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 AwtDemoCase()
public AwtDemoCase(java.lang.String name)
Method Detail |
---|
protected void show(java.awt.Component component)
Component
object. The frame
provided to this object will also be registred as demo window for this GuiDemoCase.
protected void show(java.awt.Component[] components, java.awt.LayoutManager layoutManager)
Component
objects.
The frame containing the components will also be registered as demo window for this democase.
The specified layout manager will be used to lay out the components.
protected void show(java.awt.Window window)
Window
object. The given object
will also be registred as demo window for this democase (if not being registered already).
Note that the window will be packed, centered on the screen and made non-modal if being a dialog.
showAsIs(Window)
protected void runOnEventDispatchThread(java.lang.Runnable runnable)
protected void showAsIs(java.awt.Window window)
Window
object without modifying its size or position.
The given object will also be registred as demo window for this democase.
Note that the window will be made non-modal if being a dialog.
show(Window)
protected java.awt.Frame createFrame()
Frame
object that can be used for demo
implementations. The frame is automatically registered as demo window and decorated
with the necessary window listener, icon, title, etc.
show(Window)
,
show(Component)
protected java.awt.Component createParentComponent()
protected java.lang.String getFrameTitle()
protected void setFrameTitle(java.lang.String frameTitle)
null
(default)
will set the title to the name of the demo.
createFrame()
protected java.awt.Image getFrameIconImage()
protected void setFrameIconImage(java.awt.Image image)
protected void show(java.lang.CharSequence text)
showProportional(CharSequence)
protected void showProportional(java.lang.CharSequence text)
show(CharSequence)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |