Package org.omegat.gui.align
Class SplittingPanelController
- java.lang.Object
-
- org.omegat.gui.align.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.
-
-
-
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 splitreference
- 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
-
-