Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01

oracle.jbo.uicli.binding
Class JUCtrlValueBindingRef

java.lang.Object
  extended byjava.util.AbstractMap
      extended byoracle.jbo.common.JboAbstractMap
          extended byoracle.jbo.uicli.binding.JUCtrlValueBindingRef
All Implemented Interfaces:
java.util.Map
Direct Known Subclasses:
JUCtrlAdaptValueBindingRef

public class JUCtrlValueBindingRef
extends JboAbstractMap

The base class for all binding objects in the JClient framework that bind a Swing control/model to a BC4J attribute(s). This class manages:

This class also implements helper methods to access BC4J objects like the Transaction, the current Application Module, the ViewObject that this control binding is working with, the current RowIterator, the current Row in the iterator that this control binding is associated with. It also provides methods to execute the ViewObject behind this again (optionally).


Nested Class Summary
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
static java.lang.String RANGESET_BASE_BINDING
          accesses the underlying row that this reference object is bound to.
static java.lang.String RANGESET_CURRENCY_STRING
          accesses a String representation for web UIs to indicate if this refers to a current row.
static java.lang.String RANGESET_INDEX
          Allows access to this references row-index in the current range set.
static java.lang.String RANGESET_ROW
          accesses the underlying row that this reference object is bound to.
static java.lang.String RANGESET_ROW_KEY
          Allows access to the key for the row referred to by this reference object.
static java.lang.String RANGESET_ROW_KEY_STR
          Allows access to the String form of the key for the row referred to by this reference object.
static java.lang.String RANGESET_ROW_KEY_VALUE
          Allows access to the key-attribute value for the row referred to by this reference object.
 java.lang.String STR_CURRENT_ROW
          String value returned from getCurrencyString if this row is current
 java.lang.String STR_NOT_CURRENT_ROW
          String value returned from getCurrencyString if this row is not current
 
Constructor Summary
protected JUCtrlValueBindingRef(JUCtrlValueBinding binding, int index, Row row)
           
 
Method Summary
 java.lang.Object get(java.lang.Object key)
          Properties returned vis getter on this reference object are: index - returns Range Index of the row this reference is pointing to key - returns Key of the row this reference is pointing to keyStr - returns String format of the key of the row this reference is pointing to() currencyString - returns getCurrencyString attributeValues - returns Array of applicable attribute values from the row()
protected  java.lang.Object[] getAttributeValues()
           
 JUCtrlValueBinding getBinding()
           
 java.lang.String getCurrencyString()
           
protected  DCControlBinding getReferencedBinding()
          Returns the copntrol binding with which this reference is associated to get it's data.
 Row getRow()
           
 void makeCurrentRow()
          Changes the currency to the row represented by this valu binding reference
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
protected  java.lang.Object resolveAttributeValue(java.lang.String key, java.lang.Object attrValue)
           
 
Methods inherited from class oracle.jbo.common.JboAbstractMap
entrySet, equals, hashCode, internalGet
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, isEmpty, keySet, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RANGESET_INDEX

public static final java.lang.String RANGESET_INDEX
Allows access to this references row-index in the current range set.

See Also:
Constant Field Values

RANGESET_ROW_KEY

public static final java.lang.String RANGESET_ROW_KEY
Allows access to the key for the row referred to by this reference object.

See Also:
Constant Field Values

RANGESET_ROW_KEY_STR

public static final java.lang.String RANGESET_ROW_KEY_STR
Allows access to the String form of the key for the row referred to by this reference object.

See Also:
Constant Field Values

RANGESET_ROW_KEY_VALUE

public static final java.lang.String RANGESET_ROW_KEY_VALUE
Allows access to the key-attribute value for the row referred to by this reference object. This assumes that this row type has only one attribute marked as key attribute.

See Also:
Constant Field Values

RANGESET_CURRENCY_STRING

public static final java.lang.String RANGESET_CURRENCY_STRING
accesses a String representation for web UIs to indicate if this refers to a current row.

See Also:
Constant Field Values

RANGESET_ROW

public static final java.lang.String RANGESET_ROW
accesses the underlying row that this reference object is bound to.

See Also:
Constant Field Values

RANGESET_BASE_BINDING

public static final java.lang.String RANGESET_BASE_BINDING
accesses the underlying row that this reference object is bound to.

See Also:
Constant Field Values

STR_NOT_CURRENT_ROW

public final java.lang.String STR_NOT_CURRENT_ROW
String value returned from getCurrencyString if this row is not current

See Also:
Constant Field Values

STR_CURRENT_ROW

public final java.lang.String STR_CURRENT_ROW
String value returned from getCurrencyString if this row is current

See Also:
Constant Field Values
Constructor Detail

JUCtrlValueBindingRef

protected JUCtrlValueBindingRef(JUCtrlValueBinding binding,
                                int index,
                                Row row)
Method Detail

getBinding

public JUCtrlValueBinding getBinding()

getRow

public Row getRow()

getCurrencyString

public java.lang.String getCurrencyString()
Returns:
"*" if this refers to a current row otherwise returns " ".

makeCurrentRow

public void makeCurrentRow()
Changes the currency to the row represented by this valu binding reference


get

public java.lang.Object get(java.lang.Object key)
Properties returned vis getter on this reference object are:
  • index - returns Range Index of the row this reference is pointing to
  • key - returns Key of the row this reference is pointing to
  • keyStr - returns String format of the key of the row this reference is pointing to()
  • currencyString - returns getCurrencyString
  • attributeValues - returns Array of applicable attribute values from the row()
  • Specified by:
    get in interface java.util.Map
    Overrides:
    get in class JboAbstractMap

    getAttributeValues

    protected java.lang.Object[] getAttributeValues()

    resolveAttributeValue

    protected java.lang.Object resolveAttributeValue(java.lang.String key,
                                                     java.lang.Object attrValue)

    getReferencedBinding

    protected final DCControlBinding getReferencedBinding()
    Returns the copntrol binding with which this reference is associated to get it's data.


    put

    public java.lang.Object put(java.lang.Object key,
                                java.lang.Object value)

    Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01

     

    Copyright © 1997, 2004, Oracle. All rights reserved.