openmeetings-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Coscend@OM" <OM.Insig...@Coscend.com>
Subject RE: OM 3.3.0: Moderation of Custom Menu Item
Date Mon, 07 Aug 2017 18:26:38 GMT
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 <dev@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.Insights@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


Mime
View raw message