Examples of FlowPanel


Examples of com.google.gwt.user.client.ui.FlowPanel

        super(wizard, Console.CONSTANTS.patch_manager_conflict_title());
    }

    @Override
    protected IsWidget body(final ApplyContext context) {
        FlowPanel body = new FlowPanel();
        body.add(new HTML(TEMPLATES.errorPanel(Console.CONSTANTS.patch_manager_conflict_body())));

        errorDetails = new ErrorDetails(Console.CONSTANTS.patch_manager_show_details(),
                Console.CONSTANTS.patch_manager_hide_details());
        body.add(errorDetails);

        body.add(new HTML("<h3 class=\"patch-followup-header\">" + Console.CONSTANTS
                .patch_manager_possible_actions() + "</h3>"));
        HTMLPanel actions = new HTMLPanel(TEMPLATES
                .patchConflicts(Console.CONSTANTS.patch_manager_conflict_cancel_title(),
                        Console.CONSTANTS.patch_manager_conflict_cancel_body(),
                        Console.MESSAGES.patch_manager_conflict_override_title(),
                        Console.CONSTANTS.patch_manager_conflict_override_body()));
        CheckBox overrideCheck = new CheckBox(Console.CONSTANTS.patch_manager_conflict_override_check());
        overrideCheck.getElement().setId(asId(PREFIX, getClass(), "_Override"));
        overrideCheck.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
            @Override
            public void onValueChange(final ValueChangeEvent<Boolean> event) {
                setEnabled(event.getValue(), true);
            }
        });
        actions.add(overrideCheck, "patch-conflict-override");
        body.add(actions);

        return body;
    }
View Full Code Here

Examples of com.google.gwt.user.client.ui.FlowPanel

        super(wizard, Console.CONSTANTS.patch_manager_rollback_confirm_title());
    }

    @Override
    protected IsWidget body(final RollbackContext context) {
        FlowPanel body = new FlowPanel();
        Label confirmLabel = new Label(Console.CONSTANTS.patch_manager_rollback_confirm_body());
        confirmLabel.getElement().getStyle().setMarginBottom(1, EM);
        body.add(confirmLabel);

        resetConfiguration = new Label("");
        body.add(resetConfiguration);
        overrideAll = new Label("");
        overrideAll.getElement().getStyle().setMarginBottom(1, EM);
        body.add(overrideAll);

        form = new Form<PatchInfo>(PatchInfo.class);
        form.setEnabled(false);
        TextItem id = new TextItem("id", "ID");
        TextItem version = new TextItem("version", "Version");
        TextItem date = new TextItem("appliedAt", Console.CONSTANTS.patch_manager_applied_at());
        Map<PatchType, String> values = new HashMap<PatchType, String>();
        values.put(CUMULATIVE, CUMULATIVE.label());
        values.put(ONE_OFF, ONE_OFF.label());
        EnumFormItem<PatchType> type = new EnumFormItem<PatchType>("type", Console.CONSTANTS.common_label_type());
        type.setValues(values);
        form.setFields(id, version, date, type);
        body.add(form);

        return body;
    }
View Full Code Here

Examples of com.google.gwt.user.client.ui.FlowPanel

        super(presenter, context, title);

        addStep(STOP_SERVERS, new StopServersStep<RollbackContext, RollbackState>(this) {
            @Override
            protected IsWidget intro(RollbackContext context) {
                FlowPanel panel = new FlowPanel();
                panel.add(new Label(Console.MESSAGES.patch_manager_stop_server_body(context.host)));
                panel.add(new HTML("<h3 class=\"patch-followup-header\">" + Console.CONSTANTS
                        .patch_manager_stop_server_question_for_rollback() + "</h3>"));
                return panel;
            }
        });
        addStep(STOPPING, new StoppingServersStep<RollbackContext, RollbackState>(this, dispatcher));
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.