Examples of WysiwygEditor


Examples of com.googlecode.wicket.jquery.ui.plugins.wysiwyg.WysiwygEditor

     
      add(feedback.setOutputMarkupId(true));
      add(new RequiredTextField<String>("title").setLabel(Model.of(WebSession.getString(572))));
      DefaultWysiwygToolbar toolbar = new DefaultWysiwygToolbar("toolbarContainer");
      add(toolbar);
      add(new WysiwygEditor("description", toolbar));
      add(new TextField<String>("location"));
      add(start = new DateTimeField("start"));
      add(end = new DateTimeField("end"));
      pwd.setEnabled(getModelObject().isPasswordProtected());
      pwd.setOutputMarkupId(true);
View Full Code Here

Examples of com.googlecode.wicket.jquery.ui.plugins.wysiwyg.WysiwygEditor

    form.add(feedback.setOutputMarkupId(true));
    form.add(new UserMultiChoice("to", modelTo).setRequired(true));
    form.add(new TextField<String>("subject"));
    DefaultWysiwygToolbar toolbar = new DefaultWysiwygToolbar("toolbarContainer");
    form.add(toolbar);
    form.add(new WysiwygEditor("message", toolbar));
    form.add(roomParamsBlock.setOutputMarkupId(true));
    final CheckBox bookedRoom = new CheckBox("bookedRoom");
    form.add(bookedRoom.setOutputMarkupId(true).add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;
     
View Full Code Here

Examples of com.googlecode.wicket.jquery.ui.plugins.wysiwyg.WysiwygEditor

    form.add(feedback.setOutputMarkupId(true));
    form.add(new UserMultiChoice("to", modelTo).setRequired(true));
    form.add(new TextField<String>("subject"));
    DefaultWysiwygToolbar toolbar = new DefaultWysiwygToolbar("toolbarContainer");
    form.add(toolbar);
    form.add(new WysiwygEditor("message", toolbar));
    form.add(roomParamsBlock.setOutputMarkupId(true));
    final CheckBox bookedRoom = new CheckBox("bookedRoom");
    form.add(bookedRoom.setOutputMarkupId(true).add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;
     
View Full Code Here

Examples of com.googlecode.wicket.jquery.ui.plugins.wysiwyg.WysiwygEditor

      }
    });
    add(new EmoticonsBehavior("#" + MESSAGE_AREA_ID));
    add(new WebMarkupContainer("messages").setMarkupId(MESSAGE_AREA_ID));
    ChatToolbar toolbar = new ChatToolbar("toolbarContainer");
    final WysiwygEditor chatMessage = new WysiwygEditor("chatMessage", Model.of(""), toolbar);
    add(new Form<Void>("sendForm").add(
        toolbar
        , chatMessage.setOutputMarkupId(true)
        , new AjaxButton("send") {
          private static final long serialVersionUID = 1L;
         
          @Override
          protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
            ChatDao dao = getBean(ChatDao.class);
            ChatMessage m = new ChatMessage();
            m.setMessage(unescapeXml(chatMessage.getDefaultModelObjectAsString()));
            m.setSent(new Date());
            m.setFromUser(getBean(UserDao.class).get(getUserId()));
            dao.update(m);
            IWebSocketConnectionRegistry reg = IWebSocketSettings.Holder.get(getApplication()).getConnectionRegistry();
            for (IWebSocketConnection c : reg.getConnections(getApplication())) {
              try {
                c.sendMessage(getMessage(m).toString());
              } catch(Exception e) {
                log.error("Error while sending message", e);
              }
            }
            chatMessage.setDefaultModelObject("");
            target.add(chatMessage);
          };
        }));
  }
View Full Code Here

Examples of com.googlecode.wicket.jquery.ui.plugins.wysiwyg.WysiwygEditor

     
      add(feedback.setOutputMarkupId(true));
      add(new RequiredTextField<String>("title").setLabel(Model.of(WebSession.getString(572))));
      DefaultWysiwygToolbar toolbar = new DefaultWysiwygToolbar("toolbarContainer");
      add(toolbar);
      add(new WysiwygEditor("description", toolbar));
      add(new TextField<String>("location"));
      add(start = new DateTimeField("start"));
      add(end = new DateTimeField("end"));
      pwd.setEnabled(getModelObject().isPasswordProtected());
      pwd.setOutputMarkupId(true);
View Full Code Here

Examples of com.googlecode.wicket.jquery.ui.plugins.wysiwyg.WysiwygEditor

      }
    });
    add(new EmoticonsBehavior("#" + MESSAGE_AREA_ID));
    add(new WebMarkupContainer("messages").setMarkupId(MESSAGE_AREA_ID));
    ChatToolbar toolbar = new ChatToolbar("toolbarContainer");
    final WysiwygEditor chatMessage = new WysiwygEditor("chatMessage", Model.of(""), toolbar);
    add(new Form<Void>("sendForm").add(
        toolbar
        , chatMessage.setOutputMarkupId(true)
        , new AjaxButton("send") {
          private static final long serialVersionUID = 1L;
         
          @Override
          protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
            ChatDao dao = getBean(ChatDao.class);
            ChatMessage m = new ChatMessage();
            m.setMessage(unescapeXml(chatMessage.getDefaultModelObjectAsString()));
            m.setSent(new Date());
            m.setFromUser(getBean(UserDao.class).get(getUserId()));
            dao.update(m);
            IWebSocketConnectionRegistry reg = IWebSocketSettings.Holder.get(getApplication()).getConnectionRegistry();
            for (IWebSocketConnection c : reg.getConnections(getApplication())) {
              try {
                c.sendMessage(getMessage(m).toString());
              } catch(Exception e) {
                log.error("Error while sending message", e);
              }
            }
            chatMessage.setDefaultModelObject("");
            target.add(chatMessage);
          };
        }));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.