Examples of AnchorLayoutData


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

    MultiFieldPanel multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_street(), "street" ),
        new ColumnLayoutData( 0.5 ) );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_street2(), "street2" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );

    multiPanel = new MultiFieldPanel();
    TextField zip = new TextField( TextProvider.get().contact_window_label_zipcode() + " / "
        + TextProvider.get().contact_window_label_city(), "zipcode" );
    zip.setWidth( 70 );
    multiPanel.addToRow( zip, DEFAULT_LABEL_WIDTH + 80 );
    TextField city = new TextField( TextProvider.get().contact_window_label_city(), "city", 127 );
    city.setHideLabel( true );
    multiPanel.addToRow( city, 127 );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_state(), "state" ),
        new ColumnLayoutData( 1 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );

    multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_country(), "country" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
    formPanel.add( fieldset );

    return formPanel;
  }
View Full Code Here

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

    MultiFieldPanel multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_street(), "street" ),
        new ColumnLayoutData( 0.5 ) );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_street2(), "street2" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );

    multiPanel = new MultiFieldPanel();
    TextField zip = new TextField( TextProvider.get().contact_window_label_zipcode() + " / "
        + TextProvider.get().contact_window_label_city(), "zipcode" );
    zip.setWidth( 70 );
    multiPanel.addToRow( zip, DEFAULT_LABEL_WIDTH + 80 );
    TextField city = new TextField( TextProvider.get().contact_window_label_city(), "city", 127 );
    city.setHideLabel( true );
    multiPanel.addToRow( city, 127 );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_state(), "state" ),
        new ColumnLayoutData( 1 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );

    multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_country(), "country" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
    formPanel.add( fieldset );

    return formPanel;
  }
View Full Code Here

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

    MultiFieldPanel multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_custom1(), "custom1" ),
        new ColumnLayoutData( 0.5 ) );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_custom2(), "custom2" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );

    multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_custom3(), "custom3" ),
        new ColumnLayoutData( 0.5 ) );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_custom4(), "custom4" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
    formPanel.add( fieldset );

    TextArea editor = new TextArea( TextProvider.get().contact_window_label_notice(), "notice" );
    editor.setHideLabel( true );
    editor.setWidth( DEFAULT_FIELDSET_WIDTH );
View Full Code Here

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

                window.close(); // TODO: cancel existing search
                window.destroy();
            }
        });

        panel.add(searchGrid, new AnchorLayoutData("100% 100%"));
        panel.addButton(showInTreeButton);
        panel.addButton(closeButton);

        window.add(panel);
View Full Code Here

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

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

        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

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

        };

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

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

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

    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

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

        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

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

    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
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.