Class LoadProjectSettings
- All Implemented Interfaces:
- HasHandlers
ProjectLoaderServlet. There is no need to instantiate an LoadProjectSettings instance. Just pass a normal JavaScript object with the desired properties.
- 
Field SummaryFields inherited from class com.smartgwt.client.core.DataClassfactoryCreated, factoryProperties
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionShould Placeholders in loaded screens be rendered as placeholders? If property is not set actual components are created instead of the Placeholders.Should DataSources referenced by thefirst screenclobber existing, globally-bound DataSources on the client if the screen is created? The default of false means that any DataSources defined in the screen will be discarded if they collide with existing, globally-bound DataSources.The name of the screen within the project to return first when loading.DataContextthat will be provided to the top-level component asdataContextin each screen cached for the project.booleanDetermines whether thecurrentScreenNamescreen is drawn after all screens have been loaded.The name of a locale to use for resolving i18n tags in the component XML of the screen.String[]DataSource IDs in the project to skip and not load when the project is loaded.booleanWhether to implicitly add all DataSources currently loaded on the client toomitDataSourcesinRPCManager.loadProject().static LoadProjectSettingsgetOrCreateRef(JavaScriptObject jsObj) Use this attribute to specify a project owner.Overridespasswordsetting the account password forReify.loadProject().Path relative to theserver root, to target to use the project loader servlet, instead ofprojectLoaderPath.Allows customizing the projectLoader servlet request properties.A comma-separated string containing the names of screens within the project that should be loaded.URL of Reify server to use when callingReify.loadProject()instead ofserverURL.Sets the timeout for the projectLoader servlet request.OverridesuserNamesetting the account name forReify.loadProject().EnableverifyAsErrorbehavior only for requests using these settings.Enables verification that any screencreatedon load contains a component having alocalIdequal to the given key, and that it is an instance (or subclass) of the key's value.Enables DataSource verification, causing warnings to be output about differences between DataSources loaded with a project vs those that are already present in the page (if any are present).booleanWhether to call the provided callback even if an error was encountered trying to load the project, so that you can run your own error handling.setAllowPlaceholders(Boolean allowPlaceholders) Should Placeholders in loaded screens be rendered as placeholders? If property is not set actual components are created instead of the Placeholders.setClobberDataSources(Boolean clobberDataSources) Should DataSources referenced by thefirst screenclobber existing, globally-bound DataSources on the client if the screen is created? The default of false means that any DataSources defined in the screen will be discarded if they collide with existing, globally-bound DataSources.setCurrentScreenName(String currentScreenName) The name of the screen within the project to return first when loading.setDataContext(DataContext dataContext) DataContextthat will be provided to the top-level component asdataContextin each screen cached for the project.setDrawFirstScreen(boolean drawFirstScreen) Determines whether thecurrentScreenNamescreen is drawn after all screens have been loaded.The name of a locale to use for resolving i18n tags in the component XML of the screen.setOmitDataSources(String... omitDataSources) DataSource IDs in the project to skip and not load when the project is loaded.setOmitLoadedDataSources(boolean omitLoadedDataSources) Whether to implicitly add all DataSources currently loaded on the client toomitDataSourcesinRPCManager.loadProject().setOwnerId(String ownerId) Use this attribute to specify a project owner.setPassword(String password) Overridespasswordsetting the account password forReify.loadProject().setProjectLoaderPath(String projectLoaderPath) Path relative to theserver root, to target to use the project loader servlet, instead ofprojectLoaderPath.setRequestProperties(RPCRequest requestProperties) Allows customizing the projectLoader servlet request properties.setScreenNames(String screenNames) A comma-separated string containing the names of screens within the project that should be loaded.setServerURL(String serverURL) URL of Reify server to use when callingReify.loadProject()instead ofserverURL.setTimeout(Integer timeout) Sets the timeout for the projectLoader servlet request.setUserName(String userName) OverridesuserNamesetting the account name forReify.loadProject().setVerifyAsError(Boolean verifyAsError) EnableverifyAsErrorbehavior only for requests using these settings.setVerifyComponents(Map<String, String> verifyComponents) Enables verification that any screencreatedon load contains a component having alocalIdequal to the given key, and that it is an instance (or subclass) of the key's value.setVerifyDataSources(Boolean verifyDataSources) Enables DataSource verification, causing warnings to be output about differences between DataSources loaded with a project vs those that are already present in the page (if any are present).setWillHandleError(boolean willHandleError) Whether to call the provided callback even if an error was encountered trying to load the project, so that you can run your own error handling.Methods inherited from class com.smartgwt.client.core.DataClassapplyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
- 
Constructor Details- 
LoadProjectSettingspublic LoadProjectSettings()
- 
LoadProjectSettings
 
