META-INF.adf.jsLibs.TableProxy.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trinidad-impl Show documentation
Show all versions of trinidad-impl Show documentation
Private implementation of the Apache MyFaces Trinidad project
The newest version!
function _tableSort(
a0,
a1,
a2,
a3,
a4)
{
_submitPartialChange(a0,a1,
{event:'sort',
source:a2,
value:a3,
state:a4});
return false;
}
function CollectionComponent(
a0,
a1
)
{
this._formName=a0;
this._name=a1;
}
CollectionComponent.prototype.getFormName=function()
{
return this._formName;
};
CollectionComponent.prototype.getName=function()
{
return this._name;
};
CollectionComponent.prototype.getFormElement=function(a2)
{
var a3=document.forms[this.getFormName()];
var a4=this.getName()+":"+a2;
var a5=a3[a4];
return a5;
};
CollectionComponent.defineSubmit=function(a6,a7)
{
if(this._eventParam!=(void 0))
return;
CollectionComponent.prototype._eventParam=a6;
CollectionComponent.prototype._sourceParam=a7;
CollectionComponent.prototype._pTargetsParam="partialTargets";
CollectionComponent.prototype.addParam=function(paramName,paramValue){
if(this._params==(void 0))
{
this._params=new Object();
}
this._params[paramName]=paramValue;
}
CollectionComponent.prototype.submit=function(event,link){
this.addParam(this._eventParam,event);
this.addParam(this._sourceParam,this.getName());
var a8=this._params;
var a9=a8[this._pTargetsParam];
if(link!=(void 0))
{
var a10=link.id;
if(a10!=(void 0))
{
_setRequestedFocusNode(document,a10,false,window);
}
if(a9==(void 0))
{
a9=this.getName();
a8[this._pTargetsParam]=a9;
}
}
var a11=this._validate;
if(a11==(void 0))
a11=1;
var a12=submitForm;
if(a9!=(void 0))
{
a12=_submitPartialChange;
}
a12(this.getFormName(),a11,a8);
return false;
};
};
CollectionComponent.defineMultiSelect=function(a13,a14,a15)
{
if(this._selectedKey!=(void 0))
return;
CollectionComponent.prototype._selectedKey=a13;
CollectionComponent.prototype._selectedModeKey=a14;
CollectionComponent.prototype.getLength=function(){
var a16=this._getBoxes();
return a16.length;
};
CollectionComponent.prototype.multiSelect=function(selectAll){
var a16=this._getBoxes();
for(var a17=0;a17