|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
javax.swing.JApplet
org.opensha.commons.param.editor.demo.ParameterApplet
public class ParameterApplet
Title: ParameterApplet
Description: Test applet to demonstrate the ParameterListEditor in action. It creates instances of all the various subclasses of parameters, places them into a ParameterList, then the ParameterListEditor presents all the parameters in a GUI. This demonstrates how each parameter type is mapped to it's specific GUI editor type automatically.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JApplet |
|---|
JApplet.AccessibleJApplet |
| Nested classes/interfaces inherited from class java.applet.Applet |
|---|
Applet.AccessibleApplet |
| Nested classes/interfaces inherited from class java.awt.Panel |
|---|
Panel.AccessibleAWTPanel |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected static String |
C
Classname used for debugging |
protected static boolean |
D
Boolean flag to conditionaly print out debug statements. |
| Fields inherited from class javax.swing.JApplet |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ParameterApplet()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Called when applet garbage collected |
String |
getAppletInfo()
Gets the appletInfo attribute of the ParameterApplet object |
String |
getParameter(String key,
String def)
Gets the applet parameter attribute of the ParameterApplet object |
String[][] |
getParameterInfo()
Gets the parameterInfo attribute of the ParameterApplet object |
void |
init()
Applet startup procedure, Initializes the GUI |
static void |
main(String[] args)
Main function for running this demo example |
void |
parameterChange(ParameterChangeEvent event)
Makes a parameter example of this type |
void |
parameterChangeFailed(ParameterChangeFailEvent e)
Shown when a Constraint error is thrown on a ParameterEditor. |
void |
parameterChangeWarning(ParameterChangeWarningEvent e)
Shown when a Warning error is thrown on a ParameterEditor. |
void |
start()
Called when Applet started |
void |
stop()
Called when applet stopped |
| Methods inherited from class javax.swing.JApplet |
|---|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update |
| Methods inherited from class java.applet.Applet |
|---|
getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus |
| Methods inherited from class java.awt.Panel |
|---|
addNotify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String C
protected static final boolean D
| Constructor Detail |
|---|
public ParameterApplet()
| Method Detail |
|---|
public String getParameter(String key,
String def)
key - Description of the Parameterdef - Description of the Parameter
public String getAppletInfo()
getAppletInfo in class Appletpublic String[][] getParameterInfo()
getParameterInfo in class Appletpublic void init()
init in class Appletpublic void parameterChange(ParameterChangeEvent event)
parameterChange in interface ParameterChangeListenerevent - The Event which triggered this function callpublic void start()
start in class Appletpublic void stop()
stop in class Appletpublic void destroy()
destroy in class Appletpublic static void main(String[] args)
public void parameterChangeFailed(ParameterChangeFailEvent e)
parameterChangeFailed in interface ParameterChangeFailListenere - The Event which triggered this function callpublic void parameterChangeWarning(ParameterChangeWarningEvent e)
parameterChangeWarning in interface ParameterChangeWarningListenere - The Event which triggered this function call
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||