Modified: openmeetings/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/participants/participantListItem.lzx URL: http://svn.apache.org/viewvc/openmeetings/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/participants/participantListItem.lzx?rev=1717911&r1=1717910&r2=1717911&view=diff ============================================================================== --- openmeetings/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/participants/participantListItem.lzx (original) +++ openmeetings/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/participants/participantListItem.lzx Fri Dec 4 08:44:20 2015 @@ -8,8 +8,8 @@ "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 - + 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 @@ -19,366 +19,367 @@ --> <library> - + <!-- - The Width of each item is set in the participantList-Class + The Width of each item is set in the participantList-Class --> -<class name="participantListItem" extends="view" bgcolor="0xDADADA" height="40" - showhandcursor="false"> - - <attribute name="connectedSince" value="" type="string" /> - <attribute name="isMod" value="" type="string" /> - <attribute name="streamid" value="" type="string" /> - <attribute name="username" value="" type="string" /> - <attribute name="userroom" value="" type="string" /> - <attribute name="formatedDate" value="" type="string" /> - <attribute name="firstname" value="" type="string" /> - <attribute name="lastname" value="" type="string" /> - <attribute name="userId" value="0" type="number" /> - <attribute name="isSuperModerator" value="false" type="boolean"/> - <attribute name="refObj" value="null" /> - - <handler name="oninit"> - <![CDATA[ - //this._userpic.setAttribute('src',downloadurl); - //This is a workaround cause in LPS-4.2.x immediatelly loading does not work - lz.Timer.addTimer( new LzDelegate( this, "fadeText" ), 1000 ); - - if (canvas.publicSID == this.refObj.publicSID) { - this._firstName.setAttribute("fontstyle","bold"); - this._lastName.setAttribute("fontstyle","bold"); - } - - this.updateIcons(); - ]]> - </handler> - - <method name="update" args="obj"> - setAttribute('firstname', obj.firstname); - setAttribute('lastname', obj.lastname); - refObj = obj; - </method> - - <method name="fadeText" args="ignore=null"> - <![CDATA[ - if ($debug) Debug.write("fadeText :1: ",this.refObj); - if ($debug) Debug.write("fadeText :2: ",this.refObj.picture_uri); - this._userpic.setAttribute('src', canvas.getPictureUrl(this.refObj.picture_uri, '&moduleName=chat&remoteUserid='+this.userId)); - ]]> - </method> - - <handler name="onismoderator" reference="canvas" args="m"> - if ($debug) Debug.write("###### ismoderator ",m); - <![CDATA[ - this.isMod = canvas.getIsModeratorByPublicSID(this.refObj.publicSID); - this.updateIcons(); - ]]> - </handler> - - <handler name="ondrawAllowStatus" reference="canvas" args="drawObject"> - <![CDATA[ - if (this.refObj.publicSID == drawObject.publicSID) { - this.refObj.canDraw = drawObject.canDraw; - this.refObj.canShare = drawObject.canShare; - this.refObj.canRemote = drawObject.canRemote; - this.updateIcons(); - } - ]]> - </handler> +<class name="participantListItem" extends="view" bgcolor="0xDADADA" height="40" showhandcursor="false"> + + <attribute name="connectedSince" value="" type="string" /> + <attribute name="isMod" value="" type="string" /> + <attribute name="streamid" value="" type="string" /> + <attribute name="username" value="" type="string" /> + <attribute name="userroom" value="" type="string" /> + <attribute name="formatedDate" value="" type="string" /> + <attribute name="firstname" value="" type="string" /> + <attribute name="lastname" value="" type="string" /> + <attribute name="userId" value="0" type="number" /> + <attribute name="isSuperModerator" value="false" type="boolean"/> + <attribute name="refObj" value="null" /> + + <handler name="oninit"> + <![CDATA[ + //this._userpic.setAttribute('src',downloadurl); + //This is a workaround cause in LPS-4.2.x immediatelly loading does not work + lz.Timer.addTimer(new LzDelegate(this, "fadeText"), 1000); + + if (canvas.publicSID == this.refObj.publicSID) { + this._firstName.setAttribute("fontstyle","bold"); + this._lastName.setAttribute("fontstyle","bold"); + } + + this.updateIcons(); + ]]> + </handler> + + <method name="update" args="obj, full=true"> + setAttribute('firstname', obj.firstname); + setAttribute('lastname', obj.lastname); + refObj = obj; + this.isMod = refObj.isMod; + this.updateIcons(); + </method> + + <method name="fadeText" args="ignore=null"> + <![CDATA[ + if ($debug) Debug.write("fadeText :1: ",this.refObj); + if ($debug) Debug.write("fadeText :2: ",this.refObj.picture_uri); + this._userpic.setAttribute('src', canvas.getPictureUrl(this.refObj.picture_uri, '&moduleName=chat&remoteUserid='+this.userId)); + ]]> + </method> + + <handler name="onismoderator" reference="canvas" args="m"> + <![CDATA[ + if ($debug) Debug.write("###### ismoderator ",m); + this.isMod = canvas.getIsModeratorByPublicSID(this.refObj.publicSID); + this.updateIcons(); + ]]> + </handler> + + <handler name="ondrawAllowStatus" reference="canvas" args="drawObject"> + <![CDATA[ + if (this.refObj.publicSID == drawObject.publicSID) { + this.refObj.canDraw = drawObject.canDraw; + this.refObj.canShare = drawObject.canShare; + this.refObj.canRemote = drawObject.canRemote; + this.updateIcons(); + } + ]]> + </handler> - <handler name="onexclusiveAudioAllowStatus" reference="canvas" args="rclObject"> - <![CDATA[ - if (this.refObj.publicSID == rclObject.publicSID) { - this.refObj.canGiveAudio = rclObject.canGiveAudio; - this.updateIcons(); - } - ]]> - </handler> - - <handler name="onmicMutedStatusChangedItem" reference="canvas" args="roomClientObj"> - <![CDATA[ - if ($debug) Debug.write("onmicMutedStatusChangedItem :1: ",roomClientObj.publicSID); - if (this.refObj.publicSID == roomClientObj.publicSID) { - if ($debug) Debug.write("onmicMutedStatusChangedItem :2: ",roomClientObj.micMuted); - this.refObj.micMuted = roomClientObj.micMuted; - this.updateIcons(); - } - ]]> - </handler> + <handler name="onexclusiveAudioAllowStatus" reference="canvas" args="rclObject"> + <![CDATA[ + if (this.refObj.publicSID == rclObject.publicSID) { + this.refObj.canGiveAudio = rclObject.canGiveAudio; + this.updateIcons(); + } + ]]> + </handler> + + <handler name="onmicMutedStatusChangedItem" reference="canvas" args="roomClientObj"> + <![CDATA[ + if ($debug) Debug.write("onmicMutedStatusChangedItem :1: ",roomClientObj.publicSID); + if (this.refObj.publicSID == roomClientObj.publicSID) { + if ($debug) Debug.write("onmicMutedStatusChangedItem :2: ",roomClientObj.micMuted); + this.refObj.micMuted = roomClientObj.micMuted; + this.updateIcons(); + } + ]]> + </handler> - <handler name="onMute" reference="canvas.thishib.switchMicMuted" args="event"> - <![CDATA[ - if ($debug) Debug.write("onMute ", event.publicSID, event.mute); - if(this.refObj.publicSID == event.publicSID) { - this.refObj.micMuted = event.mute; - this.updateIcons(); - } - ]]> - </handler> - - <!-- - Set actions to update the User-Rights and Information what he can do - --> - <method name="updateIcons"> - <![CDATA[ - - if ($debug) Debug.write("updateByMod,",this.isMod,canvas.streamid); - - //If this is one Mod he can also draw on the Whitboard - if (this.isMod) { - - - this._miniIcons._isMod.setAttribute("visibility","visible"); - this._miniIcons._isModAddbutton.setAttribute("visibility","hidden"); - this._miniIcons._canDraw.setAttribute("visibility","visible"); - //the moderator can never remove the right to draw on the whiteboard for himself - this._miniIcons._canDraw.setAttribute("showhandcursor",false); - this._miniIcons._canDraw._text.setAttribute("text",""); - this._miniIcons._canDrawModerator.setAttribute("visibility","hidden"); - - this._miniIcons._allowShare.setAttribute("visibility","visible"); - this._miniIcons._allowShare.setAttribute("showhandcursor",false); - this._miniIcons._allowShare._text.setAttribute("text",""); - this._miniIcons._denyShare.setAttribute("visibility","hidden"); - - this._miniIcons._allowRemote.setAttribute("visibility","visible"); - this._miniIcons._allowRemote.setAttribute("showhandcursor",false); - this._miniIcons._allowRemote._text.setAttribute("text",""); - this._miniIcons._denyRemote.setAttribute("visibility","hidden"); + <handler name="onMute" reference="canvas.thishib.switchMicMuted" args="event"> + <![CDATA[ + if ($debug) Debug.write("onMute ", event.publicSID, event.mute); + if(this.refObj.publicSID == event.publicSID) { + this.refObj.micMuted = event.mute; + this.updateIcons(); + } + ]]> + </handler> + + <!-- + Set actions to update the User-Rights and Information what he can do + --> + <method name="updateIcons"> + <![CDATA[ + + if ($debug) Debug.write("updateByMod,",this.isMod,canvas.streamid); + + //If this is one Mod he can also draw on the Whitboard + if (this.isMod) { + + + this._miniIcons._isMod.setAttribute("visibility","visible"); + this._miniIcons._isModAddbutton.setAttribute("visibility","hidden"); + this._miniIcons._canDraw.setAttribute("visibility","visible"); + //the moderator can never remove the right to draw on the whiteboard for himself + this._miniIcons._canDraw.setAttribute("showhandcursor",false); + this._miniIcons._canDraw._text.setAttribute("text",""); + this._miniIcons._canDrawModerator.setAttribute("visibility","hidden"); + + this._miniIcons._allowShare.setAttribute("visibility","visible"); + this._miniIcons._allowShare.setAttribute("showhandcursor",false); + this._miniIcons._allowShare._text.setAttribute("text",""); + this._miniIcons._denyShare.setAttribute("visibility","hidden"); + + this._miniIcons._allowRemote.setAttribute("visibility","visible"); + this._miniIcons._allowRemote.setAttribute("showhandcursor",false); + this._miniIcons._allowRemote._text.setAttribute("text",""); + this._miniIcons._denyRemote.setAttribute("visibility","hidden"); - this._miniIcons._allowExclusiveAudio.setAttribute("visibility","visible"); - this._miniIcons._allowExclusiveAudio.setAttribute("showhandcursor",false); - this._miniIcons._allowExclusiveAudio._text.setAttribute("text",""); - this._miniIcons._denyExclusiveAudio.setAttribute("visibility","hidden"); - - if (canvas.ismoderator) { - this._x._kickUser.setAttribute("visibility","visible"); - if (canvas.ismoderator && canvas.publicSID != this.refObj.publicSID) { - this._miniIcons._isMod.setAttribute("showhandcursor",true); - this._miniIcons._isMod._text.setAttribute("text",canvas.getLabelName(675)); - } else { - this._miniIcons._isMod._text.setAttribute("text",""); - this._miniIcons._isMod.setAttribute("showhandcursor",false); - } - } else { - this._x._kickUser.setAttribute("visibility","hidden"); - this._miniIcons._isMod._text.setAttribute("text",""); - this._miniIcons._isMod.setAttribute("showhandcursor",false); - } - - } else { - this._miniIcons._isMod.setAttribute("visibility","hidden"); - - //if this User is the Moderator he can grant access to whiteboard to anybody - if (canvas.ismoderator) { - this._x._kickUser.setAttribute("visibility","visible"); - this._miniIcons._isModAddbutton.setAttribute("visibility","visible"); - - - this._miniIcons._canDraw._text.setAttribute("text",canvas.getLabelName(612)); - if (this.refObj.canDraw) { - //Only in THIS case you can remove the Draw-to-whiteboard right - this._miniIcons._canDraw.setAttribute("visibility","visible"); - this._miniIcons._canDraw.setAttribute("showhandcursor",true); - this._miniIcons._canDrawModerator.setAttribute("visibility","hidden"); - } else { - this._miniIcons._canDraw.setAttribute("visibility","hidden"); - this._miniIcons._canDraw.setAttribute("showhandcursor",false); - this._miniIcons._canDraw._text.setAttribute("text",""); - this._miniIcons._canDrawModerator.setAttribute("visibility","visible"); - } - - this._miniIcons._allowShare._text.setAttribute("text",canvas.getLabelName(1068)); - if (this.refObj.canShare) { - this._miniIcons._allowShare.setAttribute("visibility","visible"); - this._miniIcons._allowShare.setAttribute("showhandcursor",true); - this._miniIcons._denyShare.setAttribute("visibility","hidden"); - } else { - this._miniIcons._allowShare.setAttribute("visibility","hidden"); - this._miniIcons._allowShare.setAttribute("showhandcursor",false); - this._miniIcons._denyShare.setAttribute("visibility","visible"); - } - - this._miniIcons._allowRemote._text.setAttribute("text",canvas.getLabelName(1079)); - if (this.refObj.canRemote) { - this._miniIcons._allowRemote.setAttribute("visibility","visible"); - this._miniIcons._allowRemote.setAttribute("showhandcursor",true); - this._miniIcons._denyRemote.setAttribute("visibility","hidden"); - } else { - this._miniIcons._allowRemote.setAttribute("visibility","hidden"); - this._miniIcons._allowRemote.setAttribute("showhandcursor",false); - this._miniIcons._denyRemote.setAttribute("visibility","visible"); - } + this._miniIcons._allowExclusiveAudio.setAttribute("visibility","visible"); + this._miniIcons._allowExclusiveAudio.setAttribute("showhandcursor",false); + this._miniIcons._allowExclusiveAudio._text.setAttribute("text",""); + this._miniIcons._denyExclusiveAudio.setAttribute("visibility","hidden"); + + if (canvas.ismoderator) { + this._x._kickUser.setAttribute("visibility","visible"); + if (canvas.ismoderator && canvas.publicSID != this.refObj.publicSID) { + this._miniIcons._isMod.setAttribute("showhandcursor",true); + this._miniIcons._isMod._text.setAttribute("text",canvas.getLabelName(675)); + } else { + this._miniIcons._isMod._text.setAttribute("text",""); + this._miniIcons._isMod.setAttribute("showhandcursor",false); + } + } else { + this._x._kickUser.setAttribute("visibility","hidden"); + this._miniIcons._isMod._text.setAttribute("text",""); + this._miniIcons._isMod.setAttribute("showhandcursor",false); + } + + } else { + this._miniIcons._isMod.setAttribute("visibility","hidden"); + + //if this User is the Moderator he can grant access to whiteboard to anybody + if (canvas.ismoderator) { + this._x._kickUser.setAttribute("visibility","visible"); + this._miniIcons._isModAddbutton.setAttribute("visibility","visible"); + + + this._miniIcons._canDraw._text.setAttribute("text",canvas.getLabelName(612)); + if (this.refObj.canDraw) { + //Only in THIS case you can remove the Draw-to-whiteboard right + this._miniIcons._canDraw.setAttribute("visibility","visible"); + this._miniIcons._canDraw.setAttribute("showhandcursor",true); + this._miniIcons._canDrawModerator.setAttribute("visibility","hidden"); + } else { + this._miniIcons._canDraw.setAttribute("visibility","hidden"); + this._miniIcons._canDraw.setAttribute("showhandcursor",false); + this._miniIcons._canDraw._text.setAttribute("text",""); + this._miniIcons._canDrawModerator.setAttribute("visibility","visible"); + } + + this._miniIcons._allowShare._text.setAttribute("text",canvas.getLabelName(1068)); + if (this.refObj.canShare) { + this._miniIcons._allowShare.setAttribute("visibility","visible"); + this._miniIcons._allowShare.setAttribute("showhandcursor",true); + this._miniIcons._denyShare.setAttribute("visibility","hidden"); + } else { + this._miniIcons._allowShare.setAttribute("visibility","hidden"); + this._miniIcons._allowShare.setAttribute("showhandcursor",false); + this._miniIcons._denyShare.setAttribute("visibility","visible"); + } + + this._miniIcons._allowRemote._text.setAttribute("text",canvas.getLabelName(1079)); + if (this.refObj.canRemote) { + this._miniIcons._allowRemote.setAttribute("visibility","visible"); + this._miniIcons._allowRemote.setAttribute("showhandcursor",true); + this._miniIcons._denyRemote.setAttribute("visibility","hidden"); + } else { + this._miniIcons._allowRemote.setAttribute("visibility","hidden"); + this._miniIcons._allowRemote.setAttribute("showhandcursor",false); + this._miniIcons._denyRemote.setAttribute("visibility","visible"); + } this._miniIcons._allowExclusiveAudio._text.setAttribute("text",canvas.getLabelName(1425)); - if (this.refObj.canGiveAudio) { - this._miniIcons._allowExclusiveAudio.setAttribute("visibility","visible"); - this._miniIcons._allowExclusiveAudio.setAttribute("showhandcursor",true); - this._miniIcons._denyExclusiveAudio.setAttribute("visibility","hidden"); - } else { - this._miniIcons._allowExclusiveAudio.setAttribute("visibility","hidden"); - this._miniIcons._allowExclusiveAudio.setAttribute("showhandcursor",false); - this._miniIcons._denyExclusiveAudio.setAttribute("visibility","visible"); - } - - } else { - this._x._kickUser.setAttribute("visibility","hidden"); - this._miniIcons._isModAddbutton.setAttribute("visibility","hidden"); - - if (this.refObj.canDraw) { - this._miniIcons._canDraw.setAttribute("visibility","visible"); - } else { - this._miniIcons._canDraw.setAttribute("visibility","hidden"); - } - - if (this.refObj.canShare) { - this._miniIcons._allowShare.setAttribute("visibility","visible"); - } else { - this._miniIcons._allowShare.setAttribute("visibility","hidden"); - } - - if (this.refObj.canRemote) { - this._miniIcons._allowRemote.setAttribute("visibility","visible"); - } else { - this._miniIcons._allowRemote.setAttribute("visibility","hidden"); - } + if (this.refObj.canGiveAudio) { + this._miniIcons._allowExclusiveAudio.setAttribute("visibility","visible"); + this._miniIcons._allowExclusiveAudio.setAttribute("showhandcursor",true); + this._miniIcons._denyExclusiveAudio.setAttribute("visibility","hidden"); + } else { + this._miniIcons._allowExclusiveAudio.setAttribute("visibility","hidden"); + this._miniIcons._allowExclusiveAudio.setAttribute("showhandcursor",false); + this._miniIcons._denyExclusiveAudio.setAttribute("visibility","visible"); + } + + } else { + this._x._kickUser.setAttribute("visibility","hidden"); + this._miniIcons._isModAddbutton.setAttribute("visibility","hidden"); + + if (this.refObj.canDraw) { + this._miniIcons._canDraw.setAttribute("visibility","visible"); + } else { + this._miniIcons._canDraw.setAttribute("visibility","hidden"); + } + + if (this.refObj.canShare) { + this._miniIcons._allowShare.setAttribute("visibility","visible"); + } else { + this._miniIcons._allowShare.setAttribute("visibility","hidden"); + } + + if (this.refObj.canRemote) { + this._miniIcons._allowRemote.setAttribute("visibility","visible"); + } else { + this._miniIcons._allowRemote.setAttribute("visibility","hidden"); + } - if (this.refObj.canGiveAudio) { - this._miniIcons._allowExclusiveAudio.setAttribute("visibility","visible"); - } else { - this._miniIcons._allowExclusiveAudio.setAttribute("visibility","hidden"); - } - - //No Update action available - this._miniIcons._canDrawModerator.setAttribute("visibility","hidden"); - this._miniIcons._denyShare.setAttribute("visibility","hidden"); - this._miniIcons._denyRemote.setAttribute("visibility","hidden"); - this._miniIcons._denyExclusiveAudio.setAttribute("visibility","hidden"); - this._miniIcons._canDraw.setAttribute("showhandcursor",false); - this._miniIcons._canDraw._text.setAttribute("text",""); - this._miniIcons._allowRemote._text.setAttribute("text",""); - this._miniIcons._allowExclusiveAudio._text.setAttribute("text",""); - this._miniIcons._allowShare._text.setAttribute("text",""); - - } - - } - - if ($debug) Debug.write("onmicMutedStatusChangedItem :3: ",this.refObj.publicSID,this.refObj.micMuted); - - if (this.refObj.micMuted) { - this._x._mute._text.setAttribute("labelid",1408); - this._x._mute.setAttribute("frame",2); - } else { - this._x._mute._text.setAttribute("labelid",1407); - this._x._mute.setAttribute("frame",1); - } - - //this Icon is only available in case its the current User - if (canvas.publicSID == this.refObj.publicSID) { - //if ($debug) Debug.write("IS SELF !!!!!!"); - this._miniIcons._restartDevice.setAttribute("visibility","visible"); - } else { - this._miniIcons._restartDevice.setAttribute("visibility","hidden"); - } - ]]> - </method> - - <!-- - public Boolean setCanDraw(String SID, String publicSID, boolean canDraw) - --> - - <netRemoteCallHib name="setCanDraw" funcname="whiteboardservice.setCanDraw" - remotecontext="$once{ canvas.thishib }"> - <netparam><method name="getValue"> return canvas.sessionId;</method></netparam> - <netparam><method name="getValue">return parent.parent.refObj.publicSID;</method></netparam> - <netparam><method name="getValue">return !parent.parent.refObj.canDraw;</method></netparam> - <handler name="ondata" args="value"> - <![CDATA[ - //The onResult-Handler will be called be the rtmpconnection - //Debug.write("whiteboardservice.setCanDraw : ",value); - - ]]> - </handler> - </netRemoteCallHib> - - <netRemoteCallHib name="setCanShare" funcname="whiteboardservice.setCanShare" - remotecontext="$once{ canvas.thishib }"> - <netparam><method name="getValue"> return canvas.sessionId;</method></netparam> - <netparam><method name="getValue">return parent.parent.refObj.publicSID;</method></netparam> - <netparam><method name="getValue">return !parent.parent.refObj.canShare;</method></netparam> - <handler name="ondata" args="value"> - <![CDATA[ - //The onResult-Handler will be called be the rtmpconnection - //Debug.write("whiteboardservice.setCanShare : ",value); - - ]]> - </handler> - </netRemoteCallHib> - - <netRemoteCallHib name="setCanRemote" funcname="whiteboardservice.setCanRemote" - remotecontext="$once{ canvas.thishib }"> - <attribute name="publicSID" value="" type="string" /> - <attribute name="canRemote" value="true" type="boolean" /> - <netparam><method name="getValue">return canvas.sessionId;</method></netparam> - <netparam><method name="getValue">return parent.parent.refObj.publicSID;</method></netparam> - <netparam><method name="getValue">return !parent.parent.refObj.canRemote;</method></netparam> - <handler name="ondata" args="value"> - <![CDATA[ - //The onResult-Handler will be called be the rtmpconnection - if ($debug) Debug.write("whiteboardservice.setCanRemote : ",value); - ]]> - </handler> - </netRemoteCallHib> + if (this.refObj.canGiveAudio) { + this._miniIcons._allowExclusiveAudio.setAttribute("visibility","visible"); + } else { + this._miniIcons._allowExclusiveAudio.setAttribute("visibility","hidden"); + } + + //No Update action available + this._miniIcons._canDrawModerator.setAttribute("visibility","hidden"); + this._miniIcons._denyShare.setAttribute("visibility","hidden"); + this._miniIcons._denyRemote.setAttribute("visibility","hidden"); + this._miniIcons._denyExclusiveAudio.setAttribute("visibility","hidden"); + this._miniIcons._canDraw.setAttribute("showhandcursor",false); + this._miniIcons._canDraw._text.setAttribute("text",""); + this._miniIcons._allowRemote._text.setAttribute("text",""); + this._miniIcons._allowExclusiveAudio._text.setAttribute("text",""); + this._miniIcons._allowShare._text.setAttribute("text",""); + + } + + } + + if ($debug) Debug.write("onmicMutedStatusChangedItem :3: ",this.refObj.publicSID,this.refObj.micMuted); + + if (this.refObj.micMuted) { + this._x._mute._text.setAttribute("labelid",1408); + this._x._mute.setAttribute("frame",2); + } else { + this._x._mute._text.setAttribute("labelid",1407); + this._x._mute.setAttribute("frame",1); + } + + //this Icon is only available in case its the current User + if (canvas.publicSID == this.refObj.publicSID) { + //if ($debug) Debug.write("IS SELF !!!!!!"); + this._miniIcons._restartDevice.setAttribute("visibility","visible"); + } else { + this._miniIcons._restartDevice.setAttribute("visibility","hidden"); + } + ]]> + </method> + + <!-- + public Boolean setCanDraw(String SID, String publicSID, boolean canDraw) + --> + + <netRemoteCallHib name="setCanDraw" funcname="whiteboardservice.setCanDraw" + remotecontext="$once{ canvas.thishib }"> + <netparam><method name="getValue"> return canvas.sessionId;</method></netparam> + <netparam><method name="getValue">return parent.parent.refObj.publicSID;</method></netparam> + <netparam><method name="getValue">return !parent.parent.refObj.canDraw;</method></netparam> + <handler name="ondata" args="value"> + <![CDATA[ + //The onResult-Handler will be called be the rtmpconnection + //Debug.write("whiteboardservice.setCanDraw : ",value); + + ]]> + </handler> + </netRemoteCallHib> + + <netRemoteCallHib name="setCanShare" funcname="whiteboardservice.setCanShare" + remotecontext="$once{ canvas.thishib }"> + <netparam><method name="getValue"> return canvas.sessionId;</method></netparam> + <netparam><method name="getValue">return parent.parent.refObj.publicSID;</method></netparam> + <netparam><method name="getValue">return !parent.parent.refObj.canShare;</method></netparam> + <handler name="ondata" args="value"> + <![CDATA[ + //The onResult-Handler will be called be the rtmpconnection + //Debug.write("whiteboardservice.setCanShare : ",value); + + ]]> + </handler> + </netRemoteCallHib> + + <netRemoteCallHib name="setCanRemote" funcname="whiteboardservice.setCanRemote" + remotecontext="$once{ canvas.thishib }"> + <attribute name="publicSID" value="" type="string" /> + <attribute name="canRemote" value="true" type="boolean" /> + <netparam><method name="getValue">return canvas.sessionId;</method></netparam> + <netparam><method name="getValue">return parent.parent.refObj.publicSID;</method></netparam> + <netparam><method name="getValue">return !parent.parent.refObj.canRemote;</method></netparam> + <handler name="ondata" args="value"> + <![CDATA[ + //The onResult-Handler will be called be the rtmpconnection + if ($debug) Debug.write("whiteboardservice.setCanRemote : ",value); + ]]> + </handler> + </netRemoteCallHib> - <netRemoteCallHib name="setCanGiveAudio" funcname="whiteboardservice.setCanGiveAudio" - remotecontext="$once{ canvas.thishib }"> - <netparam><method name="getValue">return canvas.sessionId;</method></netparam> - <netparam><method name="getValue">return parent.parent.refObj.publicSID;</method></netparam> - <netparam><method name="getValue">return !parent.parent.refObj.canGiveAudio;</method></netparam> - <handler name="ondata" args="value"> - <![CDATA[ - //The onResult-Handler will be called be the rtmpconnection - if ($debug) Debug.write("setCanGiveAudio : ",value); - ]]> - </handler> - </netRemoteCallHib> - - <handler name="onmouseover"> - this.setAttribute('bgcolor',canvas.getThemeColor('baseMousecolorizer')); - </handler> - - <handler name="onmouseout"> - this.setAttribute('bgcolor',0xDADADA); - </handler> - - <omImage name="_userpic" stretches="both" x="1"> - <handler name="onload"> - <![CDATA[ - if (this.height > 38) { - //If bigger then containter then scale it - var width = this.width/(this.height/38); - this.setAttribute('height',38); - this.setAttribute('width',width); - } - if (this.width > 38) { - //If bigger then containter then scale it - var height = this.height/(this.width/38); - this.setAttribute('height',height); - this.setAttribute('width',38); - } - ]]> - </handler> - </omImage> - - <labelText name="_firstName" fontsize="10" x="40" text="${ parent.firstname == null ? '' : parent.firstname }" /> - <labelText name="_lastName" fontsize="10" x="40" y="20" text="${ parent.lastname == null ? '' : parent.lastname }" /> - + <netRemoteCallHib name="setCanGiveAudio" funcname="whiteboardservice.setCanGiveAudio" + remotecontext="$once{ canvas.thishib }"> + <netparam><method name="getValue">return canvas.sessionId;</method></netparam> + <netparam><method name="getValue">return parent.parent.refObj.publicSID;</method></netparam> + <netparam><method name="getValue">return !parent.parent.refObj.canGiveAudio;</method></netparam> + <handler name="ondata" args="value"> + <![CDATA[ + //The onResult-Handler will be called be the rtmpconnection + if ($debug) Debug.write("setCanGiveAudio : ",value); + ]]> + </handler> + </netRemoteCallHib> + + <handler name="onmouseover"> + this.setAttribute('bgcolor',canvas.getThemeColor('baseMousecolorizer')); + </handler> + + <handler name="onmouseout"> + this.setAttribute('bgcolor',0xDADADA); + </handler> + + <omImage name="_userpic" stretches="both" x="1"> + <handler name="onload"> + <![CDATA[ + if (this.height > 38) { + //If bigger then containter then scale it + var width = this.width/(this.height/38); + this.setAttribute('height',38); + this.setAttribute('width',width); + } + if (this.width > 38) { + //If bigger then containter then scale it + var height = this.height/(this.width/38); + this.setAttribute('height',height); + this.setAttribute('width',38); + } + ]]> + </handler> + </omImage> + + <labelText name="_firstName" fontsize="10" x="40" text="${ parent.firstname == null ? '' : parent.firstname }" /> + <labelText name="_lastName" fontsize="10" x="40" y="20" text="${ parent.lastname == null ? '' : parent.lastname }" /> + <typingIcon name="_user_typing" x="132" y="2" width="30" height="16" visible="false"/> <method name="userTyping" args="v"> _user_typing.setAttribute("visible", v); </method> - + <miniIcons name="_start_private_chat_rsc" x="114" y = "2" width="16" height="16" resource="start_private_chat_rsc" showhandcursor="true" visible="${ (!canvas.currentRoomObj.chatHidden) && parent.refObj.publicSID != canvas.publicSID }"> @@ -395,243 +396,242 @@ </handler> <labelTooltip labelid="1493" /> </miniIcons> - - <view name="_x" x="132" y="2"> - - <miniIcons name="_mute" x="82" width="16" height="16" resource="mute_micro_btn_rsc" showhandcursor="true" > - <handler name="onclick"> - <![CDATA[ - canvas.commonVideoViewContent.muteSound(parent.parent.refObj.publicSID, !parent.parent.refObj.micMuted); - ]]> - </handler> - <labelTooltip name="_text" text="" labelid="1407" /> - </miniIcons> - - <miniIcons name="_kickUser" width="16" height="16" x="100" - resource="kick_user_rsc" showhandcursor="true"> - <handler name="onclick"> - - if (parent.parent.refObj.publicSID == canvas.publicSID) { - new lz.labelerrorPopup(canvas.main_content._content.inner,{ - errorlabelid:1214 - }); - return; - } - - if (parent.isSuperModerator) { - new lz.labelerrorPopup(canvas.main_content._content.inner,{errorlabelid:1217}); - return; - } - - if ($debug) Debug.write("USER Kick: ",parent.parent.refObj.publicSID); - new lz.confirmationSingle(canvas.main_content._content.inner,{ - labelid:1216,labeliderror:1215, - refObj:this,showCheckBox:false}); - - </handler> - - <method name="sendConfirmation" args="yesno" > - this.kickUserByPublicSID.publicSID = parent.parent.refObj.publicSID; - this.kickUserByPublicSID.doCall(); - </method> - - <netRemoteCallHib name="kickUserByPublicSID" funcname="userservice.kickUserByPublicSID" - remotecontext="$once{ canvas.thishib }" > - <attribute name="publicSID" value="" type="string" /> - <netparam><method name="getValue"> return canvas.sessionId; </method></netparam> - <netparam><method name="getValue"> return parent.publicSID; </method></netparam> - <handler name="ondata" args="value"> - if ($debug) Debug.write("kickUserByPublicSID: ",value); - //this.parent.destroy(); - </handler> - </netRemoteCallHib> - - <labelTooltip labelid="1213" /> - </miniIcons> - </view> - - <view name="_miniIcons" x="113" y="22" height="18" > - - <miniIcons name="_isMod" x="0" width="16" resource="right_isactive_rsc" - height="16" showhandcursor="false"> - <handler name="onclick"> - <![CDATA[ - - if (parent.parent.isSuperModerator) { - new lz.labelerrorPopup(canvas.main_content._content.inner,{errorlabelid:838}); - return; - } - - //if the label is set and this is a Moderator then this user should - //allow the click event => the click event will trigger - //this user away from beeing able to draw on the whiteboard - if (canvas.ismoderator && this._text.text.length != 0) { - //Do it - if ($debug) Debug.write("Do Remove It"); - hib.removeModerator.publicSIDOfNewModerator = parent.parent.refObj.publicSID; - hib.removeModerator.doCall(); - //parent.parent.setCanDraw.doCall(); - } - ]]> - </handler> - <labelTooltip name="_text" text="" /> - </miniIcons> - - <miniIcons name="_isModAddbutton" opacity="0.5" x="0" width="16" resource="right_notactive_rsc" - height="16" showhandcursor="true"> - <handler name="onclick"> - <![CDATA[ - //if the label is set and this is a Moderator then this user should - //allow the click event => the click event will trigger - //this user away from beeing able to draw on the whiteboard - if (canvas.ismoderator && this._text.text.length != 0) { - //Do it - if ($debug) Debug.write("Do Add It"); - hib.addModerator.publicSIDOfNewModerator = parent.parent.refObj.publicSID; - hib.addModerator.doCall(); - //parent.parent.setCanDraw.doCall(); - } - ]]> - </handler> - <labelTooltip name="_text" labelid="676" /> - </miniIcons> - - <miniIcons name="_canDraw" x="20" width="16" resource="right_isactive_rsc" - height="16" showhandcursor="false" > - <handler name="onclick"> - <![CDATA[ - //if the label is set and this is a Moderator then this user should - //allow the click event => the click event will trigger - //this user away from beeing able to draw on the whiteboard - if (canvas.ismoderator && this._text.text.length != 0) { - //Do it - if ($debug) Debug.write("Do add draw to it"); - parent.parent.setCanDraw.doCall(); - } - ]]> - </handler> - <labelTooltip name="_text" text="" /> - </miniIcons> - - <miniIcons name="_canDrawModerator" x="20" width="16" opacity="0.5" - resource="right_notactive_rsc" height="16" showhandcursor="true"> - <handler name="onclick"> - //Do it - if ($debug) Debug.write("Do it"); - parent.parent.setCanDraw.doCall(); - </handler> - <labelTooltip labelid="611" /> - </miniIcons> - - <miniIcons name="_allowShare" x="40" width="16" resource="right_isactive_rsc" - height="16" showhandcursor="false" > - <handler name="onclick"> - <![CDATA[ - //if the label is set and this is a Moderator then this user should - //allow the click event => the click event will trigger - //this user away from beeing able to draw on the whiteboard - if (canvas.ismoderator && this._text.text.length != 0) { - //Do it - if ($debug) Debug.write("Do add draw to it"); - parent.parent.setCanShare.doCall(); - } - ]]> - </handler> - <labelTooltip name="_text" text="" labelid="1068" /> - </miniIcons> - - <miniIcons name="_denyShare" x="40" width="16" opacity="0.5" - resource="right_notactive_rsc" height="16" showhandcursor="true"> - <handler name="onclick"> - //Do it - if ($debug) Debug.write("Do it"); - parent.parent.setCanShare.doCall(); - </handler> - <labelTooltip labelid="1067" /> - </miniIcons> - - - <miniIcons name="_allowRemote" x="60" width="16" resource="right_isactive_rsc" - height="16" showhandcursor="false" > - <handler name="onclick"> - <![CDATA[ - //if the label is set and this is a Moderator then this user should - //allow the click event => the click event will trigger - //this user away from beeing able to draw on the whiteboard - if (canvas.ismoderator && this._text.text.length != 0) { - //Do it - if ($debug) Debug.write("Do add draw to it"); - parent.parent.setCanRemote.doCall(); - } - ]]> - </handler> - <labelTooltip name="_text" text="" labelid="1079" /> - </miniIcons> - - <miniIcons name="_denyRemote" x="60" width="16" opacity="0.5" - resource="right_notactive_rsc" height="16" showhandcursor="true"> - <handler name="onclick"> - //Do it - if ($debug) Debug.write("Do it"); - parent.parent.setCanRemote.doCall(); - </handler> - <labelTooltip labelid="1078" /> - </miniIcons> + + <view name="_x" x="132" y="2"> + + <miniIcons name="_mute" x="82" width="16" height="16" resource="mute_micro_btn_rsc" showhandcursor="true" > + <handler name="onclick"> + <![CDATA[ + canvas.commonVideoViewContent.muteSound(parent.parent.refObj.publicSID, !parent.parent.refObj.micMuted); + ]]> + </handler> + <labelTooltip name="_text" text="" labelid="1407" /> + </miniIcons> + + <miniIcons name="_kickUser" width="16" height="16" x="100" + resource="kick_user_rsc" showhandcursor="true"> + <handler name="onclick"> + + if (parent.parent.refObj.publicSID == canvas.publicSID) { + new lz.labelerrorPopup(canvas.main_content._content.inner,{ + errorlabelid:1214 + }); + return; + } + + if (parent.isSuperModerator) { + new lz.labelerrorPopup(canvas.main_content._content.inner,{errorlabelid:1217}); + return; + } + + if ($debug) Debug.write("USER Kick: ",parent.parent.refObj.publicSID); + new lz.confirmationSingle(canvas.main_content._content.inner,{ + labelid:1216,labeliderror:1215, + refObj:this,showCheckBox:false}); + + </handler> + + <method name="sendConfirmation" args="yesno" > + this.kickUserByPublicSID.publicSID = parent.parent.refObj.publicSID; + this.kickUserByPublicSID.doCall(); + </method> + + <netRemoteCallHib name="kickUserByPublicSID" funcname="userservice.kickUserByPublicSID" + remotecontext="$once{ canvas.thishib }" > + <attribute name="publicSID" value="" type="string" /> + <netparam><method name="getValue"> return canvas.sessionId; </method></netparam> + <netparam><method name="getValue"> return parent.publicSID; </method></netparam> + <handler name="ondata" args="value"> + if ($debug) Debug.write("kickUserByPublicSID: ",value); + //this.parent.destroy(); + </handler> + </netRemoteCallHib> + + <labelTooltip labelid="1213" /> + </miniIcons> + </view> + + <view name="_miniIcons" x="113" y="22" height="18" > + + <miniIcons name="_isMod" x="0" width="16" resource="right_isactive_rsc" + height="16" showhandcursor="false"> + <handler name="onclick"> + <![CDATA[ + + if (parent.parent.isSuperModerator) { + new lz.labelerrorPopup(canvas.main_content._content.inner,{errorlabelid:838}); + return; + } + + //if the label is set and this is a Moderator then this user should + //allow the click event => the click event will trigger + //this user away from beeing able to draw on the whiteboard + if (canvas.ismoderator && this._text.text.length != 0) { + //Do it + if ($debug) Debug.write("Do Remove It"); + hib.removeModerator.publicSIDOfNewModerator = parent.parent.refObj.publicSID; + hib.removeModerator.doCall(); + //parent.parent.setCanDraw.doCall(); + } + ]]> + </handler> + <labelTooltip name="_text" text="" /> + </miniIcons> + + <miniIcons name="_isModAddbutton" opacity="0.5" x="0" width="16" resource="right_notactive_rsc" + height="16" showhandcursor="true"> + <handler name="onclick"> + <![CDATA[ + //if the label is set and this is a Moderator then this user should + //allow the click event => the click event will trigger + //this user away from beeing able to draw on the whiteboard + if (canvas.ismoderator && this._text.text.length != 0) { + //Do it + if ($debug) Debug.write("Do Add It"); + hib.addModerator.publicSIDOfNewModerator = parent.parent.refObj.publicSID; + hib.addModerator.doCall(); + //parent.parent.setCanDraw.doCall(); + } + ]]> + </handler> + <labelTooltip name="_text" labelid="676" /> + </miniIcons> + + <miniIcons name="_canDraw" x="20" width="16" resource="right_isactive_rsc" + height="16" showhandcursor="false" > + <handler name="onclick"> + <![CDATA[ + //if the label is set and this is a Moderator then this user should + //allow the click event => the click event will trigger + //this user away from beeing able to draw on the whiteboard + if (canvas.ismoderator && this._text.text.length != 0) { + //Do it + if ($debug) Debug.write("Do add draw to it"); + parent.parent.setCanDraw.doCall(); + } + ]]> + </handler> + <labelTooltip name="_text" text="" /> + </miniIcons> + + <miniIcons name="_canDrawModerator" x="20" width="16" opacity="0.5" + resource="right_notactive_rsc" height="16" showhandcursor="true"> + <handler name="onclick"> + //Do it + if ($debug) Debug.write("Do it"); + parent.parent.setCanDraw.doCall(); + </handler> + <labelTooltip labelid="611" /> + </miniIcons> + + <miniIcons name="_allowShare" x="40" width="16" resource="right_isactive_rsc" + height="16" showhandcursor="false" > + <handler name="onclick"> + <![CDATA[ + //if the label is set and this is a Moderator then this user should + //allow the click event => the click event will trigger + //this user away from beeing able to draw on the whiteboard + if (canvas.ismoderator && this._text.text.length != 0) { + //Do it + if ($debug) Debug.write("Do add draw to it"); + parent.parent.setCanShare.doCall(); + } + ]]> + </handler> + <labelTooltip name="_text" text="" labelid="1068" /> + </miniIcons> + + <miniIcons name="_denyShare" x="40" width="16" opacity="0.5" + resource="right_notactive_rsc" height="16" showhandcursor="true"> + <handler name="onclick"> + //Do it + if ($debug) Debug.write("Do it"); + parent.parent.setCanShare.doCall(); + </handler> + <labelTooltip labelid="1067" /> + </miniIcons> + + + <miniIcons name="_allowRemote" x="60" width="16" resource="right_isactive_rsc" + height="16" showhandcursor="false" > + <handler name="onclick"> + <![CDATA[ + //if the label is set and this is a Moderator then this user should + //allow the click event => the click event will trigger + //this user away from beeing able to draw on the whiteboard + if (canvas.ismoderator && this._text.text.length != 0) { + //Do it + if ($debug) Debug.write("Do add draw to it"); + parent.parent.setCanRemote.doCall(); + } + ]]> + </handler> + <labelTooltip name="_text" text="" labelid="1079" /> + </miniIcons> + + <miniIcons name="_denyRemote" x="60" width="16" opacity="0.5" + resource="right_notactive_rsc" height="16" showhandcursor="true"> + <handler name="onclick"> + //Do it + if ($debug) Debug.write("Do it"); + parent.parent.setCanRemote.doCall(); + </handler> + <labelTooltip labelid="1078" /> + </miniIcons> - <miniIcons name="_allowExclusiveAudio" x="80" width="16" resource="right_isactive_rsc" - height="16" showhandcursor="false" > - <handler name="onclick"> - <![CDATA[ - //if the label is set and this is a Moderator then this user should - //allow the click event => the click event will trigger - //this user away from beeing able to give exclusive audio - if (canvas.ismoderator && this._text.text.length != 0) { - if ($debug) Debug.write("Do it"); - parent.parent.setCanGiveAudio.doCall(); - } - ]]> - </handler> - <labelTooltip name="_text" text="" labelid="1425" /> - </miniIcons> + <miniIcons name="_allowExclusiveAudio" x="80" width="16" resource="right_isactive_rsc" + height="16" showhandcursor="false" > + <handler name="onclick"> + <![CDATA[ + //if the label is set and this is a Moderator then this user should + //allow the click event => the click event will trigger + //this user away from beeing able to give exclusive audio + if (canvas.ismoderator && this._text.text.length != 0) { + if ($debug) Debug.write("Do it"); + parent.parent.setCanGiveAudio.doCall(); + } + ]]> + </handler> + <labelTooltip name="_text" text="" labelid="1425" /> + </miniIcons> - <miniIcons name="_denyExclusiveAudio" x="80" width="16" opacity="0.5" - resource="right_notactive_rsc" height="16" showhandcursor="true"> - <handler name="onclick"> - parent.parent.setCanGiveAudio.doCall(); - </handler> - <labelTooltip labelid="1424" /> - </miniIcons> - - - <miniIcons name="_restartDevice" x="100" width="16" height="16" resource="resyncuser_rsc" showhandcursor="true"> - <handler name="onclick"> - //TODO: local connection call - if ($debug) Debug.write("parent.parent.refObj.publicSID: ",parent.parent.refObj.publicSID); - canvas.commonVideoViewContent.createEditRecordStream(true, false, -1); - </handler> - <labelTooltip labelid="610" /> - </miniIcons> - - <view name="_loudness" x="120" > - <view x="0" y="0" name="loudness" resource="speaking" opacity="0.2" - onmouseover="" onmouseout="" > - <handler name="onclick"> + <miniIcons name="_denyExclusiveAudio" x="80" width="16" opacity="0.5" + resource="right_notactive_rsc" height="16" showhandcursor="true"> + <handler name="onclick"> + parent.parent.setCanGiveAudio.doCall(); + </handler> + <labelTooltip labelid="1424" /> + </miniIcons> + + + <miniIcons name="_restartDevice" x="100" width="16" height="16" resource="resyncuser_rsc" showhandcursor="true"> + <handler name="onclick"> + //TODO: local connection call + if ($debug) Debug.write("parent.parent.refObj.publicSID: ",parent.parent.refObj.publicSID); + canvas.commonVideoViewContent.createEditRecordStream(true, false, -1); + </handler> + <labelTooltip labelid="610" /> + </miniIcons> + + <view name="_loudness" x="120" > + <view x="0" y="0" name="loudness" resource="speaking" opacity="0.2" + onmouseover="" onmouseout="" > + <handler name="onclick"> <![CDATA[ - if (canvas.ismoderator || canvas.isAllowedToGiveExclusiveAudio) { - canvas.thishib.giveExclusiveAudio.setExclusiveAudio(parent.parent.parent.refObj.publicSID); - } else { - new lz.labelerrorPopup(canvas.main_content._content.inner,{errorlabelid:1478}); - } + if (canvas.ismoderator || canvas.isAllowedToGiveExclusiveAudio) { + canvas.thishib.giveExclusiveAudio.setExclusiveAudio(parent.parent.parent.refObj.publicSID); + } else { + new lz.labelerrorPopup(canvas.main_content._content.inner,{errorlabelid:1478}); + } ]]> </handler> - <labelTooltip inittwice="true" labelid="372" /> - </view> - </view> - </view> - - <view name="divisionLine" width="$once{ parent.width }" - bgcolor="0xFFFFFF" height="1" y="39" /> - + <labelTooltip inittwice="true" labelid="372" /> + </view> + </view> + </view> + + <view name="divisionLine" width="$once{ parent.width }" bgcolor="0xFFFFFF" height="1" y="39" /> + </class> </library>
Modified: openmeetings/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/restricted/restrictedUserList.lzx URL: http://svn.apache.org/viewvc/openmeetings/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/restricted/restrictedUserList.lzx?rev=1717911&r1=1717910&r2=1717911&view=diff ============================================================================== --- openmeetings/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/restricted/restrictedUserList.lzx (original) +++ openmeetings/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/restricted/restrictedUserList.lzx Fri Dec 4 08:44:20 2015 @@ -154,10 +154,7 @@ for (var i = 0; i < value.length; ++i){ if ( value[i].streamid == canvas.streamid ) { - value[i].selfItem = true; canvas.isAllowedToDraw = value[i].canDraw; - } else { - value[i].selfItem = false; } parent.addItemInitial(value[i]); } Modified: openmeetings/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/restricted/restrictedUserListInner.lzx URL: http://svn.apache.org/viewvc/openmeetings/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/restricted/restrictedUserListInner.lzx?rev=1717911&r1=1717910&r2=1717911&view=diff ============================================================================== --- openmeetings/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/restricted/restrictedUserListInner.lzx (original) +++ openmeetings/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/restricted/restrictedUserListInner.lzx Fri Dec 4 08:44:20 2015 @@ -8,8 +8,8 @@ "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 - + 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 @@ -21,18 +21,18 @@ <library> <class name="restrictedUserListInner" extends="baseRoomInnerList" - width="$once{ parent.width }" height="${ parent.height }" > - - <attribute name="selectedItem" value="null" /> - - <attribute name="listType" value="eventUserListTable" type="string" /> - - <attribute name="sortType" value="alphabetical" type="string" /> - + width="$once{ parent.width }" height="${ parent.height }" > + + <attribute name="selectedItem" value="null" /> + + <attribute name="listType" value="eventUserListTable" type="string" /> + + <attribute name="sortType" value="alphabetical" type="string" /> + <handler name="oninit"> this.initList(); </handler> - + <method name="initialAddItem" args="object"> <![CDATA[ if ($debug) Debug.write("restrictedUserListInner::initialAddItem : ",object.publicSID); @@ -60,25 +60,24 @@ this._table.renderList.push(object); ]]> </method> - + <method name="addItem" args="object"> <![CDATA[ initialAddItem(object); if ($debug) Debug.write("restrictedUserListInner::addItem: ", object.publicSID); - object.selfItem = canvas.publicSID == object.publicSID; this.sortUserList(); this._table.scheduleRenderContent(); this.moderationPanel.updateIcons(canvas.currentClient); ]]> </method> - - <method name="sortAndRenderList"> - this.sortUserList(); - this._table.renderContent(); - </method> - + + <method name="sortAndRenderList"> + this.sortUserList(); + this._table.renderContent(); + </method> + <method name="sortUserList"> <![CDATA[ if (!this._table.renderList) { @@ -101,323 +100,302 @@ } ]]> </method> - - <method name="initList"> - if ($debug) Debug.write("initList :: restrictedUserListInner"); - </method> - - <method name="clearList"> - if ($debug) Debug.write("clearList :: restrictedUserListInner"); - </method> - - <method name="disconnectclient" args="publicSID"> - <![CDATA[ - for (var i=0;i<this._table.renderList.length;i++) { - if (this._table.renderList[i].publicSID == publicSID) { - this._table.renderList.splice(i,1); - break; - } - } - this._table.renderContent(); - this.moderationPanel.updateIcons(canvas.currentClient); - ]]> - </method> - + + <method name="initList"> + if ($debug) Debug.write("initList :: restrictedUserListInner"); + </method> + + <method name="clearList"> + if ($debug) Debug.write("clearList :: restrictedUserListInner"); + </method> + + <method name="disconnectclient" args="publicSID"> + <![CDATA[ + for (var i = 0; i < this._table.renderList.length; ++i) { + if (this._table.renderList[i].publicSID == publicSID) { + this._table.renderList.splice(i,1); + break; + } + } + this._table.renderContent(); + this.moderationPanel.updateIcons(canvas.currentClient); + ]]> + </method> + <method name="getUserListItemByPublicSID" args="publicSID"> <![CDATA[ var v = null; var vList = this._table._innerlist._inn._inn.subviews; for (var i = 0; i < vList.length; ++i) { - if (vList[i].refObj.publicSID == publicSID) { + if (vList[i].refObj != null && vList[i].refObj.publicSID == publicSID) { v = vList[i]; break; } } return v; ]]> - </method> - - <view name="userStatus" layout="axis:y"> - <view> - <view resource="userstatus_multiframe_rsc" frame="1" /> - <labelText x="16" labelid="677" /> - </view> - <view> - <view resource="userstatus_multiframe_rsc" frame="2" /> - <labelText x="16" labelid="678" /> - </view> - <view> - <view resource="userstatus_multiframe_rsc" frame="3" /> - <labelText x="16" labelid="679" /> - </view> - </view> - - <moderationMiniIconsEventUserList name="_applyAndStatusIcons" x="$once{ parent.width-this.width-20 }" y="2" > + </method> + + <view name="userStatus" layout="axis:y"> + <view> + <view resource="userstatus_multiframe_rsc" frame="1" /> + <labelText x="16" labelid="677" /> + </view> + <view> + <view resource="userstatus_multiframe_rsc" frame="2" /> + <labelText x="16" labelid="678" /> + </view> + <view> + <view resource="userstatus_multiframe_rsc" frame="3" /> + <labelText x="16" labelid="679" /> + </view> + </view> + + <moderationMiniIconsEventUserList name="_applyAndStatusIcons" x="$once{ parent.width-this.width-20 }" y="2" > <handler name="onismoderator" reference="canvas" args="m"> this.updateIcons(); </handler> - <handler name="ondrawAllowStatus" reference="canvas" args="drawObject"> - this.updateIcons(); - </handler> - <handler name="onexclusiveAudioAllowStatus" reference="canvas" args="rclObject"> - this.updateIcons(); - </handler> - <handler name="onlastBroadCastingUser" reference="canvas" args="userObject"> - this.updateIcons(); - </handler> - <handler name="onmicMutedStatusChangedItem" reference="canvas" args="userObject"> - this.updateIcons(); - </handler> - </moderationMiniIconsEventUserList> - - - <turnOverListOrderedPaged name="_table" showTopBar="false" x="1" - height="${ parent.height-30-parent.moderationPanel.height }" - y="30" itemHeight="40" listLabelId="1001" headerHeight="0" - listItemName="restrictedUserListItem" showHScrollbar="hidden" - multiselect="false" width="268"> - - <attribute name="currentSelectedIndex" value="null" /> - - <attribute name="resizeDelegate" value="null"/> - <attribute name="resizeDelegateStarted" value="false" type="boolean"/> - - <attribute name="isLoaded" value="false" type="boolean"/> - - <attribute name="renderDelegate" value="null"/> - <attribute name="renderDelegateStarted" value="false" type="boolean"/> - - <handler name="onheight" args="h"> - if (this.isLoaded) { - if ($debug) Debug.write("isLoaded True onheight ",h); - if (!this.resizeDelegateStarted) { - this.resizeDelegateStarted = true; - lz.Timer.addTimer( this.resizeDelegate, 1000 ); - } else { - lz.Timer.resetTimer( this.resizeDelegate, 1000 ); - } - } - </handler> - - <handler name="oninit"> - this.resizeDelegate = new LzDelegate( this, "renderByHeightChange" ); - this.renderDelegate = new LzDelegate( this, "renderByNewUser" ); - this.addHeaderItem(1001,260); - </handler> - - <method name="scheduleRenderContent"> - if ($debug) Debug.warn("scheduleRenderContent "); - if (!this.renderDelegateStarted) { - this.renderDelegateStarted = true; - lz.Timer.addTimer( this.renderDelegate, 1000 ); - } else { - if ($debug) Debug.warn("More then one user was arriving within 1 Second - Postpone the Rendering to prevent too much reloading"); - lz.Timer.resetTimer( this.renderDelegate, 1000 ); - } - </method> - - <method name="renderByNewUser" args="refObj"> - this.renderDelegateStarted = false; - this.renderContent(); - </method> - - <method name="renderByHeightChange" args="refObj"> - - if ($debug) Debug.write("..:: renderByHeightChange ::..",refObj); - - lz.Timer.removeTimer( this.resizeDelegate ); - this.resizeDelegateStarted = false; - - this.clearList(); - this._innerlist._inn.initItems(this.listItemName); - - this.renderContent(); - </method> - - <handler name="onclickedItem" args="refObj"> - <![CDATA[ - if ($debug) Debug.write("onclickedItem ",refObj); - - if (this.currentSelectedIndex != null) { - this.renderList[this.currentSelectedIndex]["isselected"] = false; - } - - this.currentSelectedIndex = refObj.itemId; - this.renderList[refObj.itemId]["isselected"] = true; - - var list = this._innerlist._inn._inn; - for (var i=0;i<list.subviews.length;i++){ - list.subviews[i].deselect(); - list.subviews[i].hideModeratorIcons(); - } - - refObj.select(); - refObj.initModeratorIcons(); - ]]> - </handler> - - <method name="renderContent"> - <![CDATA[ - this.isLoaded = true; - var list = this._innerlist._inn._inn; - - if (this.renderList == null) { - this.renderList = new Array(); - } - //this.renderList = records; - var records = this.renderList; - this._innerlist._inn.setAttribute("y",0); - this._innerlist._inn._inn.setAttribute("height",records.length*this.itemHeight); - this._innerlist._inn.resetItems(); - - if ($debug) Debug.write(":: renderContent ::",this.renderList.length,list.subviews.length); - - this._records.setAttribute("text",records.length); - - for (var i=0;i<list.subviews.length;i++){ - if (records.length > i) { - - list.subviews[i].setAttribute("clickable",true); - list.subviews[i].refObj = records[i]; - - if (records[i]["isselected"] && records[i].isselected) { - list.subviews[i].isselected = true; - list.subviews[i].onmouseout.sendEvent(); - list.subviews[i].initModeratorIcons(); - } else { - list.subviews[i].isselected = false; - list.subviews[i].onmouseout.sendEvent(); - list.subviews[i].hideModeratorIcons(); - } - - list.subviews[i].setAttribute("userId",records[i].userId); - list.subviews[i].setAttribute("firstname",records[i].firstname); - list.subviews[i].setAttribute("isSuperModerator",records[i].isSuperModerator); - list.subviews[i].setAttribute("lastname",records[i].lastname); - list.subviews[i].setAttribute("connectedSince",records[i].connectedSince); - list.subviews[i].setAttribute("canDraw",records[i].canDraw); - list.subviews[i].setAttribute("canShare",records[i].canShare); - list.subviews[i].setAttribute("canRemote",records[i].canRemote); - list.subviews[i].setAttribute("canGiveAudio",records[i].canGiveAudio); - list.subviews[i].setAttribute("micMuted",records[i].micMuted); - list.subviews[i].setAttribute("isMod",records[i].isMod); - list.subviews[i].isBroadcasting = records[i].isBroadcasting; - list.subviews[i].setAttribute("selfItem",records[i].selfItem); - list.subviews[i].streamid = records[i].streamid; - list.subviews[i].setAttribute("username",records[i].username); - list.subviews[i].setAttribute("formatedDate",records[i].formatedDate); - - list.subviews[i].setAttribute("itemId",i); - - } else { - - list.subviews[i].refObj = null; - - list.subviews[i].isselected = false; - list.subviews[i].onmouseout.sendEvent(); - list.subviews[i].hideModeratorIcons(); - - list.subviews[i].setAttribute("userId",""); - list.subviews[i].setAttribute("firstname",""); - list.subviews[i].setAttribute("isSuperModerator",""); - list.subviews[i].setAttribute("lastname",""); - list.subviews[i].setAttribute("connectedSince",""); - list.subviews[i].setAttribute("canDraw",false); - list.subviews[i].setAttribute("canShare",false); - list.subviews[i].setAttribute("canRemote",false); - list.subviews[i].setAttribute("canGiveAudio",false); - list.subviews[i].setAttribute("micMuted",false); - list.subviews[i].setAttribute("isMod",false); - list.subviews[i].isBroadcasting = false; - list.subviews[i].setAttribute("selfItem",false); - list.subviews[i].streamid = ""; - list.subviews[i].setAttribute("username",""); - list.subviews[i].setAttribute("formatedDate",""); - list.subviews[i].setAttribute("itemId",""); - - list.subviews[i].setAttribute("clickable",false); - } - } - ]]> - </method> - - <handler name="onScrollItem" args="item"> - <![CDATA[ - if (this.renderList.length > item.itemId) { - item.setAttribute("clickable",true); - item.refObj = this.renderList[item.itemId]; - - if (this.renderList[item.itemId]["isselected"] && this.renderList[item.itemId].isselected) { - item.isselected = true; - item.onmouseout.sendEvent(); - item.initModeratorIcons(); - } else { - item.isselected = false; - item.onmouseout.sendEvent(); - item.hideModeratorIcons(); - } - - if ($debug) Debug.write(item.itemId,this.renderList[item.itemId].isMod,this.renderList[item.itemId].publicSID); - - item.setAttribute("userId",this.renderList[item.itemId].userId); - item.setAttribute("firstname",this.renderList[item.itemId].firstname); - item.setAttribute("isSuperModerator",this.renderList[item.itemId].isSuperModerator); - item.setAttribute("lastname",this.renderList[item.itemId].lastname); - item.setAttribute("connectedSince",this.renderList[item.itemId].connectedSince); - item.setAttribute("canDraw",this.renderList[item.itemId].canDraw); - item.setAttribute("canShare",this.renderList[item.itemId].canShare); - item.setAttribute("canRemote",this.renderList[item.itemId].canRemote); - item.setAttribute("canGiveAudio",this.renderList[item.itemId].canGiveAudio); - item.setAttribute("micMuted",this.renderList[item.itemId].micMuted); - item.isBroadcasting = this.renderList[item.itemId].isBroadcasting; - item.setAttribute("isMod",this.renderList[item.itemId].isMod); - item.setAttribute("selfItem",this.renderList[item.itemId].selfItem); - item.streamid = this.renderList[item.itemId].streamid; - item.setAttribute("username",this.renderList[item.itemId].username); - item.setAttribute("formatedDate",this.renderList[item.itemId].formatedDate); - - item.setAttribute("itemId",item.itemId); - - item.updateIconByModScroll(); - - } else { - item.isselected = false; - item.onmouseout.sendEvent(); - item.hideModeratorIcons(); - - item.refObj = null; - - item.setAttribute("userId",""); - item.setAttribute("firstname",""); - item.setAttribute("isSuperModerator",""); - item.setAttribute("lastname",""); - item.setAttribute("connectedSince",""); - item.setAttribute("canDraw",false); - item.setAttribute("canShare",false); - item.setAttribute("canRemote",false); - item.setAttribute("canGiveAudio",false); - item.setAttribute("micMuted",false); - item.setAttribute("isMod",false); - item.isBroadcasting = false; - item.setAttribute("selfItem",false); - item.streamid = "" - item.setAttribute("username",""); - item.setAttribute("formatedDate",""); - - item.setAttribute("itemId",""); - - item.setAttribute("clickable",false); - } - - ]]> - </handler> - - </turnOverListOrderedPaged> - - <view name="moderationPanel" clip="true" - height="${ (canvas.ismoderator) ? 40 : 0 }" - y="${ parent.height - this.height - 2 }"> - + <handler name="ondrawAllowStatus" reference="canvas" args="drawObject"> + this.updateIcons(); + </handler> + <handler name="onexclusiveAudioAllowStatus" reference="canvas" args="rclObject"> + this.updateIcons(); + </handler> + <handler name="onlastBroadCastingUser" reference="canvas" args="userObject"> + this.updateIcons(); + </handler> + <handler name="onmicMutedStatusChangedItem" reference="canvas" args="userObject"> + this.updateIcons(); + </handler> + </moderationMiniIconsEventUserList> + + + <turnOverListOrderedPaged name="_table" showTopBar="false" x="1" + height="${ parent.height-30-parent.moderationPanel.height }" + y="30" itemHeight="40" listLabelId="1001" headerHeight="0" + listItemName="restrictedUserListItem" showHScrollbar="hidden" + multiselect="false" width="268"> + + <attribute name="currentSelectedIndex" value="null" /> + + <attribute name="resizeDelegate" value="null"/> + <attribute name="resizeDelegateStarted" value="false" type="boolean"/> + + <attribute name="isLoaded" value="false" type="boolean"/> + + <attribute name="renderDelegate" value="null"/> + <attribute name="renderDelegateStarted" value="false" type="boolean"/> + + <handler name="onheight" args="h"> + if (this.isLoaded) { + if ($debug) Debug.write("isLoaded True onheight ",h); + if (!this.resizeDelegateStarted) { + this.resizeDelegateStarted = true; + lz.Timer.addTimer( this.resizeDelegate, 1000 ); + } else { + lz.Timer.resetTimer( this.resizeDelegate, 1000 ); + } + } + </handler> + + <handler name="oninit"> + this.resizeDelegate = new LzDelegate(this, "renderByHeightChange"); + this.renderDelegate = new LzDelegate(this, "renderByNewUser"); + this.addHeaderItem(1001,260); + </handler> + + <method name="scheduleRenderContent"> + if ($debug) Debug.warn("scheduleRenderContent "); + if (!this.renderDelegateStarted) { + this.renderDelegateStarted = true; + lz.Timer.addTimer( this.renderDelegate, 1000 ); + } else { + if ($debug) Debug.warn("More then one user was arriving within 1 Second - Postpone the Rendering to prevent too much reloading"); + lz.Timer.resetTimer( this.renderDelegate, 1000 ); + } + </method> + + <method name="renderByNewUser" args="refObj"> + this.renderDelegateStarted = false; + this.renderContent(); + </method> + + <method name="renderByHeightChange" args="refObj"> + + if ($debug) Debug.write("..:: renderByHeightChange ::..",refObj); + + lz.Timer.removeTimer(this.resizeDelegate); + this.resizeDelegateStarted = false; + + this.clearList(); + this._innerlist._inn.initItems(this.listItemName); + + this.renderContent(); + </method> + + <handler name="onclickedItem" args="refObj"> + <![CDATA[ + if ($debug) Debug.write("onclickedItem ",refObj); + + if (this.currentSelectedIndex != null) { + this.renderList[this.currentSelectedIndex]["isselected"] = false; + } + + this.currentSelectedIndex = refObj.itemId; + this.renderList[refObj.itemId]["isselected"] = true; + + var list = this._innerlist._inn._inn; + for (var i=0;i<list.subviews.length;i++){ + list.subviews[i].deselect(); + list.subviews[i].hideModeratorIcons(); + } + + refObj.select(); + refObj.initModeratorIcons(); + ]]> + </handler> + + <method name="renderContent"> + <![CDATA[ + this.isLoaded = true; + var list = this._innerlist._inn._inn; + + if (this.renderList == null) { + this.renderList = new Array(); + } + var records = this.renderList; + this._innerlist._inn.setAttribute("y",0); + this._innerlist._inn._inn.setAttribute("height", records.length * this.itemHeight); + this._innerlist._inn.resetItems(); + + if ($debug) Debug.write(":: renderContent ::", this.renderList.length, list.subviews.length, this.renderList); + + this._records.setAttribute("text", records.length); + + for (var i = 0; i < list.subviews.length; ++i) { + if (records.length > i) { + + list.subviews[i].setAttribute("clickable",true); + list.subviews[i].setAttribute("refObj", records[i]); + + if (records[i]["isselected"] && records[i].isselected) { + list.subviews[i].isselected = true; + list.subviews[i].onmouseout.sendEvent(); + list.subviews[i].initModeratorIcons(); + } else { + list.subviews[i].isselected = false; + list.subviews[i].onmouseout.sendEvent(); + list.subviews[i].hideModeratorIcons(); + } + + list.subviews[i].setAttribute("userId",records[i].userId); + list.subviews[i].setAttribute("firstname",records[i].firstname); + list.subviews[i].setAttribute("isSuperModerator",records[i].isSuperModerator); + list.subviews[i].setAttribute("lastname",records[i].lastname); + list.subviews[i].setAttribute("connectedSince",records[i].connectedSince); + list.subviews[i].setAttribute("micMuted",records[i].micMuted); + list.subviews[i].setAttribute("isMod",records[i].isMod); + list.subviews[i].isBroadcasting = records[i].isBroadcasting; + list.subviews[i].streamid = records[i].streamid; + list.subviews[i].setAttribute("username",records[i].username); + list.subviews[i].setAttribute("formatedDate",records[i].formatedDate); + + list.subviews[i].setAttribute("itemId",i); + + } else { + + list.subviews[i].refObj = null; + + list.subviews[i].isselected = false; + list.subviews[i].onmouseout.sendEvent(); + list.subviews[i].hideModeratorIcons(); + + list.subviews[i].setAttribute("userId",""); + list.subviews[i].setAttribute("firstname",""); + list.subviews[i].setAttribute("isSuperModerator",""); + list.subviews[i].setAttribute("lastname",""); + list.subviews[i].setAttribute("connectedSince",""); + list.subviews[i].setAttribute("micMuted",false); + list.subviews[i].setAttribute("isMod",false); + list.subviews[i].isBroadcasting = false; + list.subviews[i].streamid = ""; + list.subviews[i].setAttribute("username",""); + list.subviews[i].setAttribute("formatedDate",""); + list.subviews[i].setAttribute("itemId",""); + + list.subviews[i].setAttribute("clickable",false); + } + } + ]]> + </method> + + <handler name="onScrollItem" args="item"> + <![CDATA[ + if (this.renderList.length > item.itemId) { + item.setAttribute("clickable",true); + item.refObj = this.renderList[item.itemId]; + + if (this.renderList[item.itemId]["isselected"] && this.renderList[item.itemId].isselected) { + item.isselected = true; + item.onmouseout.sendEvent(); + item.initModeratorIcons(); + } else { + item.isselected = false; + item.onmouseout.sendEvent(); + item.hideModeratorIcons(); + } + + if ($debug) Debug.write(item.itemId,this.renderList[item.itemId].isMod,this.renderList[item.itemId].publicSID); + + item.setAttribute("userId",this.renderList[item.itemId].userId); + item.setAttribute("firstname",this.renderList[item.itemId].firstname); + item.setAttribute("isSuperModerator",this.renderList[item.itemId].isSuperModerator); + item.setAttribute("lastname",this.renderList[item.itemId].lastname); + item.setAttribute("connectedSince",this.renderList[item.itemId].connectedSince); + item.setAttribute("micMuted",this.renderList[item.itemId].micMuted); + item.isBroadcasting = this.renderList[item.itemId].isBroadcasting; + item.setAttribute("isMod",this.renderList[item.itemId].isMod); + item.streamid = this.renderList[item.itemId].streamid; + item.setAttribute("username",this.renderList[item.itemId].username); + item.setAttribute("formatedDate",this.renderList[item.itemId].formatedDate); + + item.setAttribute("itemId",item.itemId); + + item.updateIconByModScroll(); + + } else { + item.isselected = false; + item.onmouseout.sendEvent(); + item.hideModeratorIcons(); + + item.refObj = null; + + item.setAttribute("userId",""); + item.setAttribute("firstname",""); + item.setAttribute("isSuperModerator",""); + item.setAttribute("lastname",""); + item.setAttribute("connectedSince",""); + item.setAttribute("micMuted",false); + item.setAttribute("isMod",false); + item.isBroadcasting = false; + item.streamid = "" + item.setAttribute("username",""); + item.setAttribute("formatedDate",""); + + item.setAttribute("itemId",""); + + item.setAttribute("clickable",false); + } + + ]]> + </handler> + + </turnOverListOrderedPaged> + + <view name="moderationPanel" clip="true" + height="${ (canvas.ismoderator) ? 40 : 0 }" + y="${ parent.height - this.height - 2 }"> + <handler name="onismoderator" reference="canvas" args="m"> if ($debug) Debug.write("###### ismoderator ",m); if (canvas.currentClient) { @@ -425,11 +403,11 @@ } this.updateIcons(canvas.currentClient); </handler> - + <handler name="onmicMutedStatusChangedItem" reference="canvas" args="roomClientObj"> updateIcons(roomClientObj); </handler> - + <handler name="ondrawAllowStatus" reference="canvas" args="drawObject"> updateIcons(drawObject); </handler> @@ -437,7 +415,7 @@ <handler name="onexclusiveAudioAllowStatus" reference="canvas" args="rclObject"> updateIcons(rclObject); </handler> - + <handler name="onlastBroadCastingUser" reference="canvas" args="userObject"> <![CDATA[ if ($debug) Debug.write(" :: onlastBroadCastingUser :: "); @@ -449,7 +427,7 @@ updateIcons(userObject); ]]> </handler> - + <method name="updateIcons" args="userObject"> <![CDATA[ if ($debug) Debug.write(" :: updateIcons :: ", userObject); @@ -497,23 +475,9 @@ } ]]> </method> - - <method name="getItemByPublicSID" args="publicSID"> - <![CDATA[ - var vList = parent._table._innerlist._inn._inn.subviews; - - for (var i=0;i<vList.length;i++) { - if (vList[i].refObj.publicSID == publicSID) { - return vList[i]; - } - } - - return null; - ]]> - </method> - - <labelText labelid="680" width="270" x="0" multiline="true" y="0" /> - </view> + + <labelText labelid="680" width="270" x="0" multiline="true" y="0" /> + </view> </class>
