Class InteractionDisplayLocationHelper


  • public class InteractionDisplayLocationHelper
    extends Object
    Helper class for displaying panels in the notification area.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • InteractionDisplayLocationHelper

        public InteractionDisplayLocationHelper()
    • Method Detail

      • display

        public static String display​(Actor context,
                                     GUIHelper.DialogCommunication comm,
                                     GUIHelper.InputPanelWithComboBox panel,
                                     int btnJustification)
        Displays the panel in the notification area.
        Parameters:
        context - the flow context to use
        comm - the interaction communication
        panel - the panel to display
        btnJustification - the justification of the OK/Cancel buttons (see FlowLayout)
        Returns:
        the selected button, null if stopped
      • display

        public static String display​(Actor context,
                                     GUIHelper.DialogCommunication comm,
                                     GUIHelper.InputPanelWithTextArea panel,
                                     int btnJustification)
        Displays the panel in the notification area.
        Parameters:
        context - the flow context to use
        comm - the interaction communication
        panel - the panel to display
        btnJustification - the justification of the OK/Cancel buttons (see FlowLayout)
        Returns:
        the selected button, null if stopped
      • display

        public static Boolean display​(Actor context,
                                      GUIHelper.DialogCommunication comm,
                                      JPanel panel,
                                      int btnJustification)
        Displays the panel in the notification area.
        Parameters:
        context - the flow context to use
        comm - the interaction communication
        panel - the panel to display
        btnJustification - the justification of the OK/Cancel buttons (see FlowLayout)
        Returns:
        whether OK (true) or Cancel (false) was selected, null if stopped
      • display

        public static Boolean display​(Actor context,
                                      GUIHelper.DialogCommunication comm,
                                      JPanel panel,
                                      int btnJustification,
                                      String icon)
        Displays the panel in the notification area.
        Parameters:
        context - the flow context to use
        comm - the interaction communication
        panel - the panel to display
        btnJustification - the justification of the OK/Cancel buttons (see FlowLayout)
        icon - the icon to display, null for none
        Returns:
        whether OK (true) or Cancel (false) was selected, null if stopped