|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.util.ResourceManager
public abstract class ResourceManager
A class to manage a collection of system and user color tables
| Field Summary | |
|---|---|
protected List |
listOfResourceLists
_more_ |
static LogUtil.LogCategory |
log_
_more_ |
static LogUtil |
LU
_more_ |
protected Hashtable |
nameToObject
_more_ |
static String |
PROP_RESOURCECHANGE
_more_ |
static String |
PROP_RESOURCEREMOVE
_more_ |
protected List |
resources
_more_ |
protected List |
usersList
_more_ |
protected String |
writablePath
_more_ |
| Constructor Summary | |
|---|---|
ResourceManager()
no param ctor |
|
ResourceManager(XmlEncoder xmlEncoder)
ctor |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to this instance. |
void |
addUsers(NamedObject object)
_more_ |
void |
doExport(NamedObject object)
_more_ |
void |
doExport(NamedObject object,
String file)
_more_ |
NamedObject |
doImport()
_more_ |
NamedObject |
doImport(boolean makeUnique)
_more_ |
NamedObject |
doImport(Object o,
boolean forceUnique)
_more_ |
String |
doNew(Component component)
_more_ |
String |
doNew(Component component,
String label)
_more_ |
String |
doNew(Component component,
String label,
String initName,
String tooltip)
_more_ |
String |
doSaveAs(NamedObject o,
Component component)
_more_ |
protected void |
firePropertyChange(PropertyChangeEvent event)
Fires a PropertyChangeEvent. |
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Fires a PropertyChangeEvent. |
NamedObject |
getDefault()
_more_ |
protected XmlEncoder |
getEncoder()
create if needed and return the XmlEncoder |
protected String |
getExportContents(NamedObject object,
String file)
_more_ |
List |
getFileFilters()
_more_ |
String |
getFileSuffix()
_more_ |
NamedObject |
getObject(String name)
_more_ |
List |
getReadFileFilters()
_more_ |
List |
getResources()
_more_ |
int |
getResourceTimestamp()
_more_ |
String |
getTitle()
_more_ |
int |
getUsersIndex(NamedObject object)
_more_ |
NamedObject |
getUsersObject(String name)
_more_ |
List |
getWriteFileFilters()
_more_ |
boolean |
hasUsers(String name)
_more_ |
void |
init(ResourceCollection resources)
_more_ |
protected void |
initDone()
_more_ |
protected Object |
initResource(ResourceCollection resources,
int index)
_more_ |
boolean |
isUsers(NamedObject object)
_more_ |
protected Object |
processObject(Object o)
_more_ |
protected void |
reloadResources()
_more_ |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from this instance. |
void |
removeUsers(NamedObject object)
_more_ |
boolean |
resourceExists(String name)
_more_ |
protected boolean |
shouldWeIgnoreThisXml(String xml)
_more_ |
Object |
toObject(String xml)
_more_ |
Object |
toObject(String xml,
String filename)
_more_ |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROP_RESOURCECHANGE
public static final String PROP_RESOURCEREMOVE
public static final LogUtil LU
public static LogUtil.LogCategory log_
protected Hashtable nameToObject
protected List usersList
protected String writablePath
protected List listOfResourceLists
protected List resources
| Constructor Detail |
|---|
public ResourceManager()
public ResourceManager(XmlEncoder xmlEncoder)
xmlEncoder - The encoder to use| Method Detail |
|---|
public void init(ResourceCollection resources)
resources -
protected Object initResource(ResourceCollection resources,
int index)
resources - _more_index - _more_
public NamedObject getDefault()
public int getResourceTimestamp()
protected void reloadResources()
public boolean resourceExists(String name)
name -
protected void initDone()
protected Object processObject(Object o)
o -
public String getTitle()
public int getUsersIndex(NamedObject object)
object -
public NamedObject getObject(String name)
name -
public List getResources()
public boolean isUsers(NamedObject object)
object -
public void removeUsers(NamedObject object)
object - public void addUsers(NamedObject object)
object - protected XmlEncoder getEncoder()
public List getWriteFileFilters()
public List getReadFileFilters()
public List getFileFilters()
public String getFileSuffix()
public void doExport(NamedObject object)
object -
protected String getExportContents(NamedObject object,
String file)
object - file -
public void doExport(NamedObject object,
String file)
object - file -
public NamedObject doImport(Object o,
boolean forceUnique)
o - forceUnique -
public NamedObject doImport()
public NamedObject doImport(boolean makeUnique)
makeUnique -
public String doNew(Component component)
component -
public String doNew(Component component,
String label)
component - label -
public String doNew(Component component,
String label,
String initName,
String tooltip)
component - _more_label - _more_initName - _more_tooltip - _more_
public String doSaveAs(NamedObject o,
Component component)
o - component -
public boolean hasUsers(String name)
name -
public NamedObject getUsersObject(String name)
name -
public Object toObject(String xml,
String filename)
xml - filename - _more_
public Object toObject(String xml)
xml -
protected boolean shouldWeIgnoreThisXml(String xml)
xml -
public void addPropertyChangeListener(PropertyChangeListener listener)
listener - The PropertyChangeListener to be added.public void removePropertyChangeListener(PropertyChangeListener listener)
listener - The PropertyChangeListener to be removed.protected void firePropertyChange(PropertyChangeEvent event)
event - The PropertyChangeEvent.
protected void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
propertyName - The name of the property.oldValue - The old value of the property.newValue - The new value of the property.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||