Class Progress

All Implemented Interfaces:
Animation, Editable, ActionListener<NetworkEvent>, StyleListener, Iterable<Component>

public class Progress extends Dialog implements ActionListener<NetworkEvent>
Displays a progress dialog with the ability to cancel an ongoing operation
  • Constructor Details

    • Progress

      public Progress(String title, ConnectionRequest request)

      Binds the progress UI to the completion of this request

      Parameters
      • title: the title of the progress dialog

      • request: the network request pending

    • Progress

      public Progress(String title, ConnectionRequest request, boolean showPercentage)

      Binds the progress UI to the completion of this request

      Parameters
      • title: the title of the progress dialog

      • request: the network request pending

      • showPercentage: shows percentage on the progress bar

  • Method Details

    • actionCommand

      protected void actionCommand(Command cmd)

      Invoked to allow subclasses of form to handle a command from one point rather than implementing many command instances

      Parameters
      • cmd: the action command
      Overrides:
      actionCommand in class Dialog
    • dispose

      public void dispose()
      Closes the current form and returns to the previous form, releasing the EDT in the process
      Overrides:
      dispose in class Dialog
    • isDisposeOnCompletion

      public boolean isDisposeOnCompletion()
      Returns

      the disposeOnCompletion

    • setDisposeOnCompletion

      public void setDisposeOnCompletion(boolean disposeOnCompletion)
      Parameters
      • disposeOnCompletion: the disposeOnCompletion to set
    • actionPerformed

      public void actionPerformed(NetworkEvent ev)

      Invoked when an action occurred on a component

      Parameters
      • evt: @param evt event object describing the source of the action as well as its trigger
      Specified by:
      actionPerformed in interface ActionListener<NetworkEvent>
    • isAutoShow

      public boolean isAutoShow()

      Shows the progress automatically when the request processing is started

      Returns

      the autoShow

    • setAutoShow

      public void setAutoShow(boolean autoShow)

      Shows the progress automatically when the request processing is started

      Parameters
      • autoShow: the autoShow to set