com.atlassian.gadgets.embedded.internal
Class GadgetViewFactoryImpl

java.lang.Object
  extended by com.atlassian.gadgets.embedded.internal.GadgetViewFactoryImpl
All Implemented Interfaces:
GadgetViewFactory

public class GadgetViewFactoryImpl
extends Object
implements GadgetViewFactory

Default implementation of GadgetViewFactory. Uses RenderedGadgetUriBuilder to render gadget views.


Constructor Summary
GadgetViewFactoryImpl(GadgetSpecFactory specFactory, RenderedGadgetUriBuilder renderedUriBuilder)
           
 
Method Summary
 boolean canRenderInViewType(GadgetState state, ViewType viewType, GadgetRequestContext gadgetRequestContext)
           
 ViewComponent createGadgetView(GadgetState state, View view, GadgetRequestContext gadgetRequestContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GadgetViewFactoryImpl

public GadgetViewFactoryImpl(GadgetSpecFactory specFactory,
                             RenderedGadgetUriBuilder renderedUriBuilder)
Method Detail

createGadgetView

public ViewComponent createGadgetView(GadgetState state,
                                      View view,
                                      GadgetRequestContext gadgetRequestContext)
                               throws GadgetParsingException,
                                      GadgetRenderingException
Specified by:
createGadgetView in interface GadgetViewFactory
Throws:
GadgetParsingException
GadgetRenderingException

canRenderInViewType

public boolean canRenderInViewType(GadgetState state,
                                   ViewType viewType,
                                   GadgetRequestContext gadgetRequestContext)
Specified by:
canRenderInViewType in interface GadgetViewFactory


Copyright © 2009 Atlassian. All Rights Reserved.