|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.SwingWorker<java.lang.Void,java.lang.Void>
org.peace_tools.core.PEACEInstaller
public class PEACEInstaller
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.SwingWorker |
|---|
javax.swing.SwingWorker.StateValue |
| Field Summary | |
|---|---|
private javax.swing.JPanel |
container
The top-level container that logically contains all the GUI elements associated with this installer. |
private static java.lang.String[] |
LinuxInstallFiles
The list of files to be installed on a Linux machine. |
private javax.swing.text.DefaultStyledDocument |
output
The styled document that is used to display the output from the installation process is different colors. |
private javax.swing.JProgressBar |
progressBar
A roving progress bar to show the user we are doing some work. |
private Server |
server
This is the server entry that is being currently installed via this wizard. |
private javax.swing.JTextPane |
textPane
The text pane where the output from the installation process is displayed. |
private static java.lang.String[] |
WindowsInstallFiles
The list of files to be installed on a Windows machine. |
| Constructor Summary | |
|---|---|
PEACEInstaller(Server server)
The constructor lays out the main components in this tab. |
|
| Method Summary | |
|---|---|
protected void |
addLog(java.lang.String entry)
Helper method to add informational output. |
protected void |
addLog(java.lang.String entry,
java.lang.String style)
Helper method to add string to output and scroll it. |
void |
changedUpdate(javax.swing.event.DocumentEvent arg0)
Implementation for method in DocumentListener to scroll to end of the document. |
private java.lang.String |
copyInstallFiles(ServerSession ss)
This is a helper method that is used to copy the install files to the server. |
private void |
createOutputPane()
This is a refactored utility method to create informational labels at the top of this panel. |
private void |
createTopPanel()
This is a refactored utility method to create informational labels at the top of this panel. |
protected java.lang.Void |
doInBackground()
|
javax.swing.JPanel |
getPanel()
Method to obtain the top-level GUI container for this installer. |
void |
insertUpdate(javax.swing.event.DocumentEvent arg0)
Implementation for method in DocumentListener to scroll to end of the document. |
void |
removeUpdate(javax.swing.event.DocumentEvent arg0)
Implementation for method in DocumentListener to scroll to end of the document. |
| Methods inherited from class javax.swing.SwingWorker |
|---|
addPropertyChangeListener, cancel, done, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private javax.swing.text.DefaultStyledDocument output
private javax.swing.JTextPane textPane
private javax.swing.JProgressBar progressBar
private javax.swing.JPanel container
private static final java.lang.String[] LinuxInstallFiles
private static final java.lang.String[] WindowsInstallFiles
private final Server server
| Constructor Detail |
|---|
public PEACEInstaller(Server server)
server - The server to be installed.| Method Detail |
|---|
public javax.swing.JPanel getPanel()
private void createOutputPane()
private void createTopPanel()
protected void addLog(java.lang.String entry)
addLog("blah", "info");
entry - The log entry to be appended.
protected void addLog(java.lang.String entry,
java.lang.String style)
entry - The log entry to be appended.style - The style (that determines color) for the entry.
protected java.lang.Void doInBackground()
throws java.lang.Exception
doInBackground in class javax.swing.SwingWorker<java.lang.Void,java.lang.Void>java.lang.Exception
private java.lang.String copyInstallFiles(ServerSession ss)
throws java.lang.Exception
ss - The server session to be used for copying the
file(s) to the server.
java.lang.Exception - Exception is generated if errors occur
while copying the install files.public void changedUpdate(javax.swing.event.DocumentEvent arg0)
changedUpdate in interface javax.swing.event.DocumentListenerarg0 - The document associated with the call. Currently,
this event is not used.public void insertUpdate(javax.swing.event.DocumentEvent arg0)
insertUpdate in interface javax.swing.event.DocumentListenerarg0 - The document associated with the call. Currently,
this event is not used.public void removeUpdate(javax.swing.event.DocumentEvent arg0)
removeUpdate in interface javax.swing.event.DocumentListenerarg0 - The document associated with the call. Currently,
this event is not used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||