|
|||||||||||
| 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
org.globus.cog.gui.util.GridContainer
org.globus.cog.gui.setup.components.AbstractSetupComponent
Implementation of the basic methods for a SetupComponent
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
| 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 java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
AbstractSetupComponent(String title,
String descPath)
Constructor for the AbstractSetupComponent object |
|
| Method Summary | |
void |
addComponentStatusChangedListener(ComponentStatusChangedListener CSCL)
Adds a listener to be notified of status changes for this component |
void |
addDependency(SetupComponent SC)
Adds a dependency for this component. |
boolean |
canFinish()
Verifies if this component allows the termination of the setup |
boolean |
completed()
Completed means that it can have a passed/failed status |
boolean |
confirmBogusSettings()
Displays a dialog allowing the user to confirm settings that appear not to be correct |
void |
displayErrorMessage()
Displays an error message. |
void |
enter()
Called to activate this component |
boolean |
finish()
Called after the user pressed the finish button |
protected void |
fireComponentStatusChangedEvent()
|
LinkedList |
getDependencies()
Returns the dependencies of this component |
Component |
getLabel()
Returns this component's label |
String |
getTitle()
Returns the title of this component |
Object |
getVisualComponent()
Returns the visual (swing) component of this component |
boolean |
isCompleted()
|
boolean |
leave()
Called before de-activating this component If this method fails (by returning false) the parent container should not continue the
activation of the next component. |
void |
setCompleted(boolean b)
|
void |
setErrorMessage(String Message)
Sets the error message to be (eventually) later used by confirmBogusSettings() or displayErrorMessage() |
void |
setLabel(Component label)
Sets the label of this component. |
boolean |
verify()
Verifies if the settings in this component appear to be correct |
| Methods inherited from class org.globus.cog.gui.util.GridContainer |
getPreferredSize, setGridSize, setPreferredSize, setPreferredSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbstractSetupComponent(String title,
String descPath)
title - The title of the componentdescPath - The path to the main text| Method Detail |
public void addDependency(SetupComponent SC)
true
addDependency in interface SetupComponentSC - The dependency to be addedpublic void enter()
enter in interface SetupComponentpublic boolean leave()
false) the parent container should not continue the
activation of the next component.
leave in interface SetupComponenttrue if the de-activation is confirmedpublic String getTitle()
SetupComponent
getTitle in interface SetupComponentpublic Object getVisualComponent()
SetupComponent
getVisualComponent in interface SetupComponentpublic void addComponentStatusChangedListener(ComponentStatusChangedListener CSCL)
SetupComponent
addComponentStatusChangedListener in interface SetupComponentCSCL - protected void fireComponentStatusChangedEvent()
public LinkedList getDependencies()
SetupComponent
getDependencies in interface SetupComponentpublic boolean completed()
completed in interface SetupComponentpublic void setLabel(Component label)
SetupComponent
setLabel in interface SetupComponentlabel - A Swing Component to be used as the labelpublic boolean canFinish()
canFinish in interface SetupComponentpublic Component getLabel()
SetupComponent
getLabel in interface SetupComponentpublic boolean confirmBogusSettings()
public void displayErrorMessage()
public void setErrorMessage(String Message)
Message - The new errorMessage valuepublic boolean verify()
SetupComponent
verify in interface SetupComponentpublic boolean finish()
finish in interface SetupComponentpublic boolean isCompleted()
public void setCompleted(boolean b)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||