com.sage.swt.client.ui.builder
Class ScriptsSectionBuilder

java.lang.Object
  extended by com.sage.swt.client.ui.builder.ScriptsSectionBuilder
All Implemented Interfaces:
UIDefSectionBuilder

public class ScriptsSectionBuilder
extends java.lang.Object
implements UIDefSectionBuilder

Section builder that gathers information from the "scripts" section of a declarative UI definition.


Constructor Summary
ScriptsSectionBuilder(ExternalScriptCache cache)
          Constructs a "scripts" section builder.
 
Method Summary
 void startBuild(com.google.gwt.xml.client.Element sectionRootElem, DefaultUIDefinition uiDefinition, SwtRequestDispatcher requestDispatcher, SwtErrorStack errorStack, UIDefSectionBuilderCallback callback)
          Starts the build of the section whose information is within the section's root element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptsSectionBuilder

public ScriptsSectionBuilder(ExternalScriptCache cache)
Constructs a "scripts" section builder.

Parameters:
cache - The cache for storing installed external scripts.
Method Detail

startBuild

public void startBuild(com.google.gwt.xml.client.Element sectionRootElem,
                       DefaultUIDefinition uiDefinition,
                       SwtRequestDispatcher requestDispatcher,
                       SwtErrorStack errorStack,
                       UIDefSectionBuilderCallback callback)
Starts the build of the section whose information is within the section's root element. Once the section build is completed, the supplied UI definition will be modified to include the results of the build.

Specified by:
startBuild in interface UIDefSectionBuilder
Parameters:
sectionRootElem - The root element of the section to be built.
uiDefinition - The UI definition that will be modified with the results of the build.
requestDispatcher - The server request dispatcher used for downloading external declarative information.
errorStack - The UI's stack of SWT errors.
callback - A required callback that lets the section builder notify the caller when the section builder is done (and the UI definition has been modified) or when the builder encounters an error that prevents it from finishing that build.


Copyright © 2011 Sage Software, Inc. All rights reserved.