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, ModuleId moduleId, View view, GadgetRequestContext gadgetRequestContext)
           
 ViewComponent createGadgetView(GadgetState state, View view, GadgetRequestContext gadgetRequestContext)
          Deprecated. as of 2.0, use GadgetViewFactory.createGadgetView(com.atlassian.gadgets.GadgetState,com.atlassian.gadgets.view.ModuleId,com.atlassian.gadgets.view.View,com.atlassian.gadgets.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

@Deprecated
public ViewComponent createGadgetView(GadgetState state,
                                                 View view,
                                                 GadgetRequestContext gadgetRequestContext)
                               throws GadgetParsingException,
                                      GadgetRenderingException
Deprecated. as of 2.0, use GadgetViewFactory.createGadgetView(com.atlassian.gadgets.GadgetState,com.atlassian.gadgets.view.ModuleId,com.atlassian.gadgets.view.View,com.atlassian.gadgets.GadgetRequestContext)

Specified by:
createGadgetView in interface GadgetViewFactory
Throws:
GadgetParsingException
GadgetRenderingException

createGadgetView

public ViewComponent createGadgetView(GadgetState state,
                                      ModuleId moduleId,
                                      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 © 2011 Atlassian. All Rights Reserved.