Searched refs:rows (Results 1 - 25 of 54) sorted by relevance

123

/forgerock/openam/openam-ui/openam-ui-ria/src/main/js/org/forgerock/openam/ui/common/components/table/
H A DInlineEditTable.js37 * Initializes the table with editables rows. Only single row is allowed to be in edit mode at a time.
39 * @param {object[]} values=[] Data array to be passed to the rows
45 this.rows = [];
70 this.rows.push(row);
105 this.rows.push(row);
111 this.rows = _.without(this.rows, row);
130 return _.map(this.rows, (row) => row.getData());
139 this.rows = [];
/forgerock/openam-v13/openam-ui/openam-ui-ria/src/main/js/libs/
H A Djsoneditor-0.7.22-custom.js2333 var rows = [];
2340 // See if the editor will fit in any of the existing rows first
2341 for(var i=0; i<rows.length; i++) {
2343 if(rows[i].width + width <= 12) {
2346 if(!height || (rows[i].minh*0.5 < height && rows[i].maxh*2 > height)) {
2352 // If there isn't a spot in any of the existing rows, start a new row
2354 rows.push({
2360 found = rows.length-1;
2363 rows[foun
[all...]
/forgerock/opendj-b2.6/src/server/org/opends/server/util/table/
H A DTableBuilder.java57 // The current number of rows in the table.
60 // The list of table rows.
61 private List<List<String>> rows = new ArrayList<List<String>>(); field in class:TableBuilder
229 rows.get(height - 1).add(s);
284 * Gets the number of rows in table.
286 * @return Returns the number of rows in table.
317 List<List<String>> sortedRows = new ArrayList<List<String>>(rows);
332 // Both rows are equal.
379 rows.add(new ArrayList<String>());
/forgerock/opendj2/src/server/org/opends/server/util/table/
H A DTableBuilder.java56 // The current number of rows in the table.
59 // The list of table rows.
60 private List<List<String>> rows = new ArrayList<List<String>>(); field in class:TableBuilder
228 rows.get(height - 1).add(s);
283 * Gets the number of rows in table.
285 * @return Returns the number of rows in table.
316 List<List<String>> sortedRows = new ArrayList<List<String>>(rows);
331 // Both rows are equal.
378 rows.add(new ArrayList<String>());
/forgerock/opendj2.6.2/src/server/org/opends/server/util/table/
H A DTableBuilder.java57 // The current number of rows in the table.
60 // The list of table rows.
61 private List<List<String>> rows = new ArrayList<List<String>>(); field in class:TableBuilder
229 rows.get(height - 1).add(s);
284 * Gets the number of rows in table.
286 * @return Returns the number of rows in table.
317 List<List<String>> sortedRows = new ArrayList<List<String>>(rows);
332 // Both rows are equal.
379 rows.add(new ArrayList<String>());
/forgerock/opendj2-jel-hg/src/server/org/opends/server/util/table/
H A DTableBuilder.java57 // The current number of rows in the table.
60 // The list of table rows.
61 private List<List<String>> rows = new ArrayList<List<String>>(); field in class:TableBuilder
229 rows.get(height - 1).add(s);
284 * Gets the number of rows in table.
286 * @return Returns the number of rows in table.
317 List<List<String>> sortedRows = new ArrayList<List<String>>(rows);
332 // Both rows are equal.
379 rows.add(new ArrayList<String>());
/forgerock/opendj2-hg/src/server/org/opends/server/util/table/
H A DTableBuilder.java56 // The current number of rows in the table.
59 // The list of table rows.
60 private List<List<String>> rows = new ArrayList<List<String>>(); field in class:TableBuilder
228 rows.get(height - 1).add(s);
283 * Gets the number of rows in table.
285 * @return Returns the number of rows in table.
316 List<List<String>> sortedRows = new ArrayList<List<String>>(rows);
331 // Both rows are equal.
378 rows.add(new ArrayList<String>());
/forgerock/openam/openam-ui/openam-ui-ria/src/main/js/libs/
H A Djsoneditor-0.7.23-custom.js8 this._super()},disable:function(){this.input.disabled=!0,this._super()},afterInputReady:function(){var a,b=this;if(this.source_code)if(this.options.wysiwyg&&["html","bbcode"].indexOf(this.input_type)>=0&&window.jQuery&&window.jQuery.fn&&window.jQuery.fn.sceditor)a=c({},{plugins:"html"===b.input_type?"xhtml":"bbcode",emoticonsEnabled:!1,width:"100%",height:300},g.plugins.sceditor,b.options.sceditor_options||{}),window.jQuery(b.input).sceditor(a),b.sceditor_instance=window.jQuery(b.input).sceditor("instance"),b.sceditor_instance.blur(function(){var a=window.jQuery("<div>"+b.sceditor_instance.val()+"</div>");window.jQuery("#sceditor-start-marker,#sceditor-end-marker,.sceditor-nlf",a).remove(),b.input.value=a.html(),b.value=b.input.value,b.is_dirty=!0,b.onChange(!0)});else if("markdown"===this.input_type&&window.EpicEditor)this.epiceditor_container=document.createElement("div"),this.input.parentNode.insertBefore(this.epiceditor_container,this.input),this.input.style.display="none",a=c({},g.plugins.epiceditor,{container:this.epiceditor_container,clientSideStorage:!1}),this.epiceditor=new window.EpicEditor(a).load(),this.epiceditor.importFile(null,this.getValue()),this.epiceditor.on("update",function(){var a=b.epiceditor.exportFile();b.input.value=a,b.value=a,b.is_dirty=!0,b.onChange(!0)});else if(window.ace){var d=this.input_type;("cpp"===d||"c++"===d||"c"===d)&&(d="c_cpp"),this.ace_container=document.createElement("div"),this.ace_container.style.width="100%",this.ace_container.style.position="relative",this.ace_container.style.height="400px",this.input.parentNode.insertBefore(this.ace_container,this.input),this.input.style.display="none",this.ace_editor=window.ace.edit(this.ace_container),this.ace_editor.setValue(this.getValue()),g.plugins.ace.theme&&this.ace_editor.setTheme("ace/theme/"+g.plugins.ace.theme),d=window.ace.require("ace/mode/"+d),d&&this.ace_editor.getSession().setMode(new d.Mode),this.ace_editor.on("change",function(){var a=b.ace_editor.getValue();b.input.value=a,b.refreshValue(),b.is_dirty=!0,b.onChange(!0)})}b.theme.afterInputReady(b.input)},refreshValue:function(){this.value=this.input.value,"string"!=typeof this.value&&(this.value=""),this.serialized=this.value},destroy:function(){this.sceditor_instance?this.sceditor_instance.destroy():this.epiceditor?this.epiceditor.unload():this.ace_editor&&this.ace_editor.destroy(),this.template=null,this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),this._super()},sanitize:function(a){return a},addButton:function(a){this.extraButtons||(this.extraButtons=[]),this.extraButtons.push(a)},onWatchedFieldChange:function(){var a;this.template&&(a=this.getWatchedFieldValues(),this.setValue(this.template(a),!1,!0)),this._super()},showValidationErrors:function(a){var b=this;if("always"===this.jsoneditor.options.show_errors);else if(!this.is_dirty&&this.previous_error_setting===this.jsoneditor.options.show_errors)return;this.previous_error_setting=this.jsoneditor.options.show_errors;var c=[];e(a,function(a,d){d.path===b.path&&c.push(d.message)}),c.length?this.theme.addInputError(this.input,c.join(". ")+"."):this.theme.removeInputError(this.input)}}),g.defaults.editors.number=g.defaults.editors.string.extend({sanitize:function(a){return(a+"").replace(/[^0-9\.\-eE]/g,"")},getNumColumns:function(){return 2},getValue:function(){return d(this.value)?1*this.value:this.value}}),g.defaults.editors.integer=g.defaults.editors.number.extend({sanitize:function(a){return a+="",a.replace(/[^0-9\-]/g,"")},getNumColumns:function(){return 2}}),g.defaults.editors.object=g.AbstractEditor.extend({getDefault:function(){return c({},this.schema["default"]||{})},getChildEditors:function(){return this.editors},register:function(){if(this._super(),this.editors)for(var a in this.editors)this.editors.hasOwnProperty(a)&&this.editors[a].register()},unregister:function(){if(this._super(),this.editors)for(var a in this.editors)this.editors.hasOwnProperty(a)&&this.editors[a].unregister()},getNumColumns:function(){return Math.max(Math.min(12,this.maxwidth),3)},enable:function(){if(this.editjson_button&&(this.editjson_button.disabled=!1),this._super(),this.editors)for(var a in this.editors)this.editors.hasOwnProperty(a)&&this.editors[a].enable()},disable:function(){if(this.editjson_button&&(this.editjson_button.disabled=!0),this.hideEditJSON(),this._super(),this.editors)for(var a in this.editors)this.editors.hasOwnProperty(a)&&this.editors[a].disable()},syncModelWithView:function(){if(this.editors)for(var a in this.editors)this.editors[a].syncModelWithView()},layoutEditors:function(){var a,b,c=this;if(this.row_container){this.property_order=Object.keys(this.editors),this.property_order=this.property_order.sort(function(a,b){var d=c.editors[a].schema.propertyOrder,e=c.editors[b].schema.propertyOrder;return"number"!=typeof d&&(d=1e3),"number"!=typeof e&&(e=1e3),d-e});var d;if("grid"===this.format){var f=[];for(e(this.property_order,function(a,b){var d=c.editors[b];if(!d.property_removed){for(var e=!1,g=d.options.hidden?0:d.options.grid_columns||d.getNumColumns(),h=d.options.hidden?0:d.container.offsetHeight,i=0;i<f.length;i++)f[i].width+g<=12&&(!h||.5*f[i].minh<h&&2*f[i].maxh>h)&&(e=i);e===!1&&(f.push({width:0,minh:999999,maxh:0,editors:[]}),e=f.length-1),f[e].editors.push({key:b,width:g,height:h}),f[e].width+=g,f[e].minh=Math.min(f[e].minh,h),f[e].maxh=Math.max(f[e].maxh,h)}}),a=0;a<f.length;a++)if(f[a].width<12){var g=!1,h=0;for(b=0;b<f[a].editors.length;b++)g===!1?g=b:f[a].editors[b].width>f[a].editors[g].width&&(g=b),f[a].editors[b].width*=12/f[a].width,f[a].editors[b].width=Math.floor(f[a].editors[b].width),h+=f[a].editors[b].width;12>h&&(f[a].editors[g].width+=12-h),f[a].width=12}if(this.layout===JSON.stringify(f))return!1;for(this.layout=JSON.stringify(f),d=document.createElement("div"),a=0;a<f.length;a++){var i=this.theme.getGridRow();for(d.appendChild(i),b=0;b<f[a].editors.length;b++){var j=f[a].editors[b].key,k=this.editors[j];k.options.hidden?k.container.style.display="none":this.theme.setGridColumnSize(k.container,f[a].editors[b].width),i.appendChild(k.container)}}}else d=document.createElement("div"),e(this.property_order,function(a,b){var e=c.editors[b];if(!e.property_removed){var f=c.theme.getGridRow();d.appendChild(f),e.options.hidden?e.container.style.display="none":c.theme.setGridColumnSize(e.container,12),f.appendChild(e.container)}});this.row_container.innerHTML="",this.row_container.appendChild(d)}},getPropertySchema:function(a){var b=this.schema.properties[a]||{};b=c({},b);var d=this.schema.properties[a]?!0:!1;if(this.schema.patternProperties)for(var e in this.schema.patternProperties)if(this.schema.patternProperties.hasOwnProperty(e)){var f=new RegExp(e);f.test(a)&&(b.allOf=b.allOf||[],b.allOf.push(this.schema.patternProperties[e]),d=!0)}return!d&&this.schema.additionalProperties&&"object"==typeof this.schema.additionalProperties&&(b=c({},this.schema.additionalProperties)),b},preBuild:function(){this._super(),this.editors={},this.cached_editors={};var a=this;if(this.format=this.options.layout||this.options.object_layout||this.schema.format||this.jsoneditor.options.object_layout||"normal",this.schema.properties=this.schema.properties||{},this.minwidth=0,this.maxwidth=0,this.options.table_row)e(this.schema.properties,function(b,c){var d=a.jsoneditor.getEditorClass(c);a.editors[b]=a.jsoneditor.createEditor(d,{jsoneditor:a.jsoneditor,schema:c,path:a.path+"."+b,key:b,parent:a,compact:!0,required:!0}),a.editors[b].preBuild();var e=a.editors[b].options.hidden?0:a.editors[b].options.grid_columns||a.editors[b].getNumColumns();a.minwidth+=e,a.maxwidth+=e}),this.no_link_holder=!0;else{if(this.options.table)throw"Not supported yet";this.defaultProperties=this.schema.defaultProperties||Object.keys(this.schema.properties),a.maxwidth+=1,e(this.defaultProperties,function(b,c){a.addObjectProperty(c,!0),a.editors[c]&&(a.minwidth=Math.max(a.minwidth,a.editors[c].options.grid_columns||a.editors[c].getNumColumns()),a.maxwidth+=a.editors[c].options.grid_columns||a.editors[c].getNumColumns())})}this.property_order=Object.keys(this.editors),this.property_order=this.property_order.sort(function(b,c){var d=a.editors[b].schema.propertyOrder,e=a.editors[c].schema.propertyOrder;return"number"!=typeof d&&(d=1e3),"number"!=typeof e&&(e=1e3),d-e})},build:function(){var a=this,b=this.schema.hasOwnProperty("patternProperties"),c=this.schema.hasOwnProperty("properties");if(this.options.table_row)this.editor_holder=this.container,e(this.editors,function(b,c){var d=a.theme.getTableCell();a.editor_holder.appendChild(d),c.setContainer(d),c.build(),c.postBuild(),a.editors[b].options.hidden&&(d.style.display="none"),a.editors[b].options.input_width&&(d.style.width=a.editors[b].options.input_width)});else{if(this.options.table)throw"Not supported yet";this.header=this.theme.getHeader(this.getTitle()),this.title=this.theme.getGridContainer(),b&&(this.header=this.theme.getMapHeader(this.getTitle())),(c||b)&&this.schema.title&&this.title.appendChild(this.header),this.schema.description&&(this.description=this.theme.getDescription(this.schema.description),this.header.appendChild(this.description)),this.container.appendChild(this.title),this.container.style.position="relative",this.addproperty_holder=this.theme.getModal(),this.addproperty_list=document.createElement("div"),this.addproperty_add=this.getButton("add","add","add"),this.addproperty_input_value=this.theme.getValueFormInputField(),this.addproperty_input_value_wrap=this.theme.getFirstColumnWrapper(),this.addproperty_input_value_wrap.appendChild(this.addproperty_input_value),this.addproperty_input_key=this.theme.getKeyFormInputField(),this.addproperty_input_wrap=this.theme.getSecondColumnWrapper(),this.addproperty_input_wrap.appendChild(this.addproperty_input_key);var d=function(b){if(b.preventDefault(),b.stopPropagation(),a.addproperty_input_key.value){if(a.editors[a.addproperty_input_key.value])return void a.theme.addError(a.addproperty_holder);a.theme.removeError(a.addproperty_holder);var c=a.addObjectProperty(a.addproperty_input_key.value);c&&c.setValue(a.addproperty_input_value.value),a.addproperty_input_key.value="",a.addproperty_input_value.value="",a.onChange(!0)}};if(this.addproperty_add.addEventListener("click",d),this.addproperty_input_key.addEventListener("keyup",function(b){a.theme.removeError(a.addproperty_holder),13===b.keyCode&&d(b)}),this.addproperty_input_value.addEventListener("keyup",function(b){a.theme.removeError(a.addproperty_holder),13===b.keyCode&&d(b)}),b){this.theme.addBorder(this.container),this.addproperty_holder.appendChild(this.addproperty_input_wrap),this.addproperty_holder.appendChild(this.addproperty_input_value_wrap),this.addproperty_holder.appendChild(this.addproperty_add);var f=document.createElement("div");f.style.clear="both",this.addproperty_holder.appendChild(f)}this.error_holder=document.createElement("div"),this.container.appendChild(this.error_holder),this.editor_holder=this.theme.getIndentedPanel(),this.editor_holder.style.paddingBottom="0",this.container.appendChild(this.editor_holder),this.row_container=this.theme.getGridContainer(),this.editor_holder.appendChild(this.row_container),e(this.editors,function(b,c){var d=a.theme.getGridColumn();a.row_container.appendChild(d),c.addDeleteButton=!0,c.setContainer(d),c.build(),c.postBuild()}),this.title_controls=this.theme.getHeaderButtonHolder(),this.editjson_controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.title_controls),this.title.appendChild(this.editjson_controls),this.addproperty_controls=this.theme.getGridRow(),b&&this.container.appendChild(this.addproperty_controls),this.showAddProperty(),this.addproperty_controls.appendChild(this.addproperty_holder),this.refreshAddProperties()}this.options.table_row?(this.editor_holder=this.container,e(this.property_order,function(b,c){a.editor_holder.appendChild(a.editors[c].container)})):(this.layoutEditors(),this.layoutEditors())},showEditJSON:function(){this.editjson_holder&&(this.hideAddProperty(),this.editjson_textarea.value=JSON.stringify(this.getValue(),null,2),this.disable(),this.editjson_holder.style.display="",this.editing_json=!0)},hideEditJSON:function(){this.editjson_holder&&this.editing_json&&(this.editjson_holder.style.display="none",this.enable(),this.editing_json=!1)},saveJSON:function(){if(this.editjson_holder)try{var a=JSON.parse(this.editjson_textarea.value);this.setValue(a),this.hideEditJSON()}catch(b){throw window.alert("invalid JSON"),b}},toggleEditJSON:function(){this.editing_json?this.hideEditJSON():this.showEditJSON()},insertPropertyControlUsingPropertyOrder:function(a,b,c){var d;this.schema.properties[a]&&(d=this.schema.properties[a].propertyOrder),"number"!=typeof d&&(d=1e3),b.propertyOrder=d;for(var e=0;e<c.childNodes.length;e++){var f=c.childNodes[e];if(b.propertyOrder<f.propertyOrder){this.addproperty_list.insertBefore(b,f),b=null;break}}b&&this.addproperty_list.appendChild(b)},addPropertyCheckbox:function(a){var b,c,d,e,f=this;return b=f.theme.getCheckbox(),b.style.width="auto",d=this.schema.properties[a]&&this.schema.properties[a].title?this.schema.properties[a].title:a,c=f.theme.getCheckboxLabel(d),e=f.theme.getFormControl(c,b),e.style.paddingBottom=e.style.marginBottom=e.style.paddingTop=e.style.marginTop=0,e.style.height="auto",this.insertPropertyControlUsingPropertyOrder(a,e,this.addproperty_list),b.checked=a in this.editors,b.addEventListener("change",function(){b.checked?f.addObjectProperty(a):f.removeObjectProperty(a),f.onChange(!0)}),f.addproperty_checkboxes[a]=b,b},showAddProperty:function(){this.addproperty_holder&&(this.addproperty_holder.style.display="",this.refreshAddProperties())},hideAddProperty:function(){this.addproperty_holder&&this.adding_property&&(this.addproperty_holder.style.display="none")},removeObjectProperty:function(a){this.editors[a]&&(this.editors[a].unregister(),delete this.editors[a],this.refreshValue(),this.layoutEditors(),this.onChange(!0))},addObjectProperty:function(a,b){var c=this;if(!this.editors[a]){if(this.cached_editors[a]){if(this.editors[a]=this.cached_editors[a],b)return;this.editors[a].register()}else{if(!(this.canHaveAdditionalProperties()||this.schema.properties&&this.schema.properties[a]))return;var d=c.getPropertySchema(a),e=c.jsoneditor.getEditorClass(d);if(c.editors[a]=c.jsoneditor.createEditor(e,{jsoneditor:c.jsoneditor,schema:d,path:c.path+"."+a,parent:c,key:a}),c.editors[a].preBuild(),!b){var f=c.theme.getChildEditorHolder();if(c.editor_holder.appendChild(f),c.addDeleteButton){var g=c.getInlineButton("","delete","delete");g.addEventListener("click",function(b){b.preventDefault(),b.stopPropagation(),c.removeObjectProperty(a)}),c.editors[a].addButton(g)}c.editors[a].setContainer(f),c.editors[a].build(),c.editors[a].postBuild()}c.cached_editors[a]=c.editors[a]}return b||(c.refreshValue(),c.layoutEditors()),c.editors[a]}},onChildEditorChange:function(a){this.refreshValue(),this._super(a)},canHaveAdditionalProperties:function(){return"boolean"==typeof this.schema.additionalProperties?this.schema.additionalProperties:!this.jsoneditor.options.no_additional_properties},destroy:function(){e(this.cached_editors,function(a,b){b.destroy()}),this.editor_holder&&(this.editor_holder.innerHTML=""),this.title&&this.title.parentNode&&this.title.parentNode.removeChild(this.title),this.error_holder&&this.error_holder.parentNode&&this.error_holder.parentNode.removeChild(this.error_holder),this.editors=null,this.cached_editors=null,this.editor_holder&&this.editor_holder.parentNode&&this.editor_holder.parentNode.removeChild(this.editor_holder),this.editor_holder=null,this._super()},getValue:function(){var a=this._super();if(this.jsoneditor.options.remove_empty_properties||this.options.remove_empty_properties)for(var b in a)a.hasOwnProperty(b)&&(a[b]||delete a[b]);return a},refreshValue:function(){this.value={};for(var a in this.editors)this.editors.hasOwnProperty(a)&&(this.value[a]=this.editors[a].getValue());this.adding_property&&this.refreshAddProperties()},refreshAddProperties:function(){if(!(this.options.disable_properties||this.options.disable_properties!==!1&&this.jsoneditor.options.disable_properties)){var a,b=!1,c=!1,d=0,e=!1;for(a in this.editors)this.editors.hasOwnProperty(a)&&d++;b=this.canHaveAdditionalProperties()&&!("undefined"!=typeof this.schema.maxProperties&&d>=this.schema.maxProperties),this.addproperty_checkboxes&&(this.addproperty_list.innerHTML=""),this.addproperty_checkboxes={};for(a in this.cached_editors)this.cached_editors.hasOwnProperty(a)&&(this.addPropertyCheckbox(a),this.isRequired(this.cached_editors[a])&&a in this.editors&&(this.addproperty_checkboxes[a].disabled=!0),"undefined"!=typeof this.schema.minProperties&&d<=this.schema.minProperties?(this.addproperty_checkboxes[a].disabled=this.addproperty_checkboxes[a].checked,this.addproperty_checkboxes[a].checked||(e=!0)):a in this.editors?(e=!0,c=!0):b||this.schema.properties.hasOwnProperty(a)?(this.addproperty_checkboxes[a].disabled=!1,e=!0):this.addproperty_checkboxes[a].disabled=!0);this.canHaveAdditionalProperties()&&(e=!0);for(a in this.schema.properties)this.schema.properties.hasOwnProperty(a)&&(this.cached_editors[a]||(e=!0,this.addPropertyCheckbox(a)));e?this.canHaveAdditionalProperties()?b?this.addproperty_add.disabled=!1:this.addproperty_add.disabled=!0:(this.addproperty_add.style.display="none",this.addproperty_input_key.style.display="none"):(this.hideAddProperty(),this.addproperty_controls.style.display="none")}},isRequired:function(a){return"boolean"==typeof a.schema.required?a.schema.required:Array.isArray(this.schema.required)?this.schema.required.indexOf(a.key)>-1:this.jsoneditor.options.required_by_default?!0:!1},setValue:function(a,b){var c=this;a=a||{},("object"!=typeof a||Array.isArray(a))&&(a={}),e(this.cached_editors,function(d,e){"undefined"!=typeof a[d]?(c.addObjectProperty(d),e.setValue(a[d],b)):b||c.isRequired(e)?e.setValue(e.getDefault(),b):c.removeObjectProperty(d)});var d=this.schema.hasOwnProperty("patternProperties");if(d)for(var f in a)a.hasOwnProperty(f)&&(c.cached_editors[f]||(c.addObjectProperty(f),c.editors[f].setValue(a[f],b)));else e(a,function(a,d){c.cached_editors[a]||(c.addObjectProperty(a),c.editors[a]&&(c.editors[a].options.hidden=!0,c.editors[a].setValue(d,b)))});this.refreshValue(),this.layoutEditors(),this.onChange()},showValidationErrors:function(a){var b=this,c=[],d=[];if(e(a,function(a,e){e.path===b.path?c.push(e):d.push(e)}),this.error_holder)if(c.length){this.error_holder.innerHTML="",this.error_holder.style.display="",e(c,function(a,c){b.error_holder.appendChild(b.theme.getErrorMessage(c.message))})}else this.error_holder.style.display="none";this.options.table_row&&(c.length?this.theme.addTableRowError(this.container):this.theme.removeTableRowError(this.container)),e(this.editors,function(a,b){b.showValidationErrors(d)})}}),g.defaults.editors.array=g.AbstractEditor.extend({getDefault:function(){return this.schema["default"]||[]},register:function(){if(this._super(),this.rows)for(var a=0;a<this.rows.length;a++)this.rows[a].register()},unregister:function(){if(this._super(),this.rows)for(var a=0;a<this.rows.length;a++)this.rows[a].unregister()},getNumColumns:function(){var a=this.getItemInfo(0);return this.tabs_holder?Math.max(Math.min(12,a.width+2),4):a.width},enable:function(){if(this.add_row_button&&(this.add_row_button.disabled=!1),this.remove_all_rows_button&&(this.remove_all_rows_button.disabled=!1),this.delete_last_row_button&&(this.delete_last_row_button.disabled=!1),this.rows)for(var a=0;a<this.rows.length;a++)this.rows[a].enable(),this.rows[
[all...]
/forgerock/authenticator-ios-v2/unit-tests/
H A DFRAAccountsTableViewControllerTests.m95 NSInteger rows = [accountsController tableView:accountsController.tableView numberOfRowsInSection:0];
99 XCTAssertEqual(rows, 0);
112 NSInteger rows = [accountsController tableView:accountsController.tableView numberOfRowsInSection:0];
116 XCTAssertEqual(rows, 3);
/forgerock/opendj-b2.6/src/server/org/opends/server/util/cli/
H A DMenuBuilder.java737 int rows = sz;
745 rows /= 2;
746 rows += sz % 2;
749 for (int i = 0, j = rows; i < rows; i++, j++) {
/forgerock/opendj2/src/server/org/opends/server/util/cli/
H A DMenuBuilder.java736 int rows = sz;
744 rows /= 2;
745 rows += sz % 2;
748 for (int i = 0, j = rows; i < rows; i++, j++) {
/forgerock/opendj2.6.2/src/server/org/opends/server/util/cli/
H A DMenuBuilder.java737 int rows = sz;
745 rows /= 2;
746 rows += sz % 2;
749 for (int i = 0, j = rows; i < rows; i++, j++) {
/forgerock/opendj2-jel-hg/src/server/org/opends/server/util/cli/
H A DMenuBuilder.java737 int rows = sz;
745 rows /= 2;
746 rows += sz % 2;
749 for (int i = 0, j = rows; i < rows; i++, j++) {
/forgerock/opendj2-hg/src/server/org/opends/server/util/cli/
H A DMenuBuilder.java736 int rows = sz;
744 rows /= 2;
745 rows += sz % 2;
748 for (int i = 0, j = rows; i < rows; i++, j++) {
/forgerock/openidm-v4/openidm-ui/openidm-ui-admin/src/main/js/org/forgerock/openidm/ui/admin/mapping/association/
H A DDataAssociationManagementView.js140 checkNewLinks: function(rows) {
144 _.chain(rows)
164 return rows;
310 key = "rows";
349 return _this.checkNewLinks(resp.result[0].rows);
/forgerock/opendj-b2.6/src/guitools/org/opends/guitools/controlpanel/util/
H A DUtilities.java655 * @param rows the rows of the text area.
659 public static JTextArea createTextAreaWithBorder(Message text, int rows, argument
662 JTextArea ta = createTextArea(text, rows, cols);
673 * @param rows the rows of the text area.
677 public static JTextArea createNonEditableTextArea(Message text, int rows, argument
680 JTextArea ta = createTextArea(text, rows, cols);
690 * @param rows the rows o
694 createTextArea(Message text, int rows, int cols) argument
843 updateTableSizes(JTable table, int rows) argument
[all...]
/forgerock/opendj2/src/guitools/org/opends/guitools/controlpanel/util/
H A DUtilities.java654 * @param rows the rows of the text area.
658 public static JTextArea createTextAreaWithBorder(Message text, int rows, argument
661 JTextArea ta = createTextArea(text, rows, cols);
672 * @param rows the rows of the text area.
676 public static JTextArea createNonEditableTextArea(Message text, int rows, argument
679 JTextArea ta = createTextArea(text, rows, cols);
689 * @param rows the rows o
693 createTextArea(Message text, int rows, int cols) argument
842 updateTableSizes(JTable table, int rows) argument
[all...]
/forgerock/opendj2.6.2/src/guitools/org/opends/guitools/controlpanel/util/
H A DUtilities.java655 * @param rows the rows of the text area.
659 public static JTextArea createTextAreaWithBorder(Message text, int rows, argument
662 JTextArea ta = createTextArea(text, rows, cols);
673 * @param rows the rows of the text area.
677 public static JTextArea createNonEditableTextArea(Message text, int rows, argument
680 JTextArea ta = createTextArea(text, rows, cols);
690 * @param rows the rows o
694 createTextArea(Message text, int rows, int cols) argument
843 updateTableSizes(JTable table, int rows) argument
[all...]
/forgerock/opendj2-hg/src/guitools/org/opends/guitools/controlpanel/util/
H A DUtilities.java654 * @param rows the rows of the text area.
658 public static JTextArea createTextAreaWithBorder(Message text, int rows, argument
661 JTextArea ta = createTextArea(text, rows, cols);
672 * @param rows the rows of the text area.
676 public static JTextArea createNonEditableTextArea(Message text, int rows, argument
679 JTextArea ta = createTextArea(text, rows, cols);
689 * @param rows the rows o
693 createTextArea(Message text, int rows, int cols) argument
842 updateTableSizes(JTable table, int rows) argument
[all...]
/forgerock/opendj2-jel-hg/src/guitools/org/opends/guitools/controlpanel/util/
H A DUtilities.java668 * @param rows the rows of the text area.
672 public static JTextArea createTextAreaWithBorder(Message text, int rows, argument
675 JTextArea ta = createTextArea(text, rows, cols);
686 * @param rows the rows of the text area.
690 public static JTextArea createNonEditableTextArea(Message text, int rows, argument
693 JTextArea ta = createTextArea(text, rows, cols);
703 * @param rows the rows o
707 createTextArea(Message text, int rows, int cols) argument
856 updateTableSizes(JTable table, int rows) argument
[all...]
/forgerock/openidm-v4/openidm-zip/src/main/resources/bin/defaults/script/ui/
H A DreconResults.js132 "rows": [],
153 "rows": [],
205 "rows": result,
218 request.additionalParameters.rows,
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/
H A DUtilities.java639 * @param rows the rows of the text area.
643 public static JTextArea createTextAreaWithBorder(LocalizableMessage text, int rows, argument
646 JTextArea ta = createTextArea(text, rows, cols);
657 * @param rows the rows of the text area.
661 public static JTextArea createNonEditableTextArea(LocalizableMessage text, int rows, argument
664 JTextArea ta = createTextArea(text, rows, cols);
674 * @param rows the rows o
678 createTextArea(LocalizableMessage text, int rows, int cols) argument
826 updateTableSizes(JTable table, int rows) argument
[all...]
/forgerock/openam-v13/openam-server-only/src/main/webapp/assets/lib/yui/datatable/
H A Ddatatable-beta-debug.js234 * rowsPerPage:500, // 500 rows <br>
246 rowsPerPage:500, // 500 rows per page
251 rowsThisPage:0, // how many rows this page
1250 // Set FIRST/LAST on THEAD rows
1516 (index >= (this._elTbody.rows.length))) ? true : false;
1535 this._elTbody.insertBefore(document.createElement("tr"),this._elTbody.rows[index]);
1659 if(YAHOO.lang.isNumber(rowIndex) && (rowIndex > -2) && (rowIndex < this._elTbody.rows.length)) {
1748 * page. For performance, a subset of rows may be specified.
1753 * @param range {Number} (optional) If given, how many rows to stripe, otherwise
1754 * stripe all the rows unti
[all...]
H A Ddatatable-beta-min.js48 else{elTheadLabel.innerHTML=sLabel;}};YAHOO.widget.DataTable.prototype._initCellEditorEl=function(){var elCellEditor=document.createElement("div");elCellEditor.id=this.id+"-celleditor";elCellEditor.style.display="none";YAHOO.util.Dom.addClass(elCellEditor,YAHOO.widget.DataTable.CLASS_EDITOR);elCellEditor=document.body.appendChild(elCellEditor);var oCellEditor={};oCellEditor.container=elCellEditor;oCellEditor.value=null;oCellEditor.isActive=false;this._oCellEditor=oCellEditor;this.subscribe("editorKeydownEvent",function(oArgs){var e=oArgs.event;var elTarget=YAHOO.util.Event.getTarget(e);if((e.keyCode==27)){this.cancelCellEditor();}});};YAHOO.widget.DataTable.prototype._initColumnSort=function(){this.subscribe("headerCellClickEvent",this.onEventSortColumn);};YAHOO.widget.DataTable.prototype._initDomEvents=function(){var elTable=this._elTable;var elThead=this._elThead;var elTbody=this._elTbody;var elContainer=this._elContainer;YAHOO.util.Event.addListener(document,"click",this._onDocumentClick,this);YAHOO.util.Event.addListener(document,"keydown",this._onDocumentKeydown,this);YAHOO.util.Event.addListener(elTable,"focus",this._onTableFocus,this);YAHOO.util.Event.addListener(elTable,"mouseover",this._onTableMouseover,this);YAHOO.util.Event.addListener(elTable,"mouseout",this._onTableMouseout,this);YAHOO.util.Event.addListener(elTable,"mousedown",this._onTableMousedown,this);YAHOO.util.Event.addListener(elTable,"keydown",this._onTableKeydown,this);YAHOO.util.Event.addListener(elTable,"keypress",this._onTableKeypress,this);YAHOO.util.Event.addListener(elTable,"dblclick",this._onTableDblclick,this);YAHOO.util.Event.addListener(elThead,"click",this._onTheadClick,this);YAHOO.util.Event.addListener(elTbody,"click",this._onTbodyClick,this);YAHOO.util.Event.addListener(elContainer,"scroll",this._onScroll,this);YAHOO.util.Event.addListener(elTbody,"scroll",this._onScroll,this);};YAHOO.widget.DataTable.prototype._addTrEl=function(oRecord,index){this.hideTableMessage();var append=(!YAHOO.lang.isNumber(index)||(index<0)||(index>=(this._elTbody.rows.length)))?true:false;var oColumnSet=this._oColumnSet;var oRecordSet=this._oRecordSet;var isSortedBy=this.get("sortedBy");var sortedColKeyIndex=null;var sortedDir,newClass;if(isSortedBy){sortedColKeyIndex=(isSortedBy.column)?isSortedBy.column.getKeyIndex():this._oColumnSet.getColumn(isSortedBy.key).getKeyIndex();sortedDir=isSortedBy.dir;newClass=(sortedDir==="desc")?YAHOO.widget.DataTable.CLASS_DESC:YAHOO.widget.DataTable.CLASS_ASC;}
49 var elRow=(append)?this._elTbody.appendChild(document.createElement("tr")):this._elTbody.insertBefore(document.createElement("tr"),this._elTbody.rows[index]);elRow.id=this.id+"-bdrow"+this._nTrCount;this._nTrCount++;elRow.yuiRecordId=oRecord.getId();for(var j=0;j<oColumnSet.keys.length;j++){var oColumn=oColumnSet.keys[j];var elCell=elRow.appendChild(document.createElement("td"));elCell.id=elRow.id+"-cell"+j;elCell.yuiColumnId=oColumn.getId();elCell.headers=oColumnSet.headers[j];elCell.yuiCellIndex=j;this.formatCell(elCell,oRecord,oColumn);if(j===0){YAHOO.util.Dom.addClass(elCell,YAHOO.widget.DataTable.CLASS_FIRST);}
57 if(YAHOO.lang.isNumber(rowIndex)&&(rowIndex>-2)&&(rowIndex<this._elTbody.rows.length)){this._elTbody.deleteRow(rowIndex);return true;}
62 else{this._sLastTrId=null;}};YAHOO.widget.DataTable.prototype._setRowStripes=function(row,range){var allRows=this._elTbody.rows;var nStartIndex=0;var nEndIndex=allRows.length;if((row!==null)&&(row!==undefined)){var elStartRow=this.getTrEl(row);if(elStartRow){nStartIndex=elStartRow.sectionRowIndex;if(YAHOO.lang.isNumber(range)&&(range>1)){nEndIndex=nStartIndex+range;}}}
90 var sMode=oSelf.get("selectionMode");var allRows=oSelf._elTbody.rows;var anchorId=oSelf._sSelectionAnchorId;var anchorEl=YAHOO.util.Dom.get(anchorId);var newSelectedEl,trIndex,tdIndex,startIndex,endIndex,i,anchorPos;if(bSHIFT&&(sMode=="cellblock")){trIndex=lastSelectedEl.parentNode.sectionRowIndex;tdIndex=lastSelectedEl.yuiCellIndex;if(nKey==40){if(anchorEl.parentNode.sectionRowIndex>trIndex){anchorPos=1;}
189 else{}};YAHOO.widget.DataTable.prototype._onDropdownChange=function(e,oSelf){var elTarget=YAHOO.util.Event.getTarget(e);oSelf.fireEvent("dropdownChangeEvent",{event:e,target:elTarget});};YAHOO.widget.DataTable.prototype.toString=function(){return"DataTable "+this._sName;};YAHOO.widget.DataTable.prototype.getDataSource=function(){return this._oDataSource;};YAHOO.widget.DataTable.prototype.getColumnSet=function(){return this._oColumnSet;};YAHOO.widget.DataTable.prototype.getRecordSet=function(){return this._oRecordSet;};YAHOO.widget.DataTable.prototype.getCellEditor=function(){return this._oCellEditor;};YAHOO.widget.DataTable.prototype.getTableEl=function(){return this._elTable;};YAHOO.widget.DataTable.prototype.getTheadEl=function(){return this._elThead;};YAHOO.widget.DataTable.prototype.getTbodyEl=function(){return this._elTbody;};YAHOO.widget.DataTable.prototype.getBody=function(){return this.getTbodyEl();};YAHOO.widget.DataTable.prototype.getMsgTbodyEl=function(){return this._elMsgTbody;};YAHOO.widget.DataTable.prototype.getMsgTdEl=function(){return this._elMsgTd;};YAHOO.widget.DataTable.prototype.getTrEl=function(row){var allRows=this._elTbody.rows;if(row instanceof YAHOO.widget.Record){var nTrIndex=this.getTrIndex(row);return allRows[nTrIndex];}
194 return null;};YAHOO.widget.DataTable.prototype.getRow=function(index){return this.getTrEl(index);};YAHOO.widget.DataTable.prototype.getFirstTrEl=function(){return this._elTbody.rows[0]||null;};YAHOO.widget.DataTable.prototype.getLastTrEl=function(){var allRows=this._elTbody.rows;if(allRows.length>0){return allRows[allRows.length-1]||null;}};YAHOO.widget.DataTable.prototype.getTdEl=function(cell){var elCell;var el=YAHOO.util.Dom.get(cell);if(el&&(el.ownerDocument==document)){if(el.tagName.toLowerCase()!="td"){elCell=YAHOO.util.Dom.getAncestorByTagName(el,"td");}
209 var elTbody=this._elTbody;var elRows=elTbody.rows;if(YAHOO.lang.isArray(aRecords)&&(aRecords.length>0)){this.hideTableMessage();var aSelectedRows=this.getSelectedRows();var aSelectedCells=this.getSelectedCells();var bReselect=(aSelectedRows.length>0)||(aSelectedCells.length>0);while(elTbody.hasChildNodes()&&(elRows.length>aRecords.length)){elTbody.deleteRow(-1);}
213 var allRows=elTbody.rows;i
[all...]
H A Ddatatable-beta.js227 * rowsPerPage:500, // 500 rows <br>
239 rowsPerPage:500, // 500 rows per page
244 rowsThisPage:0, // how many rows this page
1232 // Set FIRST/LAST on THEAD rows
1496 (index >= (this._elTbody.rows.length))) ? true : false;
1515 this._elTbody.insertBefore(document.createElement("tr"),this._elTbody.rows[index]);
1639 if(YAHOO.lang.isNumber(rowIndex) && (rowIndex > -2) && (rowIndex < this._elTbody.rows.length)) {
1728 * page. For performance, a subset of rows may be specified.
1733 * @param range {Number} (optional) If given, how many rows to stripe, otherwise
1734 * stripe all the rows unti
[all...]

Completed in 101 milliseconds

123