net.quartzware
Class Entry
java.lang.Object
|
+--net.quartzware.Entry
- public class Entry
- extends java.lang.Object
Encapsulates the data and function of an entry in the JTable in an EditorWindow
This is equivalent to one row of the JTable.
Constructor Summary |
Entry()
Default Constructor |
Entry(java.lang.String key,
Value val, java.lang.String comment)
Constructs a Entry from the components of an entry |
Method Summary |
void |
editValue()
This value will allow the user to edit it, either by popping up a dialog
or editing the label directly. |
java.lang.String |
getKey()
Returns the unique key that this entry represents. |
javax.swing.JLabel |
getLabel()
Returns a label which this value has drawn upon. |
ResBundle |
getParent()
Returns a reference to the object which owns this one. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
comment
private java.lang.String comment
value
private Value value
key
private java.lang.String key
parent
private ResBundle parent
Entry
public Entry()
- Default Constructor
Entry
public Entry(java.lang.String key,
Value val,
java.lang.String comment)
- Constructs a Entry from the components of an entry
- Parameters:
key
- the unique key used to identify this entryval
- the value that this entry will holdcomment
- a comment about the value
getLabel
public javax.swing.JLabel getLabel()
- Returns a label which this value has drawn upon.
- Returns:
- a label which represents the contents of this value
editValue
public void editValue()
- This value will allow the user to edit it, either by popping up a dialog
or editing the label directly.
- Parameters:
msg
- the message to use to construct this Message
getKey
public java.lang.String getKey()
- Returns the unique key that this entry represents.
- Returns:
- the key owned by this Entry
getParent
public ResBundle getParent()
- Returns a reference to the object which owns this one.
- Returns:
- a ResBundle