org.globus.cog.gui.setup.components
Interface SetupComponent

All Known Implementing Classes:
AbstractSetupComponent, CertificateAuthorityComponent, DateComponent, IPAddressComponent, LicenseComponent, LocalProxyComponent, PreviousSetupComponent, PrivateKeyComponent, PropertiesFileComponent, RegistrationComponent, UserCertificateComponent

public interface SetupComponent


Method Summary
 void addComponentStatusChangedListener(ComponentStatusChangedListener CSCL)
          Adds a listener to be notified of status changes for this component
 void addDependency(SetupComponent Dep)
          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 state This is rather a hint for the parent container
 void enter()
          Called to activate this component
 boolean finish()
          Called after the user pressed the finish button
 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 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 setLabel(Component Label)
          Sets the label of this component.
 boolean verify()
          Verifies if the settings in this component appear to be correct
 

Method Detail

enter

public void enter()
Called to activate this component


leave

public 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.

Returns:
true if the de-activation is confirmed

finish

public boolean finish()
Called after the user pressed the finish button

Returns:
Description of the Return Value

getTitle

public String getTitle()
Returns the title of this component

Returns:

getVisualComponent

public Object getVisualComponent()
Returns the visual (swing) component of this component

Returns:

addComponentStatusChangedListener

public void addComponentStatusChangedListener(ComponentStatusChangedListener CSCL)
Adds a listener to be notified of status changes for this component

Parameters:
CSCL -

addDependency

public void addDependency(SetupComponent Dep)
Adds a dependency for this component. The container should check the dependencies and enable this component when the verify methods of the dependencies are all true

Parameters:
Dep - The feature to be added to the Dependency attribute

getDependencies

public LinkedList getDependencies()
Returns the dependencies of this component

Returns:

completed

public boolean completed()
Completed means that it can have a passed/failed state This is rather a hint for the parent container

Returns:
Description of the Return Value

verify

public boolean verify()
Verifies if the settings in this component appear to be correct

Returns:
Description of the Return Value

canFinish

public boolean canFinish()
Verifies if this component allows the termination of the setup

Returns:
Description of the Return Value

setLabel

public void setLabel(Component Label)
Sets the label of this component. A label is a Swing component providing a representation of this component.

Parameters:
Label - A Swing Component to be used as the label

getLabel

public Component getLabel()
Returns this component's label

Returns: