org.openscience.jmol.app.webexport
Class WebPanel
abstract
class
WebPanel
extends JPanel
implements ActionListener
Method Summary |
void | actionPerformed(ActionEvent e) |
static String | addFileList(String script, String tag) |
abstract JPanel | appletParamPanel() |
static String | copyBinaryFile(String fullPathName, String dataPath) |
void | enableButtons(JList list) |
boolean | fileWriter(File file, JList InstanceList) |
abstract String | fixHtml(String html) |
abstract String | getAppletDefs(int i, String html, StringBuffer appletDefs, JmolInstance instance) |
static byte[] | getFileAsBytes(String path) |
int | getInfoHeight() |
int | getInfoWidth() |
String | getInstanceName(int i) |
JPanel | getLeftPanel(int w, int h) |
JPanel | getPanel(int infoWidth, int infoHeight) |
static String | localizeFileReferences(String script, String[] origFileList, String[] copiedFileNames) |
void | syncLists() |
static String | writeFileBytes(String path, byte[] data) |
private JButton addInstanceButton
protected String appletInfoDivs
protected JSpinner appletSizeSpinnerH
protected JSpinner appletSizeSpinnerP
protected JSpinner appletSizeSpinnerW
private JButton deleteInstanceButton
private JScrollPane editorScrollPane
private JFileChooser fc
private JButton helpButton
protected String htmlAppletTemplate
private JList instanceList
protected String listLabel
private JTextField localAppletPath
private JTextField pageAuthorName
private int panelIndex
protected String panelName
private JTextField remoteAppletPath
private JButton saveButton
private JButton showInstanceButton
protected boolean useAppletJS
private JTextField webPageTitle
protected WebPanel(
JmolViewer viewer, JFileChooser fc,
WebPanel[] webPanels, int panelIndex)
public void actionPerformed(ActionEvent e)
private static String addFileList(String script, String tag)
abstract JPanel appletParamPanel()
private static String copyBinaryFile(String fullPathName, String dataPath)
void enableButtons(JList list)
boolean fileWriter(File file, JList InstanceList)
abstract String fixHtml(String html)
abstract String getAppletDefs(int i, String html, StringBuffer appletDefs,
JmolInstance instance)
private static byte[] getFileAsBytes(String path)
int getInfoHeight()
int getInfoWidth()
String getInstanceName(int i)
private JPanel getLeftPanel(int w, int h)
JPanel getPanel(int infoWidth, int infoHeight)
private static String localizeFileReferences(String script, String[] origFileList, String[] copiedFileNames)
void syncLists()
private static String writeFileBytes(String path, byte[] data)