net.quartzware
Class StringVal
java.lang.Object
|
+--net.quartzware.Value
|
+--net.quartzware.StringVal
- public class StringVal
- extends Value
StringVal is a data type which contains a line of plain text.
Fields inherited from class net.quartzware.Value |
parent |
Constructor Summary |
StringVal(java.lang.String str)
Constructs a StringVal with a given String. |
Method Summary |
boolean |
editValue()
This function will allow the user to edit the value in this entry. |
void |
setValue(java.lang.String newValue)
This function sets the value of a string |
java.lang.String |
toString()
This function returns a string. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
StringVal
public StringVal(java.lang.String str)
- Constructs a StringVal with a given String.
- Parameters:
str
- the name of a String.
PRE: str is not null
POST: all data members have been initialized
an action listener has been added.
editValue
public boolean editValue()
- 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
- 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)
- This function sets the value of a string
- Overrides:
- setValue in class Value
- Parameters:
newValue
- The new value for the string.
PRE: newValue is not null.
POST: the new string is created.
toString
public java.lang.String toString()
- This function returns a string.
- Overrides:
- toString in class java.lang.Object
- Returns:
- a string.
PRE: a cell in the resource bundle is clicked.
POST: The String is used.