Lines Matching refs:value

86      * so as to avoid an exception being thrown when a value is asked for.
116 * key/value pairs. For example:
125 * @param keyValueList an array of objects containing the key/value
136 * Returns the value for key. If the value is a
138 * value is computed with <code>LazyValue.createValue()</code>,
139 * the table entry is replaced, and the real value is returned.
140 * If the value is an <code>UIDefaults.ActiveValue</code>
141 * the table entry is not replaced - the value is computed
153 * @return the value for <code>key</code>
162 Object value = getFromHashtable( key );
163 return (value != null) ? value : getFromResourceBundle(key, null);
174 Object value = super.get(key);
175 if ((value != PENDING) &&
176 !(value instanceof ActiveValue) &&
177 !(value instanceof LazyValue)) {
178 return value;
182 * thread then wait and then return the new value, otherwise drop
184 * We use the special value PENDING to mark LazyValues that
188 value = super.get(key);
189 if (value == PENDING) {
196 value = super.get(key);
198 while(value == PENDING);
199 return value;
201 else if (value instanceof LazyValue) {
204 else if (!(value instanceof ActiveValue)) {
205 return value;
209 /* At this point we know that the value of key was
212 if (value instanceof LazyValue) {
217 value = ((LazyValue)value).createValue(this);
221 if (value == null) {
225 super.put(key, value);
232 value = ((ActiveValue)value).createValue(this);
235 return value;
240 * Returns the value for key associated with the given locale.
241 * If the value is a <code>UIDefaults.LazyValue</code> then the real
242 * value is computed with <code>LazyValue.createValue()</code>,
243 * the table entry is replaced, and the real value is returned.
244 * If the value is an <code>UIDefaults.ActiveValue</code>
245 * the table entry is not replaced - the value is computed
257 * @return the value for <code>key</code>
265 Object value = getFromHashtable( key );
266 return (value != null) ? value : getFromResourceBundle(key, l);
317 Object value = b.getObject(key);
319 values.put(key, value);
332 * Sets the value of <code>key</code> to <code>value</code> for all locales.
333 * If <code>key</code> is a string and the new value isn't
335 * If value is <code>null</code>, the key is removed from the table.
337 * @param key the unique <code>Object</code> who's value will be used
338 * to retrieve the data value associated with it
339 * @param value the new <code>Object</code> to store as data under
341 * @return the previous <code>Object</code> value, or <code>null</code>
345 public Object put(Object key, Object value) {
346 Object oldValue = (value == null) ? super.remove(key) : super.put(key, value);
348 firePropertyChange((String)key, oldValue, value);
355 * Puts all of the key/value pairs in the database and
358 * <code>propertyName</code> will be "UIDefaults". The key/value pairs are
361 * @param keyValueList an array of key/value pairs
367 Object value = keyValueList[i + 1];
368 if (value == null) {
372 super.put(keyValueList[i], value);
380 * If the value of <code>key</code> is a <code>Font</code> return it,
383 * @return if the value for <code>key</code> is a <code>Font</code>,
388 Object value = get(key);
389 return (value instanceof Font) ? (Font)value : null;
394 * If the value of <code>key</code> for the given <code>Locale</code>
398 * @return if the value for <code>key</code> and <code>Locale</code>
405 Object value = get(key,l);
406 return (value instanceof Font) ? (Font)value : null;
410 * If the value of <code>key</code> is a <code>Color</code> return it,
413 * @return if the value for <code>key</code> is a <code>Color</code>,
418 Object value = get(key);
419 return (value instanceof Color) ? (Color)value : null;
424 * If the value of <code>key</code> for the given <code>Locale</code>
428 * @return if the value for <code>key</code> and <code>Locale</code>
435 Object value = get(key,l);
436 return (value instanceof Color) ? (Color)value : null;
441 * If the value of <code>key</code> is an <code>Icon</code> return it,
444 * @return if the value for <code>key</code> is an <code>Icon</code>,
449 Object value = get(key);
450 return (value instanceof Icon) ? (Icon)value : null;
455 * If the value of <code>key</code> for the given <code>Locale</code>
459 * @return if the value for <code>key</code> and <code>Locale</code>
466 Object value = get(key,l);
467 return (value instanceof Icon) ? (Icon)value : null;
472 * If the value of <code>key</code> is a <code>Border</code> return it,
475 * @return if the value for <code>key</code> is a <code>Border</code>,
480 Object value = get(key);
481 return (value instanceof Border) ? (Border)value : null;
486 * If the value of <code>key</code> for the given <code>Locale</code>
490 * @return if the value for <code>key</code> and <code>Locale</code>
497 Object value = get(key,l);
498 return (value instanceof Border) ? (Border)value : null;
503 * If the value of <code>key</code> is a <code>String</code> return it,
506 * @return if the value for <code>key</code> is a <code>String</code>,
511 Object value = get(key);
512 return (value instanceof String) ? (String)value : null;
516 * If the value of <code>key</code> for the given <code>Locale</code>
520 * @return if the value for <code>key</code> for the given
527 Object value = get(key,l);
528 return (value instanceof String) ? (String)value : null;
532 * If the value of <code>key</code> is an <code>Integer</code> return its
533 * integer value, otherwise return 0.
535 * @return if the value for <code>key</code> is an <code>Integer</code>,
536 * return its value, otherwise return 0
539 Object value = get(key);
540 return (value instanceof Integer) ? ((Integer)value).intValue() : 0;
545 * If the value of <code>key</code> for the given <code>Locale</code>
546 * is an <code>Integer</code> return its integer value, otherwise return 0.
549 * @return if the value for <code>key</code> and <code>Locale</code>
551 * return its value, otherwise return 0
555 Object value = get(key,l);
556 return (value instanceof Integer) ? ((Integer)value).intValue() : 0;
561 * If the value of <code>key</code> is boolean, return the
562 * boolean value, otherwise return false.
564 * @param key an <code>Object</code> specifying the key for the desired boolean value
565 * @return if the value of <code>key</code> is boolean, return the
566 * boolean value, otherwise return false.
570 Object value = get(key);
571 return (value instanceof Boolean) ? ((Boolean)value).booleanValue() : false;
576 * If the value of <code>key</code> for the given <code>Locale</code>
577 * is boolean, return the boolean value, otherwise return false.
579 * @param key an <code>Object</code> specifying the key for the desired boolean value
581 * @return if the value for <code>key</code> and <code>Locale</code>
583 * boolean value, otherwise return false.
587 Object value = get(key,l);
588 return (value instanceof Boolean) ? ((Boolean)value).booleanValue() : false;
593 * If the value of <code>key</code> is an <code>Insets</code> return it,
596 * @return if the value for <code>key</code> is an <code>Insets</code>,
601 Object value = get(key);
602 return (value instanceof Insets) ? (Insets)value : null;
607 * If the value of <code>key</code> for the given <code>Locale</code>
611 * @return if the value for <code>key</code> and <code>Locale</code>
618 Object value = get(key,l);
619 return (value instanceof Insets) ? (Insets)value : null;
624 * If the value of <code>key</code> is a <code>Dimension</code> return it,
627 * @return if the value for <code>key</code> is a <code>Dimension</code>,
632 Object value = get(key);
633 return (value instanceof Dimension) ? (Dimension)value : null;
638 * If the value of <code>key</code> for the given <code>Locale</code>
642 * @return if the value for <code>key</code> and <code>Locale</code>
649 Object value = get(key,l);
650 return (value instanceof Dimension) ? (Dimension)value : null;
655 * The value of <code>get(uidClassID)</code> must be the
671 * @return the value of <code>Class.forName(get(uidClassID))</code>
745 * class under the value returned by <code>target.getUIClassID()</code>.
840 * @param oldValue the old value of the property
841 * @param newValue the new value of the property
934 * a <code>LazyValue</code> is retrieved its "real value" is computed
936 * value is used to replace the <code>LazyValue</code> in the
939 * the real value. Here's an example of a <code>LazyValue</code>
955 * Creates the actual value retrieved from the <code>UIDefaults</code>
958 * the real value, which is then stored in the table and
988 * Creates the value retrieved from the <code>UIDefaults</code> table.
1074 * Creates the value retrieved from the <code>UIDefaults</code> table.
1193 * the odd number entries being the value to use in the
1252 Object value = super.get(key);
1254 if (value == null) {
1275 value = super.get(compositeKey);
1276 if (value == null && checkTitle) {
1278 value = super.get(compositeKey);
1281 return value == null ? null : getMnemonicFromProperty(value.toString());
1295 value = super.get(compositeKey);
1296 return value == null ? null : getTextFromProperty(value.toString());
1301 value = super.get(compositeKey);
1302 if (value == null) {
1304 value = super.get(compositeKey);
1306 return value == null ? null : getIndexFromProperty(value.toString());
1310 return value;