- 
- 
Method Details- 
getOrCreateRef
- 
setAllowPlaceholdersShould Placeholders in loaded screens be rendered as placeholders? If property is not set actual components are created instead of the Placeholders.- Parameters:
- allowPlaceholders- New allowPlaceholders value. Default value is null
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
 
- 
getAllowPlaceholdersShould Placeholders in loaded screens be rendered as placeholders? If property is not set actual components are created instead of the Placeholders.- Returns:
- Current allowPlaceholders value. Default value is null
 
- 
setClobberDataSourcesShould DataSources referenced by thefirst screenclobber existing, globally-bound DataSources on the client if the screen is created? The default of false means that any DataSources defined in the screen will be discarded if they collide with existing, globally-bound DataSources.Here we consider a DataSource to be "globally bound" if it can be retrieved by ID using the method DataSource.get(), regardless of whether it's actually bound to the browserwindowobject.Note that this setting only has an impact if drawFirstScreenis true.- Parameters:
- clobberDataSources- New clobberDataSources value. Default value is false
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
 
- 
getClobberDataSourcesShould DataSources referenced by thefirst screenclobber existing, globally-bound DataSources on the client if the screen is created? The default of false means that any DataSources defined in the screen will be discarded if they collide with existing, globally-bound DataSources.Here we consider a DataSource to be "globally bound" if it can be retrieved by ID using the method DataSource.get(), regardless of whether it's actually bound to the browserwindowobject.Note that this setting only has an impact if drawFirstScreenis true.- Returns:
- Current clobberDataSources value. Default value is false
 
- 
setCurrentScreenNameThe name of the screen within the project to return first when loading. A null value means to use the currentScreenName as specified in the project file.This setting only affects the first project specified in the projectNamesargument toRPCManager.loadProject().- Parameters:
- currentScreenName- New currentScreenName value. Default value is null
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
 
- 
getCurrentScreenNameThe name of the screen within the project to return first when loading. A null value means to use the currentScreenName as specified in the project file.This setting only affects the first project specified in the projectNamesargument toRPCManager.loadProject().- Returns:
- Current currentScreenName value. Default value is null
 
- 
setDataContextDataContextthat will be provided to the top-level component asdataContextin each screen cached for the project.To understand how dataContextis used to automatically populateDataBoundComponents, seeCanvas.autoPopulateData.- Parameters:
- dataContext- New dataContext value. Default value is null
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
 
- 
getDataContextDataContextthat will be provided to the top-level component asdataContextin each screen cached for the project.To understand how dataContextis used to automatically populateDataBoundComponents, seeCanvas.autoPopulateData.- Returns:
- Current dataContext value. Default value is null
 
- 
setDrawFirstScreenDetermines whether thecurrentScreenNamescreen is drawn after all screens have been loaded. If not drawn, the screen will not be created.This setting only affects the first project specified in the projectNamesargument toRPCManager.loadProject().- Parameters:
- drawFirstScreen- New drawFirstScreen value. Default value is false
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
- See Also:
 
- 
getDrawFirstScreenpublic boolean getDrawFirstScreen()Determines whether thecurrentScreenNamescreen is drawn after all screens have been loaded. If not drawn, the screen will not be created.This setting only affects the first project specified in the projectNamesargument toRPCManager.loadProject().- Returns:
- Current drawFirstScreen value. Default value is false
- See Also:
 
- 
setLocaleThe name of a locale to use for resolving i18n tags in the component XML of the screen. The default value of null omits locale loading, which effectively means the framework default "en" locale is used.- Parameters:
- locale- New locale value. Default value is null
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
 
- 
getLocaleThe name of a locale to use for resolving i18n tags in the component XML of the screen. The default value of null omits locale loading, which effectively means the framework default "en" locale is used.- Returns:
- Current locale value. Default value is null
 
- 
setOmitDataSourcesDataSource IDs in the project to skip and not load when the project is loaded. It is assumed that these IDs represent DataSources that are already globally-bound on the client.The special value of "*" can be specified for this property to indicate that all DataSources should be omitted. Note that, unless omitLoadedDataSourcesis false, all loaded DataSources will by default be added to whatever value you provide (making that also the default for this property).- Parameters:
- omitDataSources- New omitDataSources value. Default value is varies
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
- See Also:
 
- 
getOmitDataSourcesDataSource IDs in the project to skip and not load when the project is loaded. It is assumed that these IDs represent DataSources that are already globally-bound on the client.The special value of "*" can be specified for this property to indicate that all DataSources should be omitted. Note that, unless omitLoadedDataSourcesis false, all loaded DataSources will by default be added to whatever value you provide (making that also the default for this property).- Returns:
- Current omitDataSources value. Default value is varies
- See Also:
 
