Methods Summary |
---|
public void | clear()
super.clear();
for(int i = 0; i < tables.length; i++) {
UIDefaults table = tables[i];
if (table != null) {
table.clear();
}
}
|
public java.util.Enumeration | elements()
Enumeration[] enums = new Enumeration[1 + tables.length];
enums[0] = super.elements();
for(int i = 0; i < tables.length; i++) {
UIDefaults table = tables[i];
if (table != null) {
enums[i + 1] = table.elements();
}
}
return new MultiUIDefaultsEnumerator(enums);
|
public java.lang.Object | get(java.lang.Object key)
Object value = super.get(key);
if (value != null) {
return value;
}
for(int i = 0; i < tables.length; i++) {
UIDefaults table = tables[i];
value = (table != null) ? table.get(key) : null;
if (value != null) {
return value;
}
}
return null;
|
public java.lang.Object | get(java.lang.Object key, java.util.Locale l)
Object value = super.get(key,l);
if (value != null) {
return value;
}
for(int i = 0; i < tables.length; i++) {
UIDefaults table = tables[i];
value = (table != null) ? table.get(key,l) : null;
if (value != null) {
return value;
}
}
return null;
|
protected void | getUIError(java.lang.String msg)
if (tables.length > 0) {
tables[0].getUIError(msg);
} else {
super.getUIError(msg);
}
|
public boolean | isEmpty()
return size() == 0;
|
public java.util.Enumeration | keys()
Enumeration[] enums = new Enumeration[1 + tables.length];
enums[0] = super.keys();
for(int i = 0; i < tables.length; i++) {
UIDefaults table = tables[i];
if (table != null) {
enums[i + 1] = table.keys();
}
}
return new MultiUIDefaultsEnumerator(enums);
|
public java.lang.Object | remove(java.lang.Object key)
Object value = super.remove(key);
if (value != null) {
return value;
}
for(int i = 0; i < tables.length; i++) {
UIDefaults table = tables[i];
value = (table != null) ? table.remove(key) : null;
if (value != null) {
return value;
}
}
return null;
|
public int | size()
int n = super.size();
for(int i = 0; i < tables.length; i++) {
UIDefaults table = tables[i];
n += (table != null) ? table.size() : 0;
}
return n;
|
public synchronized java.lang.String | toString()
StringBuffer buf = new StringBuffer();
buf.append("{");
Enumeration keys = keys();
while (keys.hasMoreElements()) {
Object key = keys.nextElement();
buf.append(key + "=" + get(key) + ", ");
}
int length = buf.length();
if (length > 1) {
buf.delete(length-2, length);
}
buf.append("}");
return buf.toString();
|