Search in sources :

Example 6 with RoomPoll

use of org.apache.openmeetings.db.entity.room.RoomPoll in project openmeetings by apache.

the class PollResultsDialog method updateModel.

public void updateModel(IPartialPageRequestHandler target, boolean moderator) {
    selForm.updateModel(target);
    this.moderator = moderator;
    RoomPoll p = selForm.select.getModelObject();
    dispForm.updateModel(p, false, target);
    StringBuilder builder = new StringBuilder();
    builder.append("$('#").append(PollResultsDialog.this.getMarkupId()).append("').on('dialogopen', function( event, ui ) {");
    builder.append(getScript(barChart(p)));
    builder.append("});");
    target.appendJavaScript(builder.toString());
}
Also used : RoomPoll(org.apache.openmeetings.db.entity.room.RoomPoll)

Aggregations

RoomPoll (org.apache.openmeetings.db.entity.room.RoomPoll)6 Serializer (org.simpleframework.xml.Serializer)2 Registry (org.simpleframework.xml.convert.Registry)2 RegistryStrategy (org.simpleframework.xml.convert.RegistryStrategy)2 Persister (org.simpleframework.xml.core.Persister)2 Strategy (org.simpleframework.xml.strategy.Strategy)2 DialogButton (com.googlecode.wicket.jquery.ui.widget.dialog.DialogButton)1 MessageDialog (com.googlecode.wicket.jquery.ui.widget.dialog.MessageDialog)1 RoomConverter (org.apache.openmeetings.backup.converter.RoomConverter)1 UserConverter (org.apache.openmeetings.backup.converter.UserConverter)1 RoomPollAnswer (org.apache.openmeetings.db.entity.room.RoomPollAnswer)1 User (org.apache.openmeetings.db.entity.user.User)1 RoomMessage (org.apache.openmeetings.db.util.ws.RoomMessage)1 MainPanel (org.apache.openmeetings.web.common.MainPanel)1 RoomMenuItem (org.apache.openmeetings.web.common.menu.RoomMenuItem)1 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)1 IPartialPageRequestHandler (org.apache.wicket.core.request.handler.IPartialPageRequestHandler)1 RegistryMatcher (org.simpleframework.xml.transform.RegistryMatcher)1