jimm.datavision.layout.swing
Class AbstractSwingField

java.lang.Object
  extended by jimm.datavision.layout.swing.AbstractSwingField
All Implemented Interfaces:
SwingField
Direct Known Subclasses:
SwingImageField, SwingTextField

public abstract class AbstractSwingField
extends java.lang.Object
implements SwingField


Field Summary
protected  javax.swing.JComponent component
           
protected  Field field
           
 
Constructor Summary
AbstractSwingField(Field f, javax.swing.JComponent c)
           
 
Method Summary
abstract  void format()
          Does whatever it takes to prepare the field for rendering: applies formatting, graying-out, etc.
 java.awt.Color getColor()
          Returns a default color for this field.
 javax.swing.JComponent getComponent()
           
 Field getField()
           
protected  void makeBorders()
          Makes borders using the field's border.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

field

protected Field field

component

protected javax.swing.JComponent component
Constructor Detail

AbstractSwingField

public AbstractSwingField(Field f,
                          javax.swing.JComponent c)
Method Detail

getField

public Field getField()
Specified by:
getField in interface SwingField

getComponent

public javax.swing.JComponent getComponent()
Specified by:
getComponent in interface SwingField

getColor

public java.awt.Color getColor()
Returns a default color for this field. SwingTextField.getColor() overrides this method.

Returns:
Color.black

format

public abstract void format()
Does whatever it takes to prepare the field for rendering: applies formatting, graying-out, etc.

Specified by:
format in interface SwingField

makeBorders

protected void makeBorders()
Makes borders using the field's border. Unimplemented.