Class ProcessDialog

  • All Implemented Interfaces:
    ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, IProcessUI

    public class ProcessDialog
    extends CFrame
    implements ActionListener, IProcessUI
    Dialog to Start process. Displays information about the process and lets the user decide to start it and displays results (optionally print them). Calls ProcessCtl to execute.
    Version:
    $Id: ProcessDialog.java,v 1.2 2006/07/30 00:51:27 jjanke Exp $
    Author:
    Jorg Janke, Low Heng Sin - Merge process parameter dialog into process dialog., arboleda - globalqss - Implement ShowHelp option on processes and reports, Teo Sarca, SC ARHIPAC SERVICE SRL
  • BF [ 1893525 ] ProcessDialog: Cannot select the text from text field
  • BF [ 1963128 ] Running a process w/o trl should display an error
  • See Also:
    Serialized Form
    • Constructor Detail

      • ProcessDialog

        public ProcessDialog​(int AD_Process_ID,
                             boolean isSOTrx)
        Deprecated.
        Dialog to start Process
        Parameters:
        AD_Process_ID - process
        isSOTrx - is sales trx
      • ProcessDialog

        public ProcessDialog​(GraphicsConfiguration gc,
                             int AD_Process_ID,
                             boolean isSOTrx)
        Dialog to start Process
        Parameters:
        gc -
        AD_Process_ID - process
        isSOTrx - is sales trx
    • Method Detail

      • setVisible

        public void setVisible​(boolean visible)
        Set Visible (set focus to OK if visible)
        Overrides:
        setVisible in class Window
        Parameters:
        visible - true if visible
      • dispose

        public void dispose()
        Dispose
        Overrides:
        dispose in class Window
      • init

        public boolean init()
        Dynamic Init
        Returns:
        true, if there is something to process (start from menu)
      • lockUI

        public void lockUI​(ProcessInfo pi)
        Lock User Interface Called from the Worker before processing
        Specified by:
        lockUI in interface IProcessUI
        Parameters:
        pi - process info
      • unlockUI

        public void unlockUI​(ProcessInfo pi)
        Unlock User Interface. Called from the Worker when processing is done
        Specified by:
        unlockUI in interface IProcessUI
        Parameters:
        pi - process info
      • isUILocked

        public boolean isUILocked()
        Is the UI locked (Internal method)
        Specified by:
        isUILocked in interface IProcessUI
        Returns:
        true, if UI is locked
      • executeASync

        public void executeASync​(ProcessInfo pi)
        Method to be executed async. Called from the ASyncProcess worker
        Parameters:
        pi - process info
      • statusUpdate

        public void statusUpdate​(String status)
        Description copied from interface: IProcessUI
        Provide status feedback to user
        Specified by:
        statusUpdate in interface IProcessUI
      • ask

        public void ask​(String message,
                        Callback<Boolean> callback)
        Description copied from interface: IProcessUI
        Prompt for user input. Example Usage in process:
                    final StringBuffer answer = new StringBuffer();
                        aProcessMonitor.ask(adMessage, new Callback() {
        
        Specified by:
        ask in interface IProcessUI
      • download

        public void download​(File file)
        Description copied from interface: IProcessUI
        add to list of file available for download after process end
        Specified by:
        download in interface IProcessUI