Package org.apache.ecs.html

Examples of org.apache.ecs.html.Input


        for(Iterator i = componentImplChoices.iterator(); i.hasNext();) {
            PipeComponentIF impl = (PipeComponentIF) i.next();
            implSelect.addElement(new Option(impl.getID()).addElement(impl.getName()));
        }

        Input createButton = new Input(Input.BUTTON, "cb", createButtonText);
        createButton.setOnClick("document.forms[0]." + CREATE_COMPONENT_OF_TYPE + ".value="
                + componentType + ";document.forms[0].action.value=" + ACTION_OK
                + ";document.forms[0].submit()");

        return new ElementContainer().addElement(implSelect).addElement(Entities.NBSP).addElement(
            createButton);
View Full Code Here


            }


            // Create a back button to the Pipe Editor
            Long pipeId = (Long) session.getAttribute(PIPE_ID_SESSION_KEY);
            Input backButton = new Input(Input.BUTTON,
                             "bb", labels.getLabel("back_to_pipe_editor"));
            backButton.setOnClick("document.location='EditPipe?pipeid=" + pipeId + "'");
           
            Form form = getFormWithCustomButton("EditComponent",
                                  guiHtml, backButton, labels, false, true);

            // Insert hidden fields carrying component and data IDs
View Full Code Here

    if (requestType == POST_REQUEST && parameters.getInt(ACTION) == 1) {
      pers.deleteAllPipeExecutionRequests(null);
    }

    Input clearQueueButton = new Input(Input.BUTTON, "clear_queue", labels
        .getLabel("clear_queue"));

    clearQueueButton.setOnClick("if(!confirm('"
        + Utils.escapeJavaScriptString(labels
            .getLabel("confirm_clearqueue"))
        + "')) return false; document.forms[0]." + ACTION
        + ".value=1;document.forms[0].submit();");

    Form form = getForm("PipeExecutionQueue", clearQueueButton.toString(),
        labels, false, false);
    form.addElement(new Input(Input.HIDDEN, ACTION, "0"));

    List entries = pers.getPipeExecutionRequests(null);

    TableTool tt = new TableTool();
    tt.setZebra(true);
View Full Code Here

        // See if buttons are to be added to the bottom of the tab
        if(hasCloseButton || hasSubmitAndCancelButtons ||
                (customButton != null)) {
            form.addElement(new HR());
            form.addElement(new Input(Input.HIDDEN, ACTION, "1"));

            TR buttonRow = new TR();
           
            if(customButton != null) {
                buttonRow.addElement(new TD().addElement(customButton));
            }

            if(hasCloseButton) {
                Input closeButton = new Input(Input.BUTTON, "clb", labels.getLabel("close_button"));
                closeButton.setOnClick("window.close()");
                buttonRow.addElement(new TD().addElement(closeButton));
            }

            //hmmm, might cause tr without a single td... is it bad?
            if(hasSubmitAndCancelButtons) {
                Input okButton = new Input(Input.BUTTON, "okb", labels.getLabel("ok_button"));
                okButton
                    .setOnClick("document.forms[0].action.value='1';document.forms[0].submit()");
                Input cancelButton = new Input(Input.BUTTON, "cancelb", labels
                    .getLabel("cancel_button"));
                cancelButton
                    .setOnClick("document.forms[0].action.value='0';document.forms[0].submit()");
                buttonRow.addElement(new TD()
                    .setAlign(AlignType.RIGHT)
                    .addElement(okButton)
                    .addElement(Entities.NBSP)
View Full Code Here

        }

        // ----------
        // New-button
        // ----------
        Input newButton = new Input(Input.BUTTON, "nwbttn", labels.getLabel("create"));
        newButton.setOnClick("addNewUser()");


        Form form = getFormWithCustomButton("Users", listField.getEditor(),
                            newButton, labels, false, true);
        form.addElement(new Input(Input.HIDDEN, NEW_USER_ID, ""));

        // Add Javascript alert box to display error message if a new user was created with
        // already existing login name
       
        String scriptString = new String("");
View Full Code Here

        Table table = new Table()
            .addElement(
                new TR().addElement(
                    new TD().setAlign(AlignType.RIGHT).addElement(new B("Database"))).addElement(
                    new TD().addElement(new Input(Input.TEXT, DATABASE,
                        Utils.htmlentities(database)).setSize(20))))
            .addElement(
                new TR()
                    .addElement(new TD().setAlign(AlignType.RIGHT).addElement(new B("User")))
                    .addElement(new TD().addElement(new Input(Input.TEXT, USER, "").setSize(20))))
            .addElement(
                new TR().addElement(
                    new TD().setAlign(AlignType.RIGHT).addElement(new B("Password"))).addElement(
                    new TD().addElement(new Input(Input.PASSWORD, PASSWORD, "").setSize(20))))
            .addElement(
                new TR().addElement(
                    new TD().setAlign(AlignType.RIGHT).addElement(new B("Language"))).addElement(
                    new TD().addElement(languageSelect)))
            .addElement(
                new TR().addElement(new TD().setColSpan(2).setAlign(AlignType.CENTER).addElement(
                    new HR()).addElement(new Input(Input.SUBMIT, "login", "Login"))));
        Body body = new Body().addElement(getBox("pics/tab/", new Form(
            "Login",
            Form.POST,
            Form.ENC_DEFAULT).addElement(table), "Smilehouse OpenSyncro Login"));
View Full Code Here

                tmp.setOnChange(onChange);
            secondSelect = tmp;
        }
        else
        {
            secondSelect = new Input(Input.hidden,
                    selName + SECOND_SUFFIX,
                    setSeconds);
        }

        if (onChangeSet)
View Full Code Here

        Select monthSelect = getMonthSelector(selName + MONTH_SUFFIX, useDate);
        ConcreteElement daySelect = null;
        if (!showDays)
        {
            daySelect = new Input(Input.hidden, selName + DAY_SUFFIX, setDay);
        }
        else
        {
            Select tmp = getDaySelector(selName + DAY_SUFFIX, useDate);
            if (onChangeSet)
View Full Code Here

        form = new Form(
            new TurbineURI(data,
                           TurbineConstants.SCREEN_DEFAULT_DEFAULT,
                           TurbineConstants.ACTION_LOGOUT_DEFAULT,
                           true).getRelativeLink(),
            Form.POST).addElement(new Input("SUBMIT", "Logout", "Logout"));

        ElementContainer body = new ElementContainer()
                .addElement(new HR().setSize(1).setNoShade(true))
                .addElement(
                    new B().addElement(
View Full Code Here

        Select monthSelect = getMonthSelector(selName + MONTH_SUFFIX, useDate);
        ConcreteElement daySelect = null;
        if (!showDays)
        {
            daySelect = new Input(Input.hidden, selName + DAY_SUFFIX, setDay);
        }
        else
        {
            Select tmp = getDaySelector(selName + DAY_SUFFIX, useDate);
            if (onChangeSet)
View Full Code Here

TOP

Related Classes of org.apache.ecs.html.Input

Copyright © 2018 www.massapicom. 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.