Package com.gwtext.client.widgets.layout

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


        panel.setPaddings(15);
        panel.setCls("loginpanel");
        panel.setLayout(new FitLayout());
        win.setLayout(new FitLayout());

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

        win.setTitle("Edit Profile");
        win.setClosable(true);
        win.setWidth(408);
        win.setHeight(400);
View Full Code Here


        bodyField = new HtmlEditor("Body");
        bodyField.setHeight(200);
        bodyField.setCls("html-editor");

        add(subjectField, new AnchorLayoutData("100%"));
        add(bodyField, new AnchorLayoutData("100%"));
    }
View Full Code Here

        };

        generalPanel.setTitle("General");
        generalPanel.setPaddings(10);

        generalPanel.add(isControllingPortletCheckbox, new AnchorLayoutData("100%"));
        return generalPanel;
    }
View Full Code Here

    private void buildUI() {
        setHeight(400);

        Label title = new Label("RETIRE CLASS");
        title.setStylePrimaryName("hierarchy-title");
        add(title, new AnchorLayoutData("100% - 53"));

        HTML explanationHtml = new HTML("Please select one or several <b>classes to retire</b> by clicking on " +
            "the &nbsp <img src=\"../images/add.png\"></img> &nbsp icon in the <i>Classes to retire</i> field.<br />" +
            "If the retired class has children, you have the option <b>to retire also all the children</b>, or <b>to move the children under a different parent</b>. " +
            "Retired classes are not displayed in the class hierarchy.<br />" +
            "Operations are performed after clicking on the <i>Retire</i> button.");
        explanationHtml.setStylePrimaryName("explanation");
        add(explanationHtml);

        retiredClassesField = new ClassSelectionField(projectId, "Class(es) to retire");
        add(retiredClassesField, new AnchorLayoutData("100% - 53"));

        retireChildrenCheckbox = new Checkbox("Retire also all children of the selected class(es).");
        add(retireChildrenCheckbox, new AnchorLayoutData("100% - 53"));
        retireChildrenCheckbox.addListener(new CheckboxListenerAdapter() {
            @Override
            public void onCheck(Checkbox field, boolean checked) {
                newParentField.setDisabled(checked);
            }
        });

        newParentField = new ClassSelectionField(projectId, "New parent class of the children", false, null);
        add(newParentField, new AnchorLayoutData("100% - 53"));

        reasonField = new TextAreaField();
        reasonField.setLabel("Reason for change:");
        ((TextArea)reasonField.getFieldComponent()).setHeight(120);
        add(reasonField, new AnchorLayoutData("100% - 53"));

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

        panel.setCls("loginpanel");
        panel.setLayout(new FitLayout());

        win.setLayout(new FitLayout());

        panel.add(topLoginTable, new AnchorLayoutData("-100 30%"));
        win.setTitle("Sign in");
        win.setClosable(true);
        win.setClosable(true);
        win.setPaddings(7);
        win.setCloseAction(Window.HIDE);
View Full Code Here

    private void buildUI() {
        setHeight(430);

        Label title = new Label("CHANGE PARENTS (add or remove parents, move in hierarchy)");
        title.setStylePrimaryName("hierarchy-title");
        add(title, new AnchorLayoutData("100% - 53"));

        HTML explanationHtml = new HTML("Please select a class that you want to move in the hierarchy.<br />" +
                "Then <b>add</b> or <b>remove parents</b> in the <i>Parents</i> field.<br />" +
                "Operations are performed only after clicking on the <i>Move in hierarchy</i> button." );
        explanationHtml.setStylePrimaryName("explanation");
        add(explanationHtml);

        classField = new ClassSelectionField(projectId, "Class to move in hierarchy", false, topClass);
        add(classField, new AnchorLayoutData("100% - 53"));
        classField.addSelectionListener(selectionListener = new SelectionListener() {
            public void selectionChanged(SelectionEvent event) {
                parentsPanel.setClsEntity(UIUtil.getFirstItem(classField.getClsValues()));
            }
        });


        parentsPanel = new ParentsPanel(projectId);
        add(parentsPanel,  new AnchorLayoutData("100% - 53"));

        reasonField = new TextAreaField();
        reasonField.setLabel("Reason for change:");
        ((TextArea)reasonField.getFieldComponent()).setHeight(120);
        add(reasonField, new AnchorLayoutData("100% - 53"));

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

            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

        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

        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

           * 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

TOP

Related Classes of com.gwtext.client.widgets.layout.AnchorLayoutData

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.