Class MyInputHelper

java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.MyInputHelper
All Implemented Interfaces:
HelperClass

public class MyInputHelper
extends Object
implements HelperClass
  • Constructor Details

    • MyInputHelper

      public MyInputHelper()
  • Method Details

    • getInput

      public static Object[] getInput​(Object description, String title, Object... parameters)
      Parameters:
      description - In case the description is of type JComponent, this GUI element will be shown at the top of the dialog. If this parameter is of type String, a JLabel object will show the provided text. If the description text starts with "[OK]", only the OK and not the Cancel button will be shown. If the description text starts with "[]", no button will be shown. If the description starts with "[Hello]", the single OK Button will be titled "Hello". If the description starts with [Yes;No], two buttons, titles 'Yes' and 'No' will be shown.
      title - The shown dialog window will use this value as its window title.
      parameters -
      Returns:
      The return value depends on the selected button (OK/Cancel).
    • getMultipleInput

      public static ArrayList<ArrayList<Object>> getMultipleInput​(Object... desc_title_and_params)