com.fruitioninc.jwc.basic
Class ComponentView

java.lang.Object
  |
  +--com.fruitioninc.jwc.basic.ComponentView
All Implemented Interfaces:
View
Direct Known Subclasses:
ButtonView, ContainerView, HyperLinkView, LabelView, ListBoxView, TableView, TextAreaView, TextFieldView

public abstract class ComponentView
extends java.lang.Object
implements View


Field Summary
static java.lang.String ELEMENT_MOUSE_LISTENER
           
static java.lang.String ELEMENT_PATH_NAME
           
protected  RequestParameterNameMarshaller m_marshaller
           
 
Constructor Summary
ComponentView()
           
 
Method Summary
protected  java.lang.String getComponentElementName()
           
 void render(RenderContext context, Component component)
          Creates the graphical representation of a component.
 void render(SAXRenderContext context, Component component)
           
protected abstract  void renderComponent(SAXRenderContext context, Component component)
           
 void renderModelState(SAXRenderContext context, Component component)
           
protected static void renderObjectProperty(SAXRenderContext context, Component component, Property property)
           
protected static void renderStringProperty(SAXRenderContext context, Component component, Property property)
           
protected static void renderStringProperty(SAXRenderContext context, Component component, Property property, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_marshaller

protected RequestParameterNameMarshaller m_marshaller

ELEMENT_MOUSE_LISTENER

public static final java.lang.String ELEMENT_MOUSE_LISTENER
See Also:
Constant Field Values

ELEMENT_PATH_NAME

public static final java.lang.String ELEMENT_PATH_NAME
See Also:
Constant Field Values
Constructor Detail

ComponentView

public ComponentView()
Method Detail

render

public void render(RenderContext context,
                   Component component)
            throws RenderException
Description copied from interface: View
Creates the graphical representation of a component.

Specified by:
render in interface View
Parameters:
context - the context in which to render (this will need to be cast to an implementation specific class/interface).
component - the component to render
RenderException

render

public void render(SAXRenderContext context,
                   Component component)
            throws java.io.IOException,
                   org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException

renderModelState

public void renderModelState(SAXRenderContext context,
                             Component component)
                      throws java.io.IOException,
                             org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException

renderObjectProperty

protected static void renderObjectProperty(SAXRenderContext context,
                                           Component component,
                                           Property property)
                                    throws java.io.IOException,
                                           org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException

renderStringProperty

protected static void renderStringProperty(SAXRenderContext context,
                                           Component component,
                                           Property property)
                                    throws java.io.IOException,
                                           org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException

renderStringProperty

protected static void renderStringProperty(SAXRenderContext context,
                                           Component component,
                                           Property property,
                                           org.xml.sax.Attributes attributes)
                                    throws java.io.IOException,
                                           org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException

renderComponent

protected abstract void renderComponent(SAXRenderContext context,
                                        Component component)
                                 throws java.io.IOException,
                                        org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException

getComponentElementName

protected java.lang.String getComponentElementName()