GWT 2.4.0

com.google.gwt.core.ext
Interface PropertyOracle


public interface PropertyOracle

Provides deferred binding property values.


Method Summary
 ConfigurationProperty getConfigurationProperty(java.lang.String propertyName)
          Attempts to get a named configuration property.
 java.lang.String getPropertyValue(TreeLogger logger, java.lang.String propertyName)
          Deprecated. 
 java.lang.String[] getPropertyValueSet(TreeLogger logger, java.lang.String propertyName)
          Deprecated. 
 SelectionProperty getSelectionProperty(TreeLogger logger, java.lang.String propertyName)
          Attempts to get a named deferred binding property.
 

Method Detail

getConfigurationProperty

ConfigurationProperty getConfigurationProperty(java.lang.String propertyName)
                                               throws BadPropertyValueException
Attempts to get a named configuration property. Throws BadPropertyValueException if the property is undefined. The result of invoking this method with the same propertyName must be stable.

Parameters:
propertyName -
Returns:
the configuration property instance (never null)
Throws:
BadPropertyValueException - if the property is unknown or not a configuration property

getPropertyValue

@Deprecated
java.lang.String getPropertyValue(TreeLogger logger,
                                             java.lang.String propertyName)
                                  throws BadPropertyValueException
Deprecated. 

Attempts to get a named deferred binding property or configuration property. Throws BadPropertyValueException if the property is either undefined or has a value that is unsupported. The result of invoking this method with the same propertyName must be stable.

Parameters:
logger - the current logger
propertyName - the name of the property
Returns:
a value for the property
Throws:
BadPropertyValueException - if the property is unknown or not of the right type

getPropertyValueSet

@Deprecated
java.lang.String[] getPropertyValueSet(TreeLogger logger,
                                                  java.lang.String propertyName)
                                       throws BadPropertyValueException
Deprecated. 

Attempts to get a named deferred binding property and returns the list of possible values. Throws BadPropertyValueException if the property is a configuration property or is undefined. The result of invoking this method with the same propertyName must be stable.

Parameters:
logger - the current logger
propertyName - the name of the property
Returns:
the possible values for the property
Throws:
BadPropertyValueException - if the property is unknown or not of the right type

getSelectionProperty

SelectionProperty getSelectionProperty(TreeLogger logger,
                                       java.lang.String propertyName)
                                       throws BadPropertyValueException
Attempts to get a named deferred binding property. Throws BadPropertyValueException if the property is either undefined or has a value that is unsupported. The result of invoking this method with the same propertyName must be stable.

Parameters:
logger -
propertyName -
Returns:
the selection property instance (never null)
Throws:
BadPropertyValueException - if the property is unknown or not a selection property

GWT 2.4.0