|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.quartzware.ResBundle
Encapsulates the data and functions of a 'resource bundle'.
Constructor Summary | |
ResBundle(Entry[] entries,
java.lang.String suffix)
Constructs a ResBundle from the given array of entries |
|
ResBundle(java.lang.String suffix)
Default Constructor PRE: none POST: This class is created |
|
ResBundle(java.util.Vector entries,
java.lang.String suffix)
Constructs a ResBundle from the given vector of entries |
Method Summary | |
void |
addEntry(Entry e)
Adds a new key to this ResBundle |
java.util.Vector |
getAllEntries()
Returns all entries held by this ResBundle |
Entry |
getEntry(int idx)
Returns the nth entry held by this ResBundle |
Entry |
getParentEntry(java.lang.String key)
Returns all entries held by this ResBundle |
java.lang.String |
getSuffix()
Returns suffix of this ResBundle |
boolean |
isDirty()
Returns whether or not this ResBundle has been modified since the last save |
void |
removeEntry(java.lang.String key)
Removes the entry corresponding to 'key' from this resbundle. |
void |
setDirty(boolean dirty)
Tell this ResBundle whether it is dirty or not. |
void |
setEditorWindow(EditorWindow ew)
Tell this EditorWindow who its parent is. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ResBundle(java.lang.String suffix)
public ResBundle(Entry[] entries, java.lang.String suffix)
entries
- an array of entries from which to create this ResBundle
PRE: entries does not equal null
POST: this class is createdpublic ResBundle(java.util.Vector entries, java.lang.String suffix)
entries
- a vector of entries from which to create this ResBundle
PRE: entries does not equal null
POST: this class is createdMethod Detail |
public java.lang.String getSuffix()
public Entry getParentEntry(java.lang.String key)
public java.util.Vector getAllEntries()
public Entry getEntry(int idx)
idx
- the index of the entry to returnpublic void removeEntry(java.lang.String key)
entries
- an array of entries from which to create this ResBundle
PRE: key is not equal to null
POST: if entry corresponding to entry is found it is removed.public boolean isDirty()
public void setDirty(boolean dirty)
dirty
- the value to set dirty to.
PRE: none
POST: it changes dirty status to the variable passed in.public void setEditorWindow(EditorWindow ew)
ew
- The parent
PRE: none
POST: this class has a reference to its parent.public void addEntry(Entry e)
key
- the key to add
PRE: e does not equal null
POST: the entry is added to this resource bundle.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |