|
||||||||||
| 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
com.izforge.izpack.installer.gui.IzPanel
com.izforge.izpack.panels.process.ProcessPanel
public class ProcessPanel
The process panel class.
This class allows external processes to be executed during installation. Parts of the code have been taken from CompilePanel.java and modified a lot.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.izforge.izpack.installer.gui.IzPanel |
|---|
IzPanel.Filler |
| 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 JProgressBar |
overallProgressBar
The overall progress bar. |
protected JLabel |
processLabel
The operation label . |
| Fields inherited from class com.izforge.izpack.installer.gui.IzPanel |
|---|
DELIMITER, HEADLINE, headLineLabel, initialFocus, installData, layoutHelper, parent |
| 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 com.izforge.izpack.api.handler.AbstractUIHandler |
|---|
ANSWER_CANCEL, ANSWER_NO, ANSWER_YES, CHOICES_YES_NO |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ProcessPanel(Panel panel,
InstallerFrame parent,
GUIInstallData installData,
Resources resources,
RulesEngine rules,
PlatformModelMatcher matcher)
The constructor. |
|
| Method Summary | |
|---|---|
void |
finishProcess()
|
void |
finishProcessing(boolean unlockPrev,
boolean unlockNext)
The compiler stops. |
boolean |
isValidated()
Indicates wether the panel has been validated or not. |
void |
logOutput(String message,
boolean stderr)
Log a message. |
void |
makeXMLData(IXMLElement panelRoot)
Create XML installDataGUI for automated installation. |
void |
panelActivate()
Called when the panel becomes active. |
void |
startProcess(String jobName)
Next job starts. |
void |
startProcessing(int no_of_jobs)
The compiler starts. |
| Methods inherited from class com.izforge.izpack.installer.gui.IzPanel |
|---|
askQuestion, askQuestion, askWarningQuestion, canShowHelp, createInstallationRecord, createLabel, createMultiLineLabel, createMultiLineLabelLang, emitError, emitNotification, emitNotificationFeedback, emitWarning, getControlTextFont, getI18nStringForClass, getI18nStringForClass, getImageIcon, getInitialFocus, getInstallerFrame, getLAF, getLayoutHelper, getMetadata, getResources, getString, getSummaryBody, getSummaryCaption, initLayoutHelper, panelDeactivate, panelValidated, parseText, saveData, setHelpUrl, setInitialFocus, showHelp, toString |
| 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 |
| Methods inherited from interface com.izforge.izpack.api.handler.AbstractUIHandler |
|---|
askQuestion, askQuestion, askWarningQuestion, emitError, emitNotification, emitWarning |
| Field Detail |
|---|
protected JLabel processLabel
protected JProgressBar overallProgressBar
| Constructor Detail |
|---|
public ProcessPanel(Panel panel,
InstallerFrame parent,
GUIInstallData installData,
Resources resources,
RulesEngine rules,
PlatformModelMatcher matcher)
panel - the panel meta-dataparent - the parent windowinstallData - the installation dataresources - the resourcesrules - the rulesmatcher - the platform-model matcher| Method Detail |
|---|
public boolean isValidated()
isValidated in class IzPanelpublic void startProcessing(int no_of_jobs)
startProcessing in interface AbstractUIProcessHandler
public void finishProcessing(boolean unlockPrev,
boolean unlockNext)
finishProcessing in interface AbstractUIProcessHandler
public void logOutput(String message,
boolean stderr)
logOutput in interface AbstractUIProcessHandlermessage - The message.stderr - Whether the message came from stderr or stdout.public void startProcess(String jobName)
startProcess in interface AbstractUIProcessHandlerjobName - The job name.public void finishProcess()
finishProcess in interface AbstractUIProcessHandlerpublic void panelActivate()
panelActivate in class IzPanelpublic void makeXMLData(IXMLElement panelRoot)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||