|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.tools.Launcher org.opensourcephysics.tools.LaunchBuilder
public class LaunchBuilder
This provides a GUI for building LaunchNode and LaunchSet xml files.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.opensourcephysics.tools.Launcher |
---|
Launcher.HTMLPane, Launcher.LauncherFrame, Launcher.LaunchSet |
Field Summary |
---|
Fields inherited from class org.opensourcephysics.tools.Launcher |
---|
activeNode, frame, singleAppMode, singletonMode |
Constructor Summary | |
---|---|
LaunchBuilder()
No-arg constructor. |
|
LaunchBuilder(boolean splash)
Constructs a builder with or without a splash screen. |
|
LaunchBuilder(java.lang.String fileName)
Constructs a builder and loads the specified file. |
|
LaunchBuilder(java.lang.String fileName,
boolean splash)
Constructs a builder and loads the specified file with or without splash. |
Method Summary | |
---|---|
void |
addChildToSelectedNode(LaunchNode child)
Adds a child node to the selected node. |
boolean |
addTab(LaunchNode root)
Creates a LaunchPanel with the specified root and adds it to a new tab. |
static javax.swing.JFileChooser |
getHTMLChooser()
Gets a file chooser for selecting html files. |
static void |
main(java.lang.String[] args)
Main entry point when used as application. |
void |
removeSelectedNode()
Removes the selected node. |
void |
removeSelectedNodes()
Removes the selected nodes. |
boolean |
removeSelectedTab()
Removes the selected tab. |
java.lang.String |
save(LaunchNode node,
java.lang.String fileName)
Saves a node to the specified file. |
java.lang.String |
saveAs(LaunchNode node)
Saves a node to an xml file selected with a chooser. |
boolean |
saveTabs()
Saves tabs. |
java.lang.String |
saveTabSet()
Saves the current tabset. |
Methods inherited from class org.opensourcephysics.tools.Launcher |
---|
clearHistory, getContentPane, getDivider, getHTMLTab, getRootNode, getSelectedNode, getSelectedTab, getSize, getTab, getTabCount, isVisible, launch, launch, launch, open, open, setCanExit, setDivider, setEditorEnabled, setHyperlinksEnabled, setHyperlinksEnabled, setJarsOnly, setNavbarRightEndComponents, setNavigationVisible, setSelectedNode, setSelectedNode, setSelectedNode, setSelectedNodeByKey, setSelectedTab, setSelectedTab, setSize, setVisible |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LaunchBuilder()
public LaunchBuilder(java.lang.String fileName)
fileName
- the file namepublic LaunchBuilder(boolean splash)
splash
- true to show the splash screenpublic LaunchBuilder(java.lang.String fileName, boolean splash)
fileName
- the file namesplash
- true to show the splash screenMethod Detail |
---|
public static void main(java.lang.String[] args)
args
- args[0] may be an xml file namepublic java.lang.String save(LaunchNode node, java.lang.String fileName)
node
- the nodefileName
- the desired name of the file
public java.lang.String saveAs(LaunchNode node)
node
- the node
public java.lang.String saveTabSet()
public boolean saveTabs()
public boolean addTab(LaunchNode root)
root
- the root node
public boolean removeSelectedTab()
public void removeSelectedNode()
public void removeSelectedNodes()
public void addChildToSelectedNode(LaunchNode child)
child
- the child node to addpublic static javax.swing.JFileChooser getHTMLChooser()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |