net.aerith.misao.gui.dialog
Class MessagesDialog

java.lang.Object
  |
  +--net.aerith.misao.gui.dialog.MessagesDialog

public class MessagesDialog
extends java.lang.Object

The MessagesDialog represents a dialog with string messages and a button to save the messages.


Inner Class Summary
protected  class MessagesDialog.SaveListener
          The SaveListener is a listener class of menu selection to save the content messages.
 
Field Summary
protected  javax.swing.JButton button
          The button to save.
protected  java.util.Vector contents
          The content meassages.
protected  java.util.Vector contents_saved
          The content meassages to save.
protected  java.lang.String header
          The header meassage.
private static int max_contents
          The maximum number of contents.
 
Constructor Summary
MessagesDialog(java.lang.String header, java.util.Vector contents)
          Constructs a MessagesDialog.
 
Method Summary
 void setContentsToSave(java.util.Vector contents)
          Sets the content messages to save.
 void show(java.awt.Component parent)
          Shows a dialog.
 void show(java.awt.Component parent, java.lang.String title, int type)
          Shows a dialog.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

header

protected java.lang.String header
The header meassage. It can be null.

contents

protected java.util.Vector contents
The content meassages.

contents_saved

protected java.util.Vector contents_saved
The content meassages to save.

button

protected javax.swing.JButton button
The button to save.

max_contents

private static final int max_contents
The maximum number of contents.
Constructor Detail

MessagesDialog

public MessagesDialog(java.lang.String header,
                      java.util.Vector contents)
Constructs a MessagesDialog.
Parameters:
header - the header message. It can be null.
contents - the content messages.
Method Detail

setContentsToSave

public void setContentsToSave(java.util.Vector contents)
Sets the content messages to save.
Parameters:
contents - the content messages to save.

show

public void show(java.awt.Component parent)
Shows a dialog.
Parameters:
parent - the parent component.

show

public void show(java.awt.Component parent,
                 java.lang.String title,
                 int type)
Shows a dialog.
Parameters:
parent - the parent component.
title - the title.
type - the type.