|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
hmi.bml.bridge.ui.RealizerBridgeUI
public class RealizerBridgeUI
A graphical UI to a RealizerBridge, allowing for a few simple interactions with it such as sending BML to it.
| Nested Class Summary | |
|---|---|
(package private) class |
RealizerBridgeUI.DemoScriptSelectionListener
|
(package private) class |
RealizerBridgeUI.LoadListener
load file content into text panel |
(package private) class |
RealizerBridgeUI.PlayListener
play content of text panel |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| 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 JTextArea |
bmlInput
Text area to input BML |
protected JPanel |
buttonPanel
A panel for adding buttons and such |
private static String[] |
defaultDemoScriptNames
|
private static String[] |
defaultDemoScripts
|
protected JComboBox |
demoScriptList
combobox for demo scripts |
ArrayList<String> |
demoScriptNames
names for the demo scripts, to be used in the drop down list |
ArrayList<String> |
demoScripts
if there is a bml realizer, a set of demo scripts can be "hard coded" into the UI. |
private FeedbackPanel |
feedbackPane
|
private String |
loadFileName
|
private String |
loadPath
|
protected RealizerBridge |
realizerBridge
The realizerbridge |
static long |
serialVersionUID
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| 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 | |
|---|---|
RealizerBridgeUI(RealizerBridge bridge)
Init the frame with input text area, and feedback text area -- use default set of demo scripts |
|
RealizerBridgeUI(RealizerBridge bridge,
String[] newDemoScriptNames,
String[] newDemoScripts)
Init the frame with input text area, play button, and feedback text area |
|
| Method Summary | |
|---|---|
void |
loadDemoScript(String scriptName)
|
void |
playBMLContent()
Play the content of the BML input box; set the resulting output in the outputArea |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final String[] defaultDemoScripts
private static final String[] defaultDemoScriptNames
private String loadPath
private String loadFileName
public ArrayList<String> demoScripts
public ArrayList<String> demoScriptNames
public static final long serialVersionUID
protected JPanel buttonPanel
protected JTextArea bmlInput
protected JComboBox demoScriptList
protected RealizerBridge realizerBridge
private FeedbackPanel feedbackPane
| Constructor Detail |
|---|
public RealizerBridgeUI(RealizerBridge bridge)
public RealizerBridgeUI(RealizerBridge bridge,
String[] newDemoScriptNames,
String[] newDemoScripts)
| Method Detail |
|---|
public void playBMLContent()
public void loadDemoScript(String scriptName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||