Package org.apache.ecs.html

Examples of org.apache.ecs.html.TD.addElement()


                        .addElement(text);
                    String menuScriptName = MENU_NAME_BASE + tab;
                    linkElement.setOnClick("return openMenu(" + menuScriptName + ")");
                    menuCell.addElement(menuTitle.addElement(linkElement));
                } else
                    menuCell.addElement(menuTitle.addElement(text).setColor(DISABLED_COLOR));

                menuRow.addElement(menuCell);
            }
            menuTable.addElement(menuRow).setWidth(tableWidth + 2); // Don't ask me where the '+2'
                                                                    // comes from, but the last
View Full Code Here


                                int componentType,
                                LabelResource labels) {
        TD cell = new TD();
        if(component != null) {

            cell.addElement(component.getName());

            // Insert Component Editor ('Edit') button if the component supports configuration GUI
            if(component instanceof GUIConfigurationIF) {

                try {
View Full Code Here

                    Input editButton = new Input(Input.BUTTON, ("eb" + componentType),
                                     labels.getLabel("edit"));
                    editButton.setOnClick("document.location='" +
                                  "EditComponent?" + compIdParameter + "&" +
                                  dataIdParameter + "'");
                    cell.addElement(Entities.NBSP).addElement(editButton);
                } catch(UnsupportedEncodingException e) {
                    throw new RuntimeException(
                        "Internal error: Unable to encode servlet parameters with "
                                + PARAMETER_ENCODING);
                }
View Full Code Here

                                + PARAMETER_ENCODING);
                }
            }

            // Add a Delete button
            cell.addElement(new BR()).addElement(getComponentDeleteButton(componentType, labels));

        } else {
            cell.addElement(getNewComponentSelect(
                pers,
                componentType,
View Full Code Here

            // Add a Delete button
            cell.addElement(new BR()).addElement(getComponentDeleteButton(componentType, labels));

        } else {
            cell.addElement(getNewComponentSelect(
                pers,
                componentType,
                labels.getLabel("create"),
                labels.getLocale()));
        }
View Full Code Here

        TD cell = new TD();

        switch(componentType) {

        case PipeComponentIF.TYPE_SOURCE:
            cell.addElement(new B(labels.getLabel("source_component_unloadable")));
            break;

        case PipeComponentIF.TYPE_DESTINATION:
            cell.addElement(new B(labels.getLabel("destination_component_unloadable")));
            break;
View Full Code Here

        case PipeComponentIF.TYPE_SOURCE:
            cell.addElement(new B(labels.getLabel("source_component_unloadable")));
            break;

        case PipeComponentIF.TYPE_DESTINATION:
            cell.addElement(new B(labels.getLabel("destination_component_unloadable")));
            break;

        }

        cell.addElement(new BR());
View Full Code Here

            cell.addElement(new B(labels.getLabel("destination_component_unloadable")));
            break;

        }

        cell.addElement(new BR());
        cell.addElement(componentName);

        // Add a Delete button
        cell.addElement(new BR()).addElement(getComponentDeleteButton(componentType, labels));
        return cell;
View Full Code Here

            break;

        }

        cell.addElement(new BR());
        cell.addElement(componentName);

        // Add a Delete button
        cell.addElement(new BR()).addElement(getComponentDeleteButton(componentType, labels));
        return cell;
    }
View Full Code Here

        cell.addElement(new BR());
        cell.addElement(componentName);

        // Add a Delete button
        cell.addElement(new BR()).addElement(getComponentDeleteButton(componentType, labels));
        return cell;
    }

    private ElementContainer getNewComponentSelect(Persister pers,
                                                   int componentType,
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.