You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openmeetings.apache.org by "Coscend@OM" <OM...@Coscend.com> on 2017/08/04 17:29:18 UTC

OM 3.3.0: Moderation of Custom Menu Item

Dear Fellow OpenMeetings Developers,

 

Your guidance on the following custom feature addition would be helpful.  We
have added a new menu item to conference rooms.  We would like this menu
item to be 'moderated' by session moderators, similar to how File upload
menu and Actions menu and its dropdown sub-menus are being done currently.  

 

How is moderation implemented?  Do we need to add a 'handler' in
RoomMenuPanel.java?  Below is a sample code flow.

 

public class RoomMenuPanel extends Panel {

.

       private final NewMenuButton newmenuBtn;

.

 

       private final RoomMenuItem newMenuItem = new
RoomMenuItem(Application.getString(.), Application.getString(.), false) {

              private static final long serialVersionUID = 1L;

 

              @Override

              public void onClick(AjaxRequestTarget target) {

                     newmenuBtn.onClick(target);

              }

       };

 

       public RoomMenuPanel(String id, final RoomPanel room) {

.

 

              handler.add(newmenuBtn.setVisible(newmenuVisible));

.

}

 

 

Thank you.

 

Sincerely,

 

Hemant K. Sabat

 

Coscend Communications Solutions

 <http://www.coscend.com/> www.Coscend.com 

------------------------------------------------------------------

Real-time, Interactive Video Collaboration, Tele-healthcare, Tele-education,
Telepresence Services, on the fly.

------------------------------------------------------------------

CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail
Messages from Coscend Communications Solutions' posted at:
<http://www.coscend.com/Terms_and_Conditions.html>
http://www.Coscend.com/Terms_and_Conditions.html 

 

 

 



---
This email has been checked for viruses by AVG.
http://www.avg.com

RE: OM 3.3.0: Moderation of Custom Menu Item

Posted by "Coscend@OM" <OM...@Coscend.com>.
Dear Maxim,

Thank you for the vector to update method in RoomMenuPanel.java.  We extracted this into a private method and passed on default values plus a few others and implemented a customized menu array list.

Sincerely,

Hemant K. Sabat
 
Coscend Communications Solutions
www.Coscend.com 
------------------------------------------------------------------
Real-time, Interactive Video Collaboration, Tele-healthcare, Tele-education, Telepresence Services, on the fly…
------------------------------------------------------------------
CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail Messages from Coscend Communications Solutions' posted at: http://www.Coscend.com/Terms_and_Conditions.html 

-----Original Message-----
From: Maxim Solodovnik [mailto:solomax666@gmail.com] 
Sent: Saturday, August 5, 2017 10:15 AM
To: dev <de...@openmeetings.apache.org>; OM.Insights@coscend.com
Subject: Re: OM 3.3.0: Moderation of Custom Menu Item

Menus you have mentioned being conditionally enabled/hide in
https://github.com/apache/openmeetings/blob/3.3.x/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/menu/RoomMenuPanel.java#L283

you can add similar code

On Sat, Aug 5, 2017 at 12:29 AM, Coscend@OM <OM...@coscend.com> wrote:
> Dear Fellow OpenMeetings Developers,
>
>
>
> Your guidance on the following custom feature addition would be 
> helpful.  We have added a new menu item to conference rooms.  We would 
> like this menu item to be 'moderated' by session moderators, similar 
> to how File upload menu and Actions menu and its dropdown sub-menus are being done currently.
>
>
>
> How is moderation implemented?  Do we need to add a 'handler' in 
> RoomMenuPanel.java?  Below is a sample code flow.
>
>
>
> public class RoomMenuPanel extends Panel {
>
> .
>
>        private final NewMenuButton newmenuBtn;
>
> .
>
>
>
>        private final RoomMenuItem newMenuItem = new 
> RoomMenuItem(Application.getString(.), Application.getString(.), 
> false) {
>
>               private static final long serialVersionUID = 1L;
>
>
>
>               @Override
>
>               public void onClick(AjaxRequestTarget target) {
>
>                      newmenuBtn.onClick(target);
>
>               }
>
>        };
>
>
>
>        public RoomMenuPanel(String id, final RoomPanel room) {
>
> .
>
>
>
>               handler.add(newmenuBtn.setVisible(newmenuVisible));
>
> .
>
> }
>
>
>
>
>
> Thank you.
>
>
>
> Sincerely,
>
>
>
> Hemant K. Sabat
>
>
>
> Coscend Communications Solutions
>
>  <http://www.coscend.com/> www.Coscend.com
>
> ------------------------------------------------------------------
>
> Real-time, Interactive Video Collaboration, Tele-healthcare, 
> Tele-education, Telepresence Services, on the fly.
>
> ------------------------------------------------------------------
>
> CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail 
> Messages from Coscend Communications Solutions' posted at:
> <http://www.coscend.com/Terms_and_Conditions.html>
> http://www.Coscend.com/Terms_and_Conditions.html
>
>
>
>
>
>
>
>
>
> ---
> This email has been checked for viruses by AVG.
> http://www.avg.com



--
WBR
Maxim aka solomax


Re: OM 3.3.0: Moderation of Custom Menu Item

Posted by Maxim Solodovnik <so...@gmail.com>.
Menus you have mentioned being conditionally enabled/hide in
https://github.com/apache/openmeetings/blob/3.3.x/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/menu/RoomMenuPanel.java#L283

you can add similar code

On Sat, Aug 5, 2017 at 12:29 AM, Coscend@OM <OM...@coscend.com> wrote:
> Dear Fellow OpenMeetings Developers,
>
>
>
> Your guidance on the following custom feature addition would be helpful.  We
> have added a new menu item to conference rooms.  We would like this menu
> item to be 'moderated' by session moderators, similar to how File upload
> menu and Actions menu and its dropdown sub-menus are being done currently.
>
>
>
> How is moderation implemented?  Do we need to add a 'handler' in
> RoomMenuPanel.java?  Below is a sample code flow.
>
>
>
> public class RoomMenuPanel extends Panel {
>
> .
>
>        private final NewMenuButton newmenuBtn;
>
> .
>
>
>
>        private final RoomMenuItem newMenuItem = new
> RoomMenuItem(Application.getString(.), Application.getString(.), false) {
>
>               private static final long serialVersionUID = 1L;
>
>
>
>               @Override
>
>               public void onClick(AjaxRequestTarget target) {
>
>                      newmenuBtn.onClick(target);
>
>               }
>
>        };
>
>
>
>        public RoomMenuPanel(String id, final RoomPanel room) {
>
> .
>
>
>
>               handler.add(newmenuBtn.setVisible(newmenuVisible));
>
> .
>
> }
>
>
>
>
>
> Thank you.
>
>
>
> Sincerely,
>
>
>
> Hemant K. Sabat
>
>
>
> Coscend Communications Solutions
>
>  <http://www.coscend.com/> www.Coscend.com
>
> ------------------------------------------------------------------
>
> Real-time, Interactive Video Collaboration, Tele-healthcare, Tele-education,
> Telepresence Services, on the fly.
>
> ------------------------------------------------------------------
>
> CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail
> Messages from Coscend Communications Solutions' posted at:
> <http://www.coscend.com/Terms_and_Conditions.html>
> http://www.Coscend.com/Terms_and_Conditions.html
>
>
>
>
>
>
>
>
>
> ---
> This email has been checked for viruses by AVG.
> http://www.avg.com



-- 
WBR
Maxim aka solomax