/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ define([ "dojo/_base/declare", "dojo/_base/xhr", "dojo/_base/event", "dojo/_base/connect", "dojo/dom", "dojo/dom-construct", "dojo/parser", "dojo/json", "dojo/store/Memory", "dojo/data/ObjectStore", "dojox/html/entities", "dijit/registry", "qpid/common/TimeZoneSelector", "dojo/text!../../showPreferences.html", "qpid/common/util", "qpid/management/UserPreferences", "dijit/Dialog", "dijit/form/NumberSpinner", "dijit/form/CheckBox", "dijit/form/Textarea", "dijit/form/FilteringSelect", "dijit/form/TextBox", "dijit/form/DropDownButton", "dijit/form/Button", "dijit/form/Form", "dijit/layout/BorderContainer", "dijit/layout/TabContainer", "dijit/layout/ContentPane", "dojox/grid/EnhancedGrid", "dojox/validate/us", "dojox/validate/web", "dojo/domReady!"], function (declare, xhr, event, connect, dom, domConstruct, parser, json, Memory, ObjectStore, entities, registry, TimeZoneSelector, markup, util, UserPreferences) { var preferenceNames = ["timeZone", "updatePeriod"]; return declare("qpid.management.Preferences", null, { preferencesDialog: null, constructor: function() { var that = this; this.userPreferences = {}; this.domNode = domConstruct.create("div", {innerHTML: markup}); parser.parse(this.domNode).then(function(instances) { that._postParse(); }); }, _postParse: function() { var that = this; this.preferencesDialog = registry.byId("preferences.preferencesDialog"); for(var i=0; i