games.strategy.engine.data.properties
Class FileProperty

java.lang.Object
  extended by games.strategy.engine.data.properties.AEditableProperty
      extended by games.strategy.engine.data.properties.FileProperty
All Implemented Interfaces:
IEditableProperty, java.io.Serializable, java.lang.Comparable

public class FileProperty
extends AEditableProperty

User editable property representing a file.

Presents a clickable label with the currently selected file name, through which a file dialog panel is accessible to change the file.

Version:
$LastChangedDate: 2007-12-31 11:57:52 -0800 (Mon, 31 Dec 2007) $
Author:
Lane O.B. Schwartz
See Also:
Serialized Form

Constructor Summary
FileProperty(java.lang.String name, java.lang.String fileName)
          Construct a new file property.
 
Method Summary
 javax.swing.JComponent getEditorComponent()
          Gets a Swing component to display this property.
 java.lang.Object getValue()
          Gets the file associated with this property.
 
Methods inherited from class games.strategy.engine.data.properties.AEditableProperty
compareTo, equals, getName, getViewComponent, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileProperty

public FileProperty(java.lang.String name,
                    java.lang.String fileName)
Construct a new file property.

Parameters:
name - The name of the property
fileName - The name of the file to be associated with this property
Method Detail

getValue

public java.lang.Object getValue()
Gets the file associated with this property.

Returns:
The file associated with this property

getEditorComponent

public javax.swing.JComponent getEditorComponent()
Gets a Swing component to display this property.

Returns:
a non-editable JTextField