Search in sources :

Example 6 with DialogButton

use of com.googlecode.wicket.jquery.ui.widget.dialog.DialogButton in project openmeetings by apache.

the class ChangePasswordDialog method onInitialize.

@Override
protected void onInitialize() {
    getTitle().setObject(getString("327"));
    update = new DialogButton("update", Model.of(getString("327"))) {

        private static final long serialVersionUID = 1L;

        @Override
        public boolean isIndicating() {
            return true;
        }
    };
    cancel = new DialogButton("cancel", Model.of(getString("lbl.cancel")));
    passValidator = new StrongPasswordValidator(getMinPasswdLength(cfgDao), userDao.get(getUserId()));
    add(form.add(current.setLabel(Model.of(getString("current.password"))).setRequired(true), pass.setLabel(Model.of(getString("328"))).add(passValidator), pass2.setLabel(Model.of(getString("116"))), feedback.setOutputMarkupId(true)));
    super.onInitialize();
}
Also used : DialogButton(com.googlecode.wicket.jquery.ui.widget.dialog.DialogButton) StrongPasswordValidator(org.apache.openmeetings.core.util.StrongPasswordValidator)

Example 7 with DialogButton

use of com.googlecode.wicket.jquery.ui.widget.dialog.DialogButton in project openmeetings by apache.

the class PasswordDialog method onInitialize.

@Override
protected void onInitialize() {
    setTitle(Model.of(getString("537")));
    ok = new DialogButton("ok", getString("54"));
    cancel = new DialogButton("cancel", getString("lbl.cancel"));
    add(form.add(feedback, pass.setRequired(false).setLabel(Model.of(getString("110"))).setOutputMarkupPlaceholderTag(true).setOutputMarkupId(true)));
    super.onInitialize();
}
Also used : DialogButton(com.googlecode.wicket.jquery.ui.widget.dialog.DialogButton)

Example 8 with DialogButton

use of com.googlecode.wicket.jquery.ui.widget.dialog.DialogButton in project openmeetings by apache.

the class UsersPanel method onInitialize.

@Override
protected void onInitialize() {
    final MessageDialog warning = new MessageDialog("warning", getString("797"), getString("warn.nogroup"), DialogButtons.OK, DialogIcon.WARN) {

        private static final long serialVersionUID = 1L;

        @Override
        public void onClose(IPartialPageRequestHandler handler, DialogButton button) {
        // no-op
        }
    };
    form = new UserForm("form", listContainer, userDao.getNewUserInstance(userDao.get(getUserId())), warning);
    form.showNewRecord();
    add(form, warning);
    super.onInitialize();
}
Also used : DialogButton(com.googlecode.wicket.jquery.ui.widget.dialog.DialogButton) IPartialPageRequestHandler(org.apache.wicket.core.request.handler.IPartialPageRequestHandler) MessageDialog(com.googlecode.wicket.jquery.ui.widget.dialog.MessageDialog)

Example 9 with DialogButton

use of com.googlecode.wicket.jquery.ui.widget.dialog.DialogButton in project openmeetings by apache.

the class NicknameDialog method onInitialize.

@Override
protected void onInitialize() {
    getTitle().setObject(getString("1287"));
    ok = new DialogButton("ok", getString("54"));
    form.add(feedback);
    form.add(new RequiredTextField<String>("firstname").setLabel(Model.of(getString("135"))).add(minimumLength(4)));
    form.add(new RequiredTextField<String>("lastname").setLabel(Model.of(getString("136"))).add(minimumLength(4)));
    form.add(new RequiredTextField<String>("address.email").setLabel(Model.of(getString("119"))).add(RfcCompliantEmailAddressValidator.getInstance()));
    super.onInitialize();
}
Also used : DialogButton(com.googlecode.wicket.jquery.ui.widget.dialog.DialogButton)

Example 10 with DialogButton

use of com.googlecode.wicket.jquery.ui.widget.dialog.DialogButton in project openmeetings by apache.

the class InvitationDialog method onInitialize.

@Override
protected void onInitialize() {
    getTitle().setObject(getString("213"));
    generate = new DialogButton("generate", getString("1526"));
    send = new DialogButton("send", getString("218"));
    cancel = new DialogButton("cancel", getString("lbl.cancel"));
    super.onInitialize();
}
Also used : DialogButton(com.googlecode.wicket.jquery.ui.widget.dialog.DialogButton)

Aggregations

DialogButton (com.googlecode.wicket.jquery.ui.widget.dialog.DialogButton)26 IPartialPageRequestHandler (org.apache.wicket.core.request.handler.IPartialPageRequestHandler)10 MessageDialog (com.googlecode.wicket.jquery.ui.widget.dialog.MessageDialog)6 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)5 NonClosableMessageDialog (org.apache.openmeetings.web.util.NonClosableMessageDialog)3 JQueryBehavior (com.googlecode.wicket.jquery.core.JQueryBehavior)2 Room (org.apache.openmeetings.db.entity.room.Room)2 PrivateMessage (org.apache.openmeetings.db.entity.user.PrivateMessage)2 Component (org.apache.wicket.Component)2 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)2 EmptyPanel (org.apache.wicket.markup.html.panel.EmptyPanel)2 JSONObject (com.github.openjson.JSONObject)1 Droppable (com.googlecode.wicket.jquery.ui.interaction.droppable.Droppable)1 WysiwygEditor (com.googlecode.wicket.jquery.ui.plugins.wysiwyg.WysiwygEditor)1 DefaultWysiwygToolbar (com.googlecode.wicket.jquery.ui.plugins.wysiwyg.toolbar.DefaultWysiwygToolbar)1 Calendar (java.util.Calendar)1 FastDateFormat (org.apache.commons.lang3.time.FastDateFormat)1 StrongPasswordValidator (org.apache.openmeetings.core.util.StrongPasswordValidator)1 IWsClient (org.apache.openmeetings.db.entity.basic.IWsClient)1 WsClient (org.apache.openmeetings.db.entity.basic.WsClient)1