mauda.utils
Class Prop

java.lang.Object
  extended by mauda.utils.Prop

public class Prop
extends java.lang.Object

The central class to handle text-/image-properties of buttons, menu-items, etc.

Author:
Markus Krebs

Constructor Summary
Prop()
           
 
Method Summary
static java.lang.String get(java.lang.Object o, java.lang.String s)
          Gets a property-string from the given location.
static java.util.Properties load(java.lang.Object o)
          Loads a specific property-file from the given location (class inside a specific package).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Prop

public Prop()
Method Detail

get

public static java.lang.String get(java.lang.Object o,
                                   java.lang.String s)
Gets a property-string from the given location.
Internally there must be a property-file named "properties_eng" in every package. Thru the delivered source-class (1st parameter) its possible to locate the corresponding property-file.

Parameters:
o - The class from which this get-method was called
s - The key of the property
Returns:
The value of the property

load

public static java.util.Properties load(java.lang.Object o)
Loads a specific property-file from the given location (class inside a specific package).

Parameters:
o - The class from which this load-method (get-method) was called.
Returns:
Properties