br.usp.iterador.gui.util
Class ModelCheckbox

java.lang.Object
  extended by br.usp.iterador.gui.util.BasicModel
      extended by br.usp.iterador.gui.util.ModelCheckbox
All Implemented Interfaces:
ModelField

public class ModelCheckbox
extends BasicModel

A checkbox.

Author:
Guilherme Silveira

Constructor Summary
ModelCheckbox()
          Constructor
ModelCheckbox(java.lang.String fieldName)
          Constructor
ModelCheckbox(java.lang.String title, java.lang.String field)
           
 
Method Summary
 java.awt.Component getComponent()
          The awt component.
 void updateField(java.lang.Object o, JXPathResolver resolver)
          Updates the component with the object's value.
 void updateObject(java.lang.Object o, JXPathResolver resolver)
          Updates the object with its internal value.
 
Methods inherited from class br.usp.iterador.gui.util.BasicModel
getHeight, getWidth, setSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelCheckbox

public ModelCheckbox()
Constructor


ModelCheckbox

public ModelCheckbox(java.lang.String fieldName)
Constructor

Parameters:
fieldName - field name

ModelCheckbox

public ModelCheckbox(java.lang.String title,
                     java.lang.String field)
Method Detail

updateField

public void updateField(java.lang.Object o,
                        JXPathResolver resolver)
                 throws UpdateException
Description copied from interface: ModelField
Updates the component with the object's value.

Throws:
UpdateException

updateObject

public void updateObject(java.lang.Object o,
                         JXPathResolver resolver)
                  throws UpdateException
Description copied from interface: ModelField
Updates the object with its internal value.

Throws:
UpdateException

getComponent

public java.awt.Component getComponent()
Description copied from interface: ModelField
The awt component.

Returns:
the component


Copyright 2004-2004-2006 IME - USP. All Rights Reserved.