Examples of AnchorLayoutData


Examples of com.gwtext.client.widgets.layout.AnchorLayoutData

            public void onClick(Button button, EventObject e) {
                window.close();
            }
        });

        formPanel.add(txtLabel, new AnchorLayoutData("100%"));
        formPanel.add(txtCode, new AnchorLayoutData("100%"));
        formPanel.add(txtSource, new AnchorLayoutData("100%"));
        formPanel.add(txtURL, new AnchorLayoutData("100%"));
        formPanel.add(verticalSpacer);

        wrappingPanel.add(null, new AnchorLayoutData("100% 170"));

        FormPanel formPanelBottom = new FormPanel();
        TextField dummyField = new TextField(); //we need to add this to the bottom formPanel
        //because otherwise we are not allowed to add buttons to it
        dummyField.setVisible(false);
        formPanelBottom.add(dummyField);
        formPanelBottom.addButton(btnCreate);
        formPanelBottom.addButton(btnCancel);

        panel.add(formPanel, new AnchorLayoutData("100% 150"));
        panel.add(wrappingPanel, new AnchorLayoutData("100% 170"));
        panel.add(formPanelBottom, new AnchorLayoutData("100% 20"));
        window.add(panel);
        window.show();
    }
View Full Code Here

Examples of com.gwtext.client.widgets.layout.AnchorLayoutData

        setPaddings(5, 7, 0, 0);
        setAutoScroll(true);

        Label title = new Label("CREATE NEW CATEGORY");
        title.setStylePrimaryName("hierarchy-title");
        add(title, new AnchorLayoutData("98%"));

        HTML explanationHtml = new HTML("Please enter a <b>title</b> and a sorting label (optional) for the new category.<br />" +
                "Select one or more <b>parents</b> for the category by clicking on the &nbsp <img src=\"../images/add.png\"></img> &nbsp icon in the <i>Parents</i> field.<br />" +
                "Operations are performed only after clicking on the <i>Create</i> button.");
        explanationHtml.setStylePrimaryName("explanation");
        add(explanationHtml);

        titleField = new TextField("Title", "name");
        titleField.setAllowBlank(false);
        titleField.setEmptyText("Enter title of new category");
        titleField.addListener(new TextFieldListenerAdapter() {
            @Override
            public void onValid(Field field) {
                onTitleChange(titleField.getValueAsString());
            }
        });
        add(titleField, new AnchorLayoutData("98%"));

        sortingLabelField = new TextField("Sorting label", "code");
        sortingLabelField.setAllowBlank(false);
        add(sortingLabelField, new AnchorLayoutData("98%"));

        //FIXME: ICD specific!!!!
       
        parentsField = new ClassSelectionField(projectId, "Parent(s)", true, topClass);

        add(parentsField, new AnchorLayoutData("98%"));

        reasonField = new TextAreaField();
        reasonField.setLabel("Reason for change:");
        ((TextArea)reasonField.getFieldComponent()).setHeight(60);
        add(reasonField, new AnchorLayoutData("98%"));

        HTML explanation2Html = new HTML("<b>Before creating a new category, please search for the term to ensure that you are not creating duplicates.</b><br />" +
            "After you typed 4 characters in the Title field, automatic searches will show you possible matches.");
        explanation2Html.setStylePrimaryName("explanation");
        add(explanation2Html);

        add(new HTML("<b>Possible duplicate categories:</b>"));

        searchGridPanel = new SearchUtil(projectId, searchDblClickSelectable).getSearchGridPanel();
        searchGridPanel.setHeight(160);
        add(searchGridPanel, new AnchorLayoutData("98%"));

        Button createButton = new Button("Create");
        createButton.addListener(new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
View Full Code Here

Examples of com.gwtext.client.widgets.layout.AnchorLayoutData

        inviteePanelFlexTable.setWidget(1, 0, inviteMoreHTML);
        inviteePanelFlexTable.setWidget(2, 0, sendInvitationButton);
        inviteePanelFlexTable.getFlexCellFormatter().setAlignment(2, 0, HasAlignment.ALIGN_CENTER,
                HasAlignment.ALIGN_MIDDLE);

        panel.add(inviteePanelFlexTable, new AnchorLayoutData("-100 30%"));

        invitationWindow.setWidth("380px");
        invitationWindow.setHeight("250px");
        invitationWindow.add(panel);
        invitationWindow.setPaddings(10);
View Full Code Here

Examples of com.gwtext.client.widgets.layout.AnchorLayoutData

           * seems that calls to setSize are ignored. Also, if you enter 100% for
           * the height in the AnchorLayoutData, the grid draws outside the bottom
           * of the containing portlet. I could only get this to work by
           * specifying a negative pixel value for the height.
           */
        main.add(grid, new AnchorLayoutData("100% -75"));
        add(main);
    }
View Full Code Here

Examples of com.gwtext.client.widgets.layout.AnchorLayoutData

        field = createField();
        deleteLink = createDeleteHyperlink();
        commentLink = createCommentHyperLink();

        FormPanel formPanel = new FormPanel();
        formPanel.add(field, new AnchorLayoutData("100%"));

        wrappingPanel.add(formPanel, new ColumnLayoutData(1));

        Collection<Widget> suffixComponents = createSuffixComponents();
        for (Widget widget : suffixComponents) {
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.