Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cocoon.forms.binding
Interface Binding

All Known Implementing Classes:
  AbstractCustomBinding, JXPathBindingBase

public interface Binding

Binding declares the methods to 'bind' (i.e. 'load' and 'save') information elements from some back-end model (2nd argument) to and from a existing Cocoon Form Widget.

Version:
  $Id: Binding.java 587759 2007-10-24 03:00:37Z vgritsenko $

Method Summary
`Binding` | `getClass(String id)` Gets a binding class.
`Library` | `getEnclosingLibrary()` returns the local library for this tree of bindings
`String` | `getId()` Gets binding definition id.
`boolean` | `isValid()` checks for deep validity of this binding tree (taking into accound included libraries)
`void` | `loadFormFromModel(Widget frmModel, Object objModel)` Loads the information-elements from the objModel to the frmModel.
`void` | `saveFormToModel(Widget frmModel, Object objModel)` Saves the infortmation-elements to the objModel from the frmModel.
`void` | `setEnclosingLibrary(Library lib)` sets the library this binding is a part of
`void` | `setParent(Binding binding)` Sets parent binding.

Method Detail

### setParent

    public void setParent(Binding binding)

  Sets parent binding.

  Parameters:
    `binding` - Parent of this binding.

### getId

    public String getId()

  Gets binding definition id.

### getEnclosingLibrary

    public Library getEnclosingLibrary()

  returns the local library for this tree of bindings

### setEnclosingLibrary

    public void setEnclosingLibrary(Library lib)

  sets the library this binding is a part of

### isValid

    public boolean isValid()

  checks for deep validity of this binding tree (taking into accound included libraries)

### getClass

    public Binding getClass(String id)

  Gets a binding class.

  Parameters:
    `id` - Id of binding class to get.

### loadFormFromModel

    public void loadFormFromModel(Widget frmModel,
                                  Object objModel)
                           throws BindingException

  Loads the information-elements from the objModel to the frmModel.

  Parameters:
    `frmModel` -
    `objModel` -
  Throws:
    `BindingException`

### saveFormToModel

    public void saveFormToModel(Widget frmModel,
                                Object objModel)
                         throws BindingException

  Saves the infortmation-elements to the objModel from the frmModel.

  Parameters:
    `frmModel` -
    `objModel` -
  Throws:
    `BindingException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.