- 
setOmitLoadedDataSourcesWhether to implicitly add all DataSources currently loaded on the client toomitDataSourcesinRPCManager.loadProject(). Setting this false would only make sense in connection with settingclobberDataSourcestrue, and would create more potential work for the server since many more DataSources could be output.Note that here we consider the "loaded DataSources" to be those that are registered with the DataSource module (i.e. available by ID via DataSource.get()), regardless of whether they're actually bound to the browserwindowobject.- Parameters:
- omitLoadedDataSources- New omitLoadedDataSources value. Default value is true
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
 
- 
getOmitLoadedDataSourcespublic boolean getOmitLoadedDataSources()Whether to implicitly add all DataSources currently loaded on the client toomitDataSourcesinRPCManager.loadProject(). Setting this false would only make sense in connection with settingclobberDataSourcestrue, and would create more potential work for the server since many more DataSources could be output.Note that here we consider the "loaded DataSources" to be those that are registered with the DataSource module (i.e. available by ID via DataSource.get()), regardless of whether they're actually bound to the browserwindowobject.- Returns:
- Current omitLoadedDataSources value. Default value is true
 
- 
setOwnerIdUse this attribute to specify a project owner. Only applicable if project source supports owner identification.- Parameters:
- ownerId- New ownerId value. Default value is null
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
 
- 
getOwnerIdUse this attribute to specify a project owner. Only applicable if project source supports owner identification.- Returns:
- Current ownerId value. Default value is null
 
- 
setPasswordOverridespasswordsetting the account password forReify.loadProject().Note that this setting only applies when using Reify.loadProject().- Parameters:
- password- New password value. Default value is varies
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
 
- 
getPasswordOverridespasswordsetting the account password forReify.loadProject().Note that this setting only applies when using Reify.loadProject().- Returns:
- Current password value. Default value is varies
 
- 
setProjectLoaderPathPath relative to theserver root, to target to use the project loader servlet, instead ofprojectLoaderPath.Note that this setting only applies when using Reify.loadProject().- Parameters:
- projectLoaderPath- New projectLoaderPath value. Default value is varies
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
 
- 
getProjectLoaderPathPath relative to theserver root, to target to use the project loader servlet, instead ofprojectLoaderPath.Note that this setting only applies when using Reify.loadProject().- Returns:
- Current projectLoaderPath value. Default value is varies
 
- 
setRequestPropertiesAllows customizing the projectLoader servlet request properties. Properties that conflict with proper operation of the servlet will be overridden byRPCManager.loadProject().Note : This is an advanced setting - Parameters:
- requestProperties- New requestProperties value. Default value is null
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
 
- 
getRequestPropertiesAllows customizing the projectLoader servlet request properties. Properties that conflict with proper operation of the servlet will be overridden byRPCManager.loadProject().- Returns:
- Current requestProperties value. Default value is null
 
- 
setScreenNamesA comma-separated string containing the names of screens within the project that should be loaded. A null value causes all screens to be loaded.This setting only affects the first project specified in the projectNamesargument toRPCManager.loadProject().- Parameters:
- screenNames- New screenNames value. Default value is null
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
 
- 
getScreenNamesA comma-separated string containing the names of screens within the project that should be loaded. A null value causes all screens to be loaded.This setting only affects the first project specified in the projectNamesargument toRPCManager.loadProject().- Returns:
- Current screenNames value. Default value is null
 
- 
setServerURLURL of Reify server to use when callingReify.loadProject()instead ofserverURL.Note that this setting only applies when using Reify.loadProject().- Parameters:
- serverURL- New serverURL value. Default value is varies
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
- See Also:
 
- 
getServerURLURL of Reify server to use when callingReify.loadProject()instead ofserverURL.Note that this setting only applies when using Reify.loadProject().- Returns:
- Current serverURL value. Default value is varies
- See Also:
 
- 
setTimeoutSets the timeout for the projectLoader servlet request. This is a convenience property so thatrequestPropertiesneed not be set. If unset, the timeout is determined bydefaultTimeout.Note : This is an advanced setting - Parameters:
- timeout- New timeout value. Default value is null
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
 
- 
getTimeoutSets the timeout for the projectLoader servlet request. This is a convenience property so thatrequestPropertiesneed not be set. If unset, the timeout is determined bydefaultTimeout.- Returns:
- Current timeout value. Default value is null
 
- 
setUserNameOverridesuserNamesetting the account name forReify.loadProject().Note that this setting only applies when using Reify.loadProject().- Parameters:
- userName- New userName value. Default value is varies
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
 
