net.quartzware
Class Entry

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--net.quartzware.Entry

public class Entry
extends java.util.Vector

Entry Encapsulates the data and function of an entry in the JTable in an EditorWindow This is equivalent to one row in an EditorWindow.

See Also:
Serialized Form

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Entry(ResBundle parent, java.lang.String key, Value val, java.lang.String comment)
          Constructs an Entry from the components of an entry
 
Method Summary
 boolean editValue()
          This function will allow the user to edit the value in this entry.
 java.lang.String getComment()
          Returns the unique key name in this entry.
 java.lang.String getKey()
          Returns the unique key name in this entry.
 ResBundle getParent()
          Returns a reference to the object which owns this one.
 Value getParentValue()
          Returns the unique key name in this entry.
 Value getValue()
          Returns the unique key name in this entry.
 void setValue(java.lang.String val)
           
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Entry

public Entry(ResBundle parent,
             java.lang.String key,
             Value val,
             java.lang.String comment)
Constructs an Entry from the components of an entry
Parameters:
key - the unique key used to identify this entry
val - the value that this entry will hold
comment - a comment about the value PRE: parent, key, val, and comment are not null POST: This class is created
Method Detail

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.
Returns:
Whether to do in label editing of this value PRE: This entry is selected in the editor window. POST: The value that this entry contains may be modified.

setValue

public void setValue(java.lang.String val)

getKey

public java.lang.String getKey()
Returns the unique key name in this entry.
Returns:
the key owned by this Entry

getValue

public Value getValue()
Returns the unique key name in this entry.
Returns:
the key owned by this Entry

getParentValue

public Value getParentValue()
Returns the unique key name in this entry.
Returns:
the key owned by this Entry

getComment

public java.lang.String getComment()
Returns the unique key name in this entry.
Returns:
the key owned by this Entry

getParent

public ResBundle getParent()
Returns a reference to the object which owns this one.
Returns:
a ResBundle