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

E17503-02

oracle.adfnmc.bindings.dbf
Class AttributeBindingImpl

java.lang.Object
  extended by oracle.adfnmc.bindings.dbf.ControlBindingImpl
      extended by oracle.adfnmc.bindings.dbf.AttributeBindingImpl
All Implemented Interfaces:
AttributeBinding, ControlBinding, IteratorAttributeValueListener, IteratorCollectionListener, IteratorPositionListener, ELResolver, PropertyValueChangeSource
Direct Known Subclasses:
DynamicListBindingImpl, IndexedAttributeBindingImpl, StaticListBindingImpl

public class AttributeBindingImpl
extends ControlBindingImpl
implements AttributeBinding, IteratorPositionListener, IteratorAttributeValueListener, IteratorCollectionListener, PropertyValueChangeSource


Field Summary
protected  java.lang.String attrName
           
protected  java.lang.Class expectedType
           
 
Fields inherited from class oracle.adfnmc.bindings.dbf.ControlBindingImpl
CLASS_INSTANCE, currentError, dataControl, errors, iterBinding, metadataDef, name, parentBindingContainer
 
Fields inherited from interface oracle.adfnmc.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
 
Constructor Summary
AttributeBindingImpl(AttributeValuesDefinition mdDef, IteratorExecutableBindingImpl iterBinding)
           
AttributeBindingImpl(ListDefinition mdDef, IteratorExecutableBindingImpl iterBinding)
           
AttributeBindingImpl(XmlAnyDefinition mdDef, java.lang.String name, IteratorExecutableBindingImpl iterBinding, java.lang.String attrName)
           
 
Method Summary
 void addAttributeValueChangeListener(ValueChangeListener listener)
           
 void addValueChangeListener(java.lang.String property, ValueChangeListener listener)
           
 void addValueListChangeListener(ValueChangeListener listener)
           
 void attributeUpdated(java.lang.String attrName)
          Fires when the value of an attribute of the current row pointed to by an iterator is set.
 java.lang.String getBoundAttributeName()
           
 java.lang.Integer getDisplayHeight()
           
 java.lang.String getDisplayHint()
           
 java.lang.Integer getDisplayWidth()
           
 java.lang.Class getExpectedType()
           
 java.lang.String getFormat()
           
 java.lang.Object getInputValue()
          Returns the value that should be rendered on a view for the attribute associated with this binding.
 java.lang.Object getInputValue(int index)
           
 java.lang.String getLabel()
          Returns the display label or prompt for the attribute represented by this binding.
 java.lang.String getLabelHint()
           
 java.lang.Boolean getMandatory()
           
 java.lang.Integer getPrecision()
           
protected  ELResolver getResolver()
           
protected  java.lang.String getSingleNameValue(XmlAnyDefinition namesDef)
           
protected  java.lang.String[] getSingleNameValues(List namesDefList)
           
 java.lang.String getToolTip()
           
 java.lang.Boolean getUpdateableHint()
           
 List getValueList()
           
 boolean isUpdateable()
          Finds out whether the attribute is updateable or is for display only.
protected  void notifyValueChangeListeners(Set listeners)
           
protected  void notifyValueListChangeListeners()
           
 void positionChanged(int absoluteIndex)
          Fires when the iterator position is changed to point to a different row.
 void rangeRefreshed()
           
 void refresh()
           
 void registerForIteratorEvents(IteratorExecutableBindingImpl evtSource)
           
 void removeAttributeValueChangeListener(ValueChangeListener listener)
           
 void removeValueChangeListener(java.lang.String property, ValueChangeListener listener)
           
 void removeValueListChangeListener(ValueChangeListener listener)
           
 void rowInserted(java.lang.Object newRow)
           
 void rowRemoved(java.lang.Object removedRow)
           
 void setInputValue(java.lang.Object inputVal)
          Updates the attribute value associated with this binding.
 void unregisterForIteratorEvents(IteratorExecutableBindingImpl evtSource)
           
 
Methods inherited from class oracle.adfnmc.bindings.dbf.ControlBindingImpl
containerInitialized, getBindings, getDataControl, getError, getErrors, getIterator, getMetadataDefinition, getName, getPath, getType, getValue, isReadOnly, prepareDeferredIterator, release, reportException, resolvePath, setListener, setValue, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.adfnmc.bindings.AttributeBinding
getError, getErrors
 
Methods inherited from interface oracle.adfnmc.bindings.ControlBinding
containerInitialized, getBindings, getMetadataDefinition, getName, getPath, release, resolvePath, setListener
 

Field Detail

attrName

protected java.lang.String attrName

expectedType

protected java.lang.Class expectedType
Constructor Detail

AttributeBindingImpl

public AttributeBindingImpl(XmlAnyDefinition mdDef,
                            java.lang.String name,
                            IteratorExecutableBindingImpl iterBinding,
                            java.lang.String attrName)

