tweed.binding
Class Binding

java.lang.Object
  |
  +--tweed.binding.Binding

public abstract class Binding
extends java.lang.Object

Base class for transferring data between model and view. Subclasses must declare a constructor taking both as input parameters. Model and view members must be declared final. Both should be declared with the strongest possible type.

This class defines templates methods, which are especially useful for managing threading issues and exceptions.

Version:
$Id$
Author:
Laurent Caillette

Constructor Summary
protected Binding(Context context)
           
 
Method Summary
 InputValidationHub.ValidationMessageBuilder createMessage(java.lang.String message)
           
protected abstract  void doUpdateModel()
           
protected abstract  void doUpdateView()
           
protected  Context getContext()
           
 void updateModel()
           
 void updateView()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Binding

protected Binding(Context context)
Method Detail

getContext

protected final Context getContext()

createMessage

public InputValidationHub.ValidationMessageBuilder createMessage(java.lang.String message)

updateView

public final void updateView()

updateModel

public final void updateModel()

doUpdateView

protected abstract void doUpdateView()

doUpdateModel

protected abstract void doUpdateModel()


Copyright © 2003 Laurent Caillette. All Rights Reserved.