Beispiel #1
0
 /**
  * ** Sets the default property value of the property associated with the ** specified key
  * ** @param key The key of the property to set ** @param val The value to set the property to
  */
 public static void setDefaultProperty(String key, Object val) {
   Entry rtKey = RTKey.getRuntimeEntry(key);
   if (rtKey != null) {
     rtKey.setDefault(val);
   } else {
     RTKey.addRuntimeEntry(new Entry(key, val));
   }
 }
Beispiel #2
0
 /**
  * ** Gets the default property value associated with the specified key. ** Returns <code>dft
  * </code> if none was found ** @param key The key of the property to get ** @param dft The value
  * to return if no propetry value was found
  */
 public static Object getDefaultProperty(String key, Object dft) {
   Entry rtKey = RTKey.getRuntimeEntry(key);
   return (rtKey != null) ? rtKey.getDefault() : dft;
 }
Beispiel #3
0
 /**
  * ** Returns true if the specified default property key is defined ** @param key A property key
  * ** @return True if the specified default property key is defined
  */
 public static boolean hasDefault(String key) {
   return (RTKey.getRuntimeEntry(key) != null);
 }