Class WizardPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
FilesystemExplorerWizardPanel

public abstract class WizardPanel extends JPanel
See Also:
  • Field Details

    • arguments

      protected org.gvsig.tools.arguments.Arguments arguments
  • Constructor Details

    • WizardPanel

      public WizardPanel()
  • Method Details

    • addWizardListener

      public void addWizardListener(WizardListener listener)
    • callError

      public void callError(Exception descripcion)
    • removeWizardListener

      public void removeWizardListener(WizardListener listener)
    • callStateChanged

      public void callStateChanged(boolean finishable)
    • setTabName

      protected void setTabName(String name)
    • getTabName

      public String getTabName()
    • initWizard

      public abstract void initWizard()
    • execute

      public abstract void execute()
    • executeWizard

      public Object executeWizard()
      Executes the wizard and returns anything created in the process.
      Returns:
      anything created in the process
    • close

      public abstract void close()
    • getParameters

      public abstract org.gvsig.fmap.dal.DataStoreParameters[] getParameters()
    • getMapCtrl

      public org.gvsig.fmap.mapcontrol.MapControl getMapCtrl()
      You can use it to interact with the MapControl component that will receive the new layer, in order to get user feedback (for instance a bounding box). Check the isMapControlAvailable() method before accessing the MapControl because it may not be available (for instance when adding layers to a MapContext not associated with a View). For the moment, this method will return a non-null MapControl for compatibility reasons, but you should still check isMapControlAvailable() to be sure it is a valid one, as it could only be a fake MapControl. It is recommended to use getMapContext() method when no interaction is needed with the map user interface (for instance to get the active projection, visible extent, etc)
      Returns:
      Returns the mapCtrl.
    • setMapCtrl

      public void setMapCtrl(org.gvsig.fmap.mapcontrol.MapControl mapCtrl)
      Sets the MapControl that will receive the new layer
      Parameters:
      mapCtrl - The mapCtrl to set.
    • getMapContext

      public org.gvsig.fmap.mapcontext.MapContext getMapContext()
      You can use it to extract information from the MapContext that will receive the new layer. For example, projection to use, or visible extent.
      Returns:
      Returns the MapContext.
    • setMapContext

      public void setMapContext(org.gvsig.fmap.mapcontext.MapContext mapContext)
      Sets the MapContext that will receive the new layer
      Parameters:
      mapContext - The mapContext to set.
    • isMapControlAvailable

      public boolean isMapControlAvailable()
      Checks whether the MapControl is available. The MapControl may not be available in some circumstances, for instance when adding layers to a MapContext not associated with a View. A MapContext should always be available on the getMapContext() method.
      Returns:
      true if the MapControl is available, false otherwise
    • doAddLayer

      protected void doAddLayer(String layerName, org.gvsig.fmap.dal.DataStoreParameters parameters)
    • doAddLayer

      protected void doAddLayer(org.gvsig.fmap.mapcontrol.MapControl mapControl, String layerName, org.gvsig.fmap.dal.DataStoreParameters parameters)
      Parameters:
      mapControl -
      layerName -
      parameters -
    • areSettingsValid

      public boolean areSettingsValid()
      This method is called for example when user changes tab in add layer dialog (new tab's settings are valid?)
      Returns:
      whether current wizard settings are enough (for example, to enable an Accept button in a container)
    • fixCRS

      protected void fixCRS(org.gvsig.fmap.dal.DataStoreParameters params)
    • addArguments

      public boolean addArguments(org.gvsig.tools.arguments.Arguments args)
    • addTask

      protected void addTask(Thread task)
    • startTask

      protected void startTask(Thread task)
    • clearTasks

      protected void clearTasks()
    • waitTasks

      public void waitTasks(long timeoutms)