br.usp.iterador.gui.util
Class ModelColorField

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

public class ModelColorField
extends BasicModel

A color field.

Author:
Guilherme Silveira

Constructor Summary
ModelColorField()
           
ModelColorField(java.lang.Object data, java.lang.String fieldName)
           
ModelColorField(java.lang.String xpath)
           
 
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

ModelColorField

public ModelColorField()

ModelColorField

public ModelColorField(java.lang.String xpath)

ModelColorField

public ModelColorField(java.lang.Object data,
                       java.lang.String fieldName)
                throws UpdateException
Throws:
UpdateException
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.