|
||||||||||
| 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
weka.gui.scripting.ScriptingPanel
public abstract class ScriptingPanel
Abstract ancestor for scripting panels.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, 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 | |
|---|---|
ScriptingPanel()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addTitleUpdatedListener(TitleUpdatedListener l)
Adds the listener to the internal list. |
boolean |
getDebug()
Returns whether debugging mode is on. |
abstract ImageIcon |
getIcon()
Returns an icon to be used in a frame. |
abstract JMenuBar |
getMenuBar()
Returns the menu bar to to be displayed in the frame. |
abstract JTextPane |
getOutput()
Returns the text area that is used for displaying output on stdout and stderr. |
abstract String |
getTitle()
Returns the current title for the frame/dialog. |
void |
removeTitleUpdatedListener(TitleUpdatedListener l)
Removes the listener from the internal list. |
void |
setDebug(boolean value)
Turns on/off debugging mode. |
static void |
showPanel(ScriptingPanel panel,
String[] args)
Displays the panel in a frame. |
static void |
showPanel(ScriptingPanel panel,
String[] args,
int width,
int height)
Displays the panel in a frame. |
void |
titleUpdated(TitleUpdatedEvent event)
Gets called when the title of the frame/dialog needs updating. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptingPanel()
| Method Detail |
|---|
public abstract ImageIcon getIcon()
public abstract String getTitle()
public abstract JTextPane getOutput()
public abstract JMenuBar getMenuBar()
public void setDebug(boolean value)
value - if true, debug mode is turned onpublic boolean getDebug()
public void addTitleUpdatedListener(TitleUpdatedListener l)
l - the listener to addpublic void removeTitleUpdatedListener(TitleUpdatedListener l)
l - the listener to removepublic void titleUpdated(TitleUpdatedEvent event)
titleUpdated in interface TitleUpdatedListenerevent - the event that got sent
public static void showPanel(ScriptingPanel panel,
String[] args)
panel - the panel to displayargs - currently ignored commandline parameters
public static void showPanel(ScriptingPanel panel,
String[] args,
int width,
int height)
panel - the panel to displayargs - currently ignored commandline parameterswidth - the width of the frameheight - the height of the frame
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||