Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle Application Development Framework Model and Business Components Java API Reference 10g Release 3 (10.1.3) B16005-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## oracle.binding
Interface RangeBinding

All Superinterfaces:
  ControlBinding

public interface RangeBinding
extends ControlBinding

A ControlBinding that binds multiple attribute values exposed via a datacontrol to a view component, and manages access to current ranges and position within the attribute collection. It can be used for binding the detail rows in a master-detail relationship.
This interface is implemented by the data binding framework, and is made available to the View components through the binding container.

Method Summary
`int` | `getCurrentRowIndex()` Returns the index of the current row.
`java.lang.String[]` | `getLabelSet()` Returns the display label or prompt for the all the attributes represented by this binding.
`java.util.List` | `getRangeSet()` Returns a list of Map elements over the range of rows.
`void` | `setCurrentRowAtIndex(int index)` Designates a given index as the current row.

Methods inherited from interface oracle.binding.ControlBinding
`getName, getPath, release, resolvePath, setListener`

Method Detail

### getLabelSet

    public java.lang.String[] getLabelSet()

  Returns the display label or prompt for the all the attributes represented by this binding.
  Returns:
    An array of the display label or prompt strings, one per attribute represented by this AttributesBinding.

### getCurrentRowIndex

    public int getCurrentRowIndex()

  Returns the index of the current row.
  Returns:
    The index of the current row.

### setCurrentRowAtIndex

    public void setCurrentRowAtIndex(int index)

  Designates a given index as the current row.
  Parameters:
    `index` - the index of the new current row.

### getRangeSet

    public java.util.List getRangeSet()

  Returns a list of Map elements over the range of rows. The elements in this list are wrapper objects over the indexed row in the range that restricts access to only the attributes that this control-binding is bound to. The map exposes the following properties for each row in the range:
  - `index` - returns index of the row
  - `key` - returns Key of the row
  - `keyStr` - returns String format of the key of the row at this index()
  - `currencyString` - if this row is the current row, returns "*" else returns a space.
  - `attributeValues` - returns an array of attribute values for attributes that are bound to this row
  -   Returns:
        A list of Map elements as described above.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle Application Development Framework Model and Business Components Java API Reference 10g Release 3 (10.1.3) B16005-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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