net.quartzware
Class BinaryPath
java.lang.Object
|
+--net.quartzware.Value
|
+--net.quartzware.BinaryPath
- All Implemented Interfaces:
- java.lang.Cloneable
- public class BinaryPath
- extends Value
BinaryPathDlg
A Class that stores the path to a binary file. The contents of the file are
never seen by this class. It only stores the path to the binary file. A binary
file can be of any type (GIF, JPG, DOC) and RBEdit does not check the type. The
programmer must know what type of file to expect.
Constructor Summary |
BinaryPath()
Default Constructor
PRE: none
POST: The object is created. |
BinaryPath(java.io.File path)
Constructs a BinaryPath object using the given path. |
BinaryPath(java.lang.String path)
Constructs a BinaryPath object using the given path. |
Method Summary |
boolean |
editValue()
This function will allow the user to edit the value in this entry. |
void |
setValue(java.lang.String newValue)
Sets the path variable with newValue. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BinaryPath
public BinaryPath()
- Default Constructor
PRE: none
POST: The object is created.
BinaryPath
public BinaryPath(java.io.File path)
- Constructs a BinaryPath object using the given path.
- Parameters:
path
- the specified path to the binary file (File format)
PRE: path not equal to null
POST: The object is created.
BinaryPath
public BinaryPath(java.lang.String path)
- Constructs a BinaryPath object using the given path.
- Parameters:
path
- the specified path to the binary file (File format)
PRE: path not equal to null
POST: The object is created.
editValue
public boolean editValue()
- Description copied from class:
Value
- This function will allow the user to edit the value in this entry. It
returns true if in-label editing is required, but false if a dialog will
handle the editing.
- Overrides:
editValue
in class Value
- Following copied from class:
net.quartzware.Value
- Returns:
- Whether to do in label editing of this value
PRE: The entry that this Value is a part of must be in an open Edior
Window
POST: This value may be modified.
setValue
public void setValue(java.lang.String newValue)
- Sets the path variable with newValue. Catches an exception if format of path is
incorrect.
PRE: a string is passed to the function
POST: path is set or exception raised
- Overrides:
setValue
in class Value
- Following copied from class:
net.quartzware.Value
- Parameters:
newValue
- The new value for the string.
PRE: newValue is not null.
POST: none
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object