de.hillenbrand.jreqtools
Class PropertyFileEditorRequester

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

public class PropertyFileEditorRequester
extends OkCancelRequester

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


Field Summary
protected  java.util.Hashtable<java.lang.String,javax.swing.text.JTextComponent> components
           
protected  PropertyEditorElement[] elements
           
protected  java.io.File file
           
protected  HLabel label
           
 
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
PropertyFileEditorRequester(java.io.File file, PropertyEditorElement[] elements)
          Constructs a new FileEditorRequester with a default title and message, and a given file.
PropertyFileEditorRequester(java.lang.String message, java.io.File file, PropertyEditorElement[] elements)
          Constructs a new FileEditorRequester with a default title, a given message, and file.
PropertyFileEditorRequester(java.lang.String title, java.lang.String message, java.io.File file, PropertyEditorElement[] elements)
          Constructs a new FileEditorRequester with a given title, message, and file.
 
Method Summary
 java.io.File getFile()
          Returns the value of the file property.
protected  HPanel 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.
 
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

label

protected final HLabel label

components

protected final java.util.Hashtable<java.lang.String,javax.swing.text.JTextComponent> components

file

protected java.io.File file

elements

protected PropertyEditorElement[] elements
Constructor Detail

PropertyFileEditorRequester

public PropertyFileEditorRequester(java.io.File file,
                                   PropertyEditorElement[] elements)
Constructs a new FileEditorRequester with a default title and message, and a given file.

Parameters:
file -

PropertyFileEditorRequester

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

Parameters:
message -
file -

PropertyFileEditorRequester

public PropertyFileEditorRequester(java.lang.String title,
                                   java.lang.String message,
                                   java.io.File file,
                                   PropertyEditorElement[] elements)
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:

getUserPanel

protected HPanel 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 -