Class SplittingPanelController


  • public class SplittingPanelController
    extends java.lang.Object
    Controller for a simple text splitting dialog.
    • Constructor Summary

      Constructors 
      Constructor Description
      SplittingPanelController​(java.lang.String text, java.lang.String reference)
      Create the controller with the text to be split and an optional hint to the user.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] show​(java.awt.Window parent)
      Show the dialog.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SplittingPanelController

        public SplittingPanelController​(java.lang.String text,
                                        java.lang.String reference)
        Create the controller with the text to be split and an optional hint to the user.
        Parameters:
        text - The text to be split
        reference - Reference text to serve as a hint to the user
    • Method Detail

      • show

        public java.lang.String[] show​(java.awt.Window parent)
        Show the dialog. The dialog is modal, so this method will block until complete.

        If the user cancels, the result array will contain as its sole member the original string provided to the constructor. Otherwise the array will contain the (trimmed) results of splitting the original string.

        Parameters:
        parent - The parent window of the dialog
        Returns:
        The result array