AttributeBindingImpl

public AttributeBindingImpl(AttributeValuesDefinition mdDef,
                            IteratorExecutableBindingImpl iterBinding)

AttributeBindingImpl

public AttributeBindingImpl(ListDefinition mdDef,
                            IteratorExecutableBindingImpl iterBinding)
Method Detail

getSingleNameValue

protected java.lang.String getSingleNameValue(XmlAnyDefinition namesDef)

getSingleNameValues

protected java.lang.String[] getSingleNameValues(List namesDefList)

notifyValueChangeListeners

protected void notifyValueChangeListeners(Set listeners)

notifyValueListChangeListeners

protected void notifyValueListChangeListeners()

getBoundAttributeName

public java.lang.String getBoundAttributeName()

getValueList

public List getValueList()

getResolver

protected ELResolver getResolver()
Specified by:
getResolver in class ControlBindingImpl

refresh

public void refresh()
Specified by:
refresh in class ControlBindingImpl

positionChanged

public void positionChanged(int absoluteIndex)
Description copied from interface: IteratorPositionListener
Fires when the iterator position is changed to point to a different row.

Specified by:
positionChanged in interface IteratorPositionListener

attributeUpdated

public void attributeUpdated(java.lang.String attrName)
Description copied from interface: IteratorAttributeValueListener
Fires when the value of an attribute of the current row pointed to by an iterator is set.

Specified by:
attributeUpdated in interface IteratorAttributeValueListener
Parameters:
attrName - - Name of the attribute whose value has updated

rangeRefreshed

public void rangeRefreshed()
Specified by:
rangeRefreshed in interface IteratorCollectionListener

rowInserted

public void rowInserted(java.lang.Object newRow)
Specified by:
rowInserted in interface IteratorCollectionListener

rowRemoved

public void rowRemoved(java.lang.Object removedRow)
Specified by:
rowRemoved in interface IteratorCollectionListener

addValueChangeListener

public void addValueChangeListener(java.lang.String property,
                                   ValueChangeListener listener)
Specified by:
addValueChangeListener in interface PropertyValueChangeSource
Parameters:
property - Interned property string

removeValueChangeListener

public void removeValueChangeListener(java.lang.String property,
                                      ValueChangeListener listener)
Specified by:
removeValueChangeListener in interface PropertyValueChangeSource
Parameters:
property - Interned property string

getExpectedType

public java.lang.Class getExpectedType()

getInputValue

public java.lang.Object getInputValue()
Description copied from interface: AttributeBinding
Returns the value that should be rendered on a view for the attribute associated with this binding.

Specified by:
getInputValue in interface AttributeBinding
Returns:
The attribute value.

getInputValue

public java.lang.Object getInputValue(int index)

setInputValue

public void setInputValue(java.lang.Object inputVal)
Description copied from interface: AttributeBinding
Updates the attribute value associated with this binding. If there are exceptions while updating this attribute, these exceptions should be accessible via getErrors().

Specified by:
setInputValue in interface AttributeBinding
Parameters:
inputVal - The new attribute value.
See Also:
AttributeBinding.getErrors()

getLabel

public java.lang.String getLabel()
Description copied from interface: AttributeBinding
Returns the display label or prompt for the attribute represented by this binding.

Specified by:
getLabel in interface AttributeBinding
Returns:
The display label or prompt string.

isUpdateable

public boolean isUpdateable()
Description copied from interface: AttributeBinding
Finds out whether the attribute is updateable or is for display only.

Specified by:
isUpdateable in interface AttributeBinding
Returns:
True if the attribute is updateable, false otherwise.

registerForIteratorEvents

public void registerForIteratorEvents(IteratorExecutableBindingImpl evtSource)
Specified by:
registerForIteratorEvents in class ControlBindingImpl

unregisterForIteratorEvents

public void unregisterForIteratorEvents(IteratorExecutableBindingImpl evtSource)
Specified by:
unregisterForIteratorEvents in class ControlBindingImpl

addAttributeValueChangeListener

public void addAttributeValueChangeListener(ValueChangeListener listener)

removeAttributeValueChangeListener

public void removeAttributeValueChangeListener(ValueChangeListener listener)

addValueListChangeListener

public void addValueListChangeListener(ValueChangeListener listener)

removeValueListChangeListener

public void removeValueListChangeListener(ValueChangeListener listener)

getDisplayHeight

public java.lang.Integer getDisplayHeight()

getDisplayWidth

public java.lang.Integer getDisplayWidth()

getDisplayHint

public java.lang.String getDisplayHint()

getFormat

public java.lang.String getFormat()

getLabelHint

public java.lang.String getLabelHint()

getMandatory

public java.lang.Boolean getMandatory()

getPrecision

public java.lang.Integer getPrecision()

getToolTip

public java.lang.String getToolTip()

getUpdateableHint

public java.lang.Boolean getUpdateableHint()

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.