Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.component.property
Class Property

java.lang.Object
  extended by oracle.adfnmc.component.property.Property
All Implemented Interfaces:
ValueChangeListener
Direct Known Subclasses:
BooleanProperty, DateProperty, IntegerProperty, LongProperty, ObjectProperty, StringProperty

public abstract class Property
extends java.lang.Object
implements ValueChangeListener

Author:
jmiers

Field Summary
protected  java.lang.String m_elExpression
           
protected  boolean m_isSecret
           
protected  PropertyChangeCallback m_propertyListener
           
protected  java.lang.Object m_setValueSource
           
protected  ValueExpression m_valueExpression
           
protected  PropertyValueChangeCallback m_valueListener
           
 
Constructor Summary
protected Property()
           
protected Property(java.lang.String elExpression, java.lang.Class expectedType)
           
protected Property(java.lang.String elExpression, java.lang.Class expectedType, RefreshablePropertyObjectOwner owner)
           
 
Method Summary
protected  void bindExpression()
           
protected abstract  void expressionIsLiteral()
          Sub-classes of this abstract class must convert the el expression into a literal m_valueExpression is not guaranteed to be non-null, so it must be checked before being used.
protected  void fireChangeEvent(java.lang.Object source)
           
protected abstract  java.lang.Object getDefaultValue()
           
protected abstract  java.lang.Object getOldValueAsObject()
           
protected abstract  java.lang.Object getValueAsObject()
           
protected  java.lang.Object getValueForLogging(java.lang.Object value)
           
protected  boolean hasElExpression()
           
protected  void logValueChanged(java.lang.Object source, java.lang.Object value)
           
 void refreshValue()
           
static void refreshValue(Property property)
           
static BooleanProperty reset(BooleanProperty prop)
           
static DateProperty reset(DateProperty prop)
           
static IntegerProperty reset(IntegerProperty prop)
           
static LongProperty reset(LongProperty prop)
           
static ObjectProperty reset(ObjectProperty prop)
           
static void reset(Property prop)
           
static StringProperty reset(StringProperty prop)
           
 void setPropertyChangeCallback(PropertyChangeCallback listener)
           
 void setPropertyValueChangeCallback(PropertyValueChangeCallback listener)
           
protected  void setValue(java.lang.Object source, java.lang.Object value)
          Generic method that handles setValue calls coming from derived classes
 void setValueSecret(boolean isSecret)
           
protected  boolean shouldLogValues()
           
static void unregisterListener(Property prop)
           
protected  void valueChanged(java.lang.Object source, java.lang.Object value)
           
 void valueChanged(ValueExpression sourceExpression)
           
protected abstract  void valueChangedImpl(java.lang.Object source, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_elExpression

protected java.lang.String m_elExpression

m_valueExpression

protected ValueExpression m_valueExpression

m_propertyListener

protected PropertyChangeCallback m_propertyListener

m_valueListener

protected PropertyValueChangeCallback m_valueListener

m_setValueSource

protected java.lang.Object m_setValueSource

m_isSecret

protected boolean m_isSecret
Constructor Detail

Property

protected Property()

Property

protected Property(java.lang.String elExpression,
                   java.lang.Class expectedType)

Property

protected Property(java.lang.String elExpression,
                   java.lang.Class expectedType,
                   RefreshablePropertyObjectOwner owner)
Method Detail

bindExpression

protected void bindExpression()

expressionIsLiteral

protected abstract void expressionIsLiteral()
Sub-classes of this abstract class must convert the el expression into a literal m_valueExpression is not guaranteed to be non-null, so it must be checked before being used. If m_valueExpression is null, the value must be extracted from the string m_elExpression and coerced into the proper type from there.


getDefaultValue

protected abstract java.lang.Object getDefaultValue()

getValueAsObject

protected abstract java.lang.Object getValueAsObject()

getOldValueAsObject

protected abstract java.lang.Object getOldValueAsObject()

hasElExpression

protected boolean hasElExpression()

setPropertyChangeCallback

public void setPropertyChangeCallback(PropertyChangeCallback listener)

setPropertyValueChangeCallback

public void setPropertyValueChangeCallback(PropertyValueChangeCallback listener)

fireChangeEvent

protected void fireChangeEvent(java.lang.Object source)

refreshValue

public static void refreshValue(Property property)

refreshValue

public void refreshValue()

valueChangedImpl

protected abstract void valueChangedImpl(java.lang.Object source,
                                         java.lang.Object value)

valueChanged

protected final void valueChanged(java.lang.Object source,
                                  java.lang.Object value)

valueChanged

public void valueChanged(ValueExpression sourceExpression)
Specified by:
valueChanged in interface ValueChangeListener
Parameters:
sourceExpression - - the ValueExpression instance this listener was registered with

setValue

protected void setValue(java.lang.Object source,
                        java.lang.Object value)
Generic method that handles setValue calls coming from derived classes

Parameters:
source - the source of this setter
value - the new value to set to the property

reset

public static void reset(Property prop)

unregisterListener

public static void unregisterListener(Property prop)

reset

public static BooleanProperty reset(BooleanProperty prop)

reset

public static DateProperty reset(DateProperty prop)

reset

public static IntegerProperty reset(IntegerProperty prop)

reset

public static LongProperty reset(LongProperty prop)

reset

public static ObjectProperty reset(ObjectProperty prop)

reset

public static StringProperty reset(StringProperty prop)

setValueSecret

public void setValueSecret(boolean isSecret)

getValueForLogging

protected java.lang.Object getValueForLogging(java.lang.Object value)

logValueChanged

protected void logValueChanged(java.lang.Object source,
                               java.lang.Object value)

shouldLogValues

protected boolean shouldLogValues()

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.