Example usage for org.apache.wicket.core.request.handler IPartialPageRequestHandler add

List of usage examples for org.apache.wicket.core.request.handler IPartialPageRequestHandler add

Introduction

In this page you can find the example usage for org.apache.wicket.core.request.handler IPartialPageRequestHandler add.

Prototype

void add(final Component component, final String markupId);

Source Link

Document

Adds a component to the list of components to be rendered

Usage

From source file:org.apache.openmeetings.web.common.Captcha.java

License:Apache License

public Image refresh(IPartialPageRequestHandler handler) {
    captchaImageResource.invalidate();//ww w. ja va  2 s.com
    captchaText.setModelObject("");
    if (handler != null) {
        handler.add(captchaText, captcha);
    }
    return captcha;
}

From source file:org.apache.openmeetings.web.common.tree.FileTreePanel.java

License:Apache License

public void update(IPartialPageRequestHandler handler) {
    updateSizes();
    handler.add(sizes, trees);
}

From source file:org.apache.openmeetings.web.room.RoomPanel.java

License:Apache License

@Override
public void cleanup(IPartialPageRequestHandler handler) {
    if (eventDetail instanceof EventDetailDialog) {
        ((EventDetailDialog) eventDetail).close(handler, null);
    }/*from  w w  w .  ja  va 2s  .c om*/
    handler.add(getBasePage().getHeader().setVisible(true), getMainPanel().getTopControls().setVisible(true));
    if (r.isHidden(RoomElement.Chat)) {
        getMainPanel().getChat().toggle(handler, true);
    }
    handler.appendJavaScript("if (typeof(Room) !== 'undefined') { Room.unload(); }");
    cm.exitRoom(getClient());
    getMainPanel().getChat().roomExit(r, handler);
}

From source file:org.apache.openmeetings.web.room.sidebar.UploadDialog.java

License:Apache License

@Override
protected void onOpen(IPartialPageRequestHandler handler) {
    super.onOpen(handler);
    upload.setEnabled(true, handler);/*w w  w . ja  v a 2 s  .  co m*/
    uploadField.setModelObject(new ArrayList<>());
    handler.add(form, fileName);
    handler.appendJavaScript(
            String.format("bindUpload('%s', '%s');", form.getMarkupId(), fileName.getMarkupId()));
}