56 |
*/ |
*/ |
57 |
public class UIDefaults extends Hashtable |
public class UIDefaults extends Hashtable |
58 |
{ |
{ |
59 |
public interface ActiveValue |
interface ActiveValue |
60 |
{ |
{ |
61 |
Object createValue(UIDefaults table); |
Object createValue(UIDefaults table); |
62 |
} // interface ActiveValue |
} // interface ActiveValue |
72 |
} |
} |
73 |
} // class LazyInputMap |
} // class LazyInputMap |
74 |
|
|
75 |
public interface LazyValue |
interface LazyValue |
76 |
{ |
{ |
77 |
Object createValue(UIDefaults table); |
Object createValue(UIDefaults table); |
78 |
} // interface LazyValue |
} // interface LazyValue |
193 |
return o instanceof String ? (String) o : null; |
return o instanceof String ? (String) o : null; |
194 |
} |
} |
195 |
|
|
196 |
public int getInt(Object key) |
int getInt(Object key) |
197 |
{ |
{ |
198 |
Object o = get(key); |
Object o = get(key); |
199 |
return o instanceof Integer ? ((Integer) o).intValue() : 0; |
return o instanceof Integer ? ((Integer) o).intValue() : 0; |
200 |
} |
} |
201 |
|
|
202 |
public int getInt(Object key, Locale l) |
int getInt(Object key, Locale l) |
203 |
{ |
{ |
204 |
Object o = get(key, l); |
Object o = get(key, l); |
205 |
return o instanceof Integer ? ((Integer) o).intValue() : 0; |
return o instanceof Integer ? ((Integer) o).intValue() : 0; |
263 |
return p; |
return p; |
264 |
} |
} |
265 |
|
|
266 |
public void addPropertyChangeListener(PropertyChangeListener l) |
void addPropertyChangeListener(PropertyChangeListener l) |
267 |
{ |
{ |
268 |
throw new Error("not implemented"); |
throw new Error("not implemented"); |
269 |
} |
} |
270 |
|
|
271 |
public void removePropertyChangeListener(PropertyChangeListener l) |
void removePropertyChangeListener(PropertyChangeListener l) |
272 |
{ |
{ |
273 |
throw new Error("not implemented"); |
throw new Error("not implemented"); |
274 |
} |
} |
283 |
throw new Error("not implemented"); |
throw new Error("not implemented"); |
284 |
} |
} |
285 |
|
|
286 |
public void addResourceBundle(String name) |
void addResourceBundle(String name) |
287 |
{ |
{ |
288 |
throw new Error("not implemented"); |
throw new Error("not implemented"); |
289 |
} |
} |
290 |
|
|
291 |
public void removeResourceBundle(String name) |
void removeResourceBundle(String name) |
292 |
{ |
{ |
293 |
throw new Error("not implemented"); |
throw new Error("not implemented"); |
294 |
} |
} |
295 |
|
|
296 |
public void setDefaultLocale(Locale l) |
void setDefaultLocale(Locale l) |
297 |
{ |
{ |
298 |
throw new Error("not implemented"); |
throw new Error("not implemented"); |
299 |
} |
} |