org.allcolor.yahp.cl.converter.swing
Class CSwingHtmlRenderer.CFormView

java.lang.Object
  extended by javax.swing.text.View
      extended by javax.swing.text.ComponentView
          extended by javax.swing.text.html.FormView
              extended by org.allcolor.yahp.cl.converter.swing.CSwingHtmlRenderer.CFormView
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, javax.swing.SwingConstants
Enclosing class:
CSwingHtmlRenderer

public static class CSwingHtmlRenderer.CFormView
extends javax.swing.text.html.FormView

This class is used to render Form components. Radio, Checkbox, Combobox, Textfield, Textarea, Button

Version:
v0.98
Author:
Quentin Anciaux

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.text.html.FormView
javax.swing.text.html.FormView.MouseEventListener
 
Field Summary
 
Fields inherited from class javax.swing.text.html.FormView
RESET, SUBMIT
 
Fields inherited from class javax.swing.text.View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
CSwingHtmlRenderer.CFormView(javax.swing.text.Element elem)
          Creates a new CFormView object.
 
Method Summary
private  java.awt.Font getFont(java.lang.String family)
           
 void paint(java.awt.Graphics fg, java.awt.Shape a)
          Do nothing in here
 void realPaint(java.awt.Graphics fg, java.awt.Shape a)
          Paint the component on the graphics object
 
Methods inherited from class javax.swing.text.html.FormView
actionPerformed, createComponent, getMaximumSpan, imageSubmit, submitData
 
Methods inherited from class javax.swing.text.ComponentView
getAlignment, getComponent, getMinimumSpan, getPreferredSpan, modelToView, setParent, viewToModel
 
Methods inherited from class javax.swing.text.View
append, breakView, changedUpdate, createFragment, forwardUpdate, forwardUpdateToView, getAttributes, getBreakWeight, getChildAllocation, getContainer, getDocument, getElement, getEndOffset, getGraphics, getNextVisualPositionFrom, getParent, getResizeWeight, getStartOffset, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, insertUpdate, isVisible, modelToView, modelToView, preferenceChanged, remove, removeAll, removeUpdate, replace, setSize, updateChildren, updateLayout, viewToModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSwingHtmlRenderer.CFormView

public CSwingHtmlRenderer.CFormView(javax.swing.text.Element elem)
Creates a new CFormView object.

Parameters:
elem - Swing text element representing the form component
Method Detail

paint

public void paint(java.awt.Graphics fg,
                  java.awt.Shape a)
Do nothing in here

Overrides:
paint in class javax.swing.text.ComponentView
Parameters:
fg - not used
a - not used

getFont

private java.awt.Font getFont(java.lang.String family)

realPaint

public void realPaint(java.awt.Graphics fg,
                      java.awt.Shape a)
Paint the component on the graphics object

Parameters:
fg - The graphics object to paint on
a - the area to paint into.