- 
getUserNameOverridesuserNamesetting the account name forReify.loadProject().Note that this setting only applies when using Reify.loadProject().- Returns:
- Current userName value. Default value is varies
 
- 
setVerifyAsErrorEnableverifyAsErrorbehavior only for requests using these settings.- Parameters:
- verifyAsError- New verifyAsError value. Default value is null
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
- See Also:
 
- 
getVerifyAsErrorEnableverifyAsErrorbehavior only for requests using these settings.- Returns:
- Current verifyAsError value. Default value is null
- See Also:
 
- 
setVerifyComponentsEnables verification that any screencreatedon load contains a component having alocalIdequal to the given key, and that it is an instance (or subclass) of the key's value. Example:{'customerListGrid': 'ListGrid'}You may verify the presence of Tabs, SectionStackSections, and FormItems by providing their names following the parent component's id in dot-separated notation. Example:{ 'mainTabSet.customersTab': 'ImgTab', 'mainSectionStack.customerStackSection': 'SectionStackSection', 'customerDetailsForm.customerNameItem': 'TextItem' }Findings are always reported to the console, and may also be presented to the user with a warning dialog by settingverifyAsErrororverifyAsError.- Parameters:
- verifyComponents- New verifyComponents value. Default value is null
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
- See Also:
 
- 
getVerifyComponentsEnables verification that any screencreatedon load contains a component having alocalIdequal to the given key, and that it is an instance (or subclass) of the key's value. Example:{'customerListGrid': 'ListGrid'}You may verify the presence of Tabs, SectionStackSections, and FormItems by providing their names following the parent component's id in dot-separated notation. Example:{ 'mainTabSet.customersTab': 'ImgTab', 'mainSectionStack.customerStackSection': 'SectionStackSection', 'customerDetailsForm.customerNameItem': 'TextItem' }Findings are always reported to the console, and may also be presented to the user with a warning dialog by settingverifyAsErrororverifyAsError.- Returns:
- Current verifyComponents value. Default value is null
- See Also:
 
- 
setVerifyDataSourcesEnables DataSource verification, causing warnings to be output about differences between DataSources loaded with a project vs those that are already present in the page (if any are present). Findings are always reported to the console, and may also be presented to the user with a warning dialog by settingverifyAsError. For discussion of which issues will be reported and how, seeDataSource.verifyDataSourcePair().Setting this property will default omitLoadedDataSourcesto false, and will cause the specialomitDataSourcesvalue of "*" to be ignored (but not other ID values). It's important to keep in mind when using this property that loading a project with all of its DataSources can be very slow, if there is a large amount of test data, for example.Note that this behavior can be enabled globally by setting verifyDataSourcesto true. It often makes sense to set it there during development, and turn off in production, since it slightly slows down DataSource loading.- Parameters:
- verifyDataSources- New verifyDataSources value. Default value is null
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
- See Also:
 
- 
getVerifyDataSourcesEnables DataSource verification, causing warnings to be output about differences between DataSources loaded with a project vs those that are already present in the page (if any are present). Findings are always reported to the console, and may also be presented to the user with a warning dialog by settingverifyAsError. For discussion of which issues will be reported and how, seeDataSource.verifyDataSourcePair().Setting this property will default omitLoadedDataSourcesto false, and will cause the specialomitDataSourcesvalue of "*" to be ignored (but not other ID values). It's important to keep in mind when using this property that loading a project with all of its DataSources can be very slow, if there is a large amount of test data, for example.Note that this behavior can be enabled globally by setting verifyDataSourcesto true. It often makes sense to set it there during development, and turn off in production, since it slightly slows down DataSource loading.- Returns:
- Current verifyDataSources value. Default value is null
- See Also:
 
- 
setWillHandleErrorWhether to call the provided callback even if an error was encountered trying to load the project, so that you can run your own error handling. In this case, the list of projects loaded by the callback will be reported as empty.If true, the framework won't log any messages specifically reporting the failure to load the requested projects, but depending on the situation, the browser itself may report errors from the servlet request in the console. - Parameters:
- willHandleError- New willHandleError value. Default value is false
- Returns:
- LoadProjectSettingsinstance, for chaining setter calls
- See Also:
 
- 
getWillHandleErrorpublic boolean getWillHandleError()Whether to call the provided callback even if an error was encountered trying to load the project, so that you can run your own error handling. In this case, the list of projects loaded by the callback will be reported as empty.If true, the framework won't log any messages specifically reporting the failure to load the requested projects, but depending on the situation, the browser itself may report errors from the servlet request in the console. - Returns:
- Current willHandleError value. Default value is false
- See Also:
 
 
-