GrammarScope  4.0.0
Static Public Member Functions | Private Member Functions | List of all members
grammarscope.common.dialog.DialogUtils Class Reference

Static Public Member Functions

static JFileChooser makeFileDialog (final String title, final String extension, final String description, final String base)
 
static String input (final Frame owner)
 
static Integer inputInteger (final int min, final int max, final Frame owner)
 
static void message (final int type, final String message)
 
static void center (final Component component)
 

Private Member Functions

 DialogUtils ()
 

Detailed Description

Utilities

Author
Bernard Bou

Constructor & Destructor Documentation

◆ DialogUtils()

grammarscope.common.dialog.DialogUtils.DialogUtils ( )
private

Member Function Documentation

◆ center()

static void grammarscope.common.dialog.DialogUtils.center ( final Component  component)
static

Center on screen

Parameters
componentcomponent to center

◆ input()

static String grammarscope.common.dialog.DialogUtils.input ( final Frame  owner)
static

Input string from user

Parameters
ownerowner frame
Returns
input

◆ inputInteger()

static Integer grammarscope.common.dialog.DialogUtils.inputInteger ( final int  min,
final int  max,
final Frame  owner 
)
static

Input string from user

Parameters
minmin
maxmax
ownerowner frame
Returns
integer input in the min-max range

◆ makeFileDialog()

static JFileChooser grammarscope.common.dialog.DialogUtils.makeFileDialog ( final String  title,
final String  extension,
final String  description,
final String  base 
)
static

Make file dialog

Parameters
titledialog title
extensionfile extension
descriptiondescription of file type
basebase directory
Returns
JFileChooser

◆ message()

static void grammarscope.common.dialog.DialogUtils.message ( final int  type,
final String  message 
)
static

Display message

Parameters
typetype
messagemessage

The documentation for this class was generated from the following file: