Dashboard Builder UI Panels 6.0.0.CR5

org.jboss.dashboard.ui.panel.export
Class RenderImportPreviewFormatter

java.lang.Object
  extended by org.jboss.dashboard.factory.BasicFactoryElement
      extended by org.jboss.dashboard.ui.taglib.formatter.Formatter
          extended by org.jboss.dashboard.ui.panel.export.RenderImportPreviewFormatter
All Implemented Interfaces:
Serializable, org.jboss.dashboard.factory.FactoryLifecycle
Direct Known Subclasses:
RenderImportResultFormatter

public class RenderImportPreviewFormatter
extends org.jboss.dashboard.ui.taglib.formatter.Formatter

See Also:
Serialized Form

Constructor Summary
RenderImportPreviewFormatter()
           
 
Method Summary
protected  void renderElementsInEntry(org.jboss.dashboard.workspace.export.structure.ImportResult result, int index)
           
protected  boolean renderImportResult(org.jboss.dashboard.workspace.export.structure.ImportResult result, int index)
           
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Perform the required logic for this Formatter.
 
Methods inherited from class org.jboss.dashboard.ui.taglib.formatter.Formatter
afterRendering, formatObject, getDefaultLang, getDriver, getEncoding, getLang, getLocale, getLocaleManager, getLocalizedValue, getPanel, getParameter, getProvider, getSection, getWorkspace, includePage, renderFragment, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeInterpreter, setTag, writeToOut
 
Methods inherited from class org.jboss.dashboard.factory.BasicFactoryElement
addPeriodicTask, addPeriodicTask, factoryLookup, getComponentAlias, getComponentDescription, getComponentName, getComponentScope, init, setComponentAlias, shutdown, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderImportPreviewFormatter

public RenderImportPreviewFormatter()
Method Detail

service

public void service(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws org.jboss.dashboard.ui.taglib.formatter.FormatterException
Perform the required logic for this Formatter. Inside, the methods setAttribute and renderFragment are intended to be used to generate the output and set parameters for this output. Method getParameter is intended to retrieve input parameters by name.

Exceptions are to be catched inside the method, and not to be thrown, normally, formatters could use a error fragment to be displayed when an error happens in displaying. But if the error is unexpected, it can be wrapped inside a FormatterException.

Specified by:
service in class org.jboss.dashboard.ui.taglib.formatter.Formatter
Parameters:
request - user request
response - response to the user
Throws:
org.jboss.dashboard.ui.taglib.formatter.FormatterException - in case of an unexpected exception.

renderImportResult

protected boolean renderImportResult(org.jboss.dashboard.workspace.export.structure.ImportResult result,
                                     int index)

renderElementsInEntry

protected void renderElementsInEntry(org.jboss.dashboard.workspace.export.structure.ImportResult result,
                                     int index)

Dashboard Builder UI Panels 6.0.0.CR5

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.