Venice 0.751beta

nz.org.venice.ui
Class TextViewDialog

java.lang.Object
  extended bynz.org.venice.ui.TextViewDialog

public class TextViewDialog
extends java.lang.Object

A dialog which display a text document to the user.

Author:
Andrew Leppard

Field Summary
static int FIXED_WIDTH
          Display text with a fixed-width font.
static int PROPORTIONAL
          Display text with a proportional width font.
 
Method Summary
static void showTextDialog(java.lang.String text, java.lang.String title)
          Displays the text in a new dialog and waits for the user to cancel the dialog.
static int showTextDialog(java.lang.String text, java.lang.String title, int rows, int columns, int fontType, java.lang.String[] buttons)
          Displays the text in a new dialog and waits for the user to cancel the dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIXED_WIDTH

public static final int FIXED_WIDTH
Display text with a fixed-width font.

See Also:
Constant Field Values

PROPORTIONAL

public static final int PROPORTIONAL
Display text with a proportional width font.

See Also:
Constant Field Values
Method Detail

showTextDialog

public static void showTextDialog(java.lang.String text,
                                  java.lang.String title)
Displays the text in a new dialog and waits for the user to cancel the dialog.

Parameters:
text - the text to display
title - the title of the dialog

showTextDialog

public static int showTextDialog(java.lang.String text,
                                 java.lang.String title,
                                 int rows,
                                 int columns,
                                 int fontType,
                                 java.lang.String[] buttons)
Displays the text in a new dialog and waits for the user to cancel the dialog. This function allows the caller to provide a list of choices to the user and also to specify the size of the text box in characters.

Parameters:
text - the text to display
title - the title of the dialog
rows - the height of the text box in characters
columns - the width of the text box in characters
fontType - type of font, either FIXED_WIDTH or PROPORTIONAL.
buttons - a list of choices to be given to the user
Returns:
button pressed

Venice 0.751beta