de.hillenbrand.jreqtools
Class FileEditorRequester

java.lang.Object
  extended by de.hillenbrand.jreqtools.AbstractRequester
      extended by de.hillenbrand.jreqtools.OkCancelRequester
          extended by de.hillenbrand.jreqtools.FileEditorRequester

public class FileEditorRequester
extends OkCancelRequester

A Requester that loads a file, and display is for editing.


Field Summary
protected  java.io.File file
           
protected  javax.swing.JLabel label
           
protected  HEditorPane text
           
 
Fields inherited from class de.hillenbrand.jreqtools.OkCancelRequester
answer, cancel, comment, drawFirstSeparator, drawSecondSeparator, icon, ok
 
Fields inherited from class de.hillenbrand.jreqtools.AbstractRequester
CANCEL, dialog, listener, message, OK, title
 
Constructor Summary
FileEditorRequester(java.io.File file)
          Constructs a new FileEditorRequester with a default title and message, and a given file.
FileEditorRequester(java.lang.String message, java.io.File file)
          Constructs a new FileEditorRequester with a default title, a given message, and file.
FileEditorRequester(java.lang.String title, java.lang.String message, java.io.File file)
          Constructs a new FileEditorRequester with a given title, message, and file.
 
Method Summary
 java.io.File getFile()
          Returns the value of the file property.
 java.awt.Font getFont()
          Returns the value of the font property.
protected  javax.swing.JPanel getUserPanel()
           
protected  void ok()
           
protected  void prepareForRequest()
          This method is being called directly before the dialog will be shown.
 void setFile(java.io.File f)
          Assigns the value of the file property.
 void setFont(java.awt.Font arg)
          Assigns the value of the font property.
 
Methods inherited from class de.hillenbrand.jreqtools.OkCancelRequester
cancel, createContentPane, getComment, getDefaultButton, getIcon, getOkTriggerComponent, getPreferredRequesterSize, getReturnValue, isDrawFirstSeparator, isDrawSecondSeparator, setCancelButtonText, setComment, setDrawFirstSeparator, setDrawSecondSeparator, setDrawSeparators, setIcon, setOkButtonText, simulateCancelPressed, simulateOkPressed, validateData
 
Methods inherited from class de.hillenbrand.jreqtools.AbstractRequester
_checkLocation, _checkLocation, _checkSize, _checkSize, checkForClass, enableHelpKey4JavaHelp, getBounds, getLocation, getMessage, getSize, getTitle, request, request, request, setBorder, setBounds, setBounds, setLocation, setLocation, setMessage, setSize, setSize, setTitle, setVisible, showError, showException, showMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

protected final HEditorPane text

label

protected final javax.swing.JLabel label

file

protected java.io.File file
Constructor Detail

FileEditorRequester

public FileEditorRequester(java.io.File file)
Constructs a new FileEditorRequester with a default title and message, and a given file.

Parameters:
file -

FileEditorRequester

public FileEditorRequester(java.lang.String message,
                           java.io.File file)
Constructs a new FileEditorRequester with a default title, a given message, and file.

Parameters:
message -
file -

FileEditorRequester

public FileEditorRequester(java.lang.String title,
                           java.lang.String message,
                           java.io.File file)
Constructs a new FileEditorRequester with a given title, message, and file.

Parameters:
title -
message -
file -
Method Detail

getFile

public java.io.File getFile()
Returns the value of the file property.

Returns:

getFont

public java.awt.Font getFont()
Returns the value of the font property.

Returns:

getUserPanel

protected javax.swing.JPanel getUserPanel()
Specified by:
getUserPanel in class OkCancelRequester

ok

protected void ok()
Overrides:
ok in class OkCancelRequester

prepareForRequest

protected void prepareForRequest()
Description copied from class: AbstractRequester
This method is being called directly before the dialog will be shown.

Overrides:
prepareForRequest in class OkCancelRequester

setFile

public void setFile(java.io.File f)
Assigns the value of the file property.

Parameters:
f -

setFont

public void setFont(java.awt.Font arg)
Assigns the value of the font property.

Parameters:
arg -