Package nextapp.echo2.app

Examples of nextapp.echo2.app.Alignment


        this.setStyleName("Default");
        this.setText(title);
        this.setWidth(new JbsExtent(100, JbsExtent.PERCENT));
        //this.setHeight(new (48, .PX));
        this.setStdColor(this.getBackground());
        this.setAlignment(new Alignment(Alignment.LEFT, Alignment.CENTER));
    }
View Full Code Here


    }

    protected JbsContentPane initPnButtons() {
        pnButtons = new JbsContentPane();
        Row mainRow = new Row();
        mainRow.setAlignment(new Alignment(Alignment.RIGHT, Alignment.DEFAULT));
        mainRow.setInsets(new Insets(new JbsExtent(5), new JbsExtent(5)));

        btnOK = new JbsButton(JbsL10N.getString("Generic.ok"));
        btnOK.setAlignmentHorizontal(Alignment.CENTER);
        btnOK.setWidth(new JbsExtent(80));
View Full Code Here

                default :
                    align = Alignment.LEFT;
            }
           
            TableLayoutData layoutData = (TableLayoutData)((Label)component).getLayoutData();
            layoutData.setAlignment(new Alignment(align, Alignment.CENTER));
            ((Label)component).setLayoutData(layoutData);
        }
        return component;
    }
View Full Code Here

        ks.addActionListener(this);
        topRow.add(ks);

        ButtonPanel buttonPanel = new ButtonPanel();
        ColumnLayoutData buttonPanelLayout = new ColumnLayoutData();
        buttonPanelLayout.setAlignment(new Alignment(Alignment.CENTER, Alignment.TOP));
        buttonPanel.setLayoutData(buttonPanelLayout);
        for (int i = 0; i < buttons.size(); i++) {
            buttonPanel.add((AbstractButton) buttons.get(i));
        }
View Full Code Here

  protected void initPane() {
    Column colMain = new Column();
    colMain.add(this.getLbCompanies());

    Row rowButtons = new Row();
    rowButtons.setAlignment(new Alignment(Alignment.RIGHT,Alignment.TOP));
    rowButtons.add(this.getBtnAdd());
    rowButtons.add(this.getBtnDelete());
    colMain.add(rowButtons);
   
    KeyStrokeListener ks = new KeyStrokeListener();
View Full Code Here

    protected void initPane() {
        Column colMain = new Column();
        colMain.add(this.getLbUserGroups());

        Row rowButtons = new Row();
        rowButtons.setAlignment(new Alignment(Alignment.RIGHT, Alignment.TOP));
        rowButtons.add(this.getBtnAdd());
        rowButtons.add(this.getBtnDelete());
        colMain.add(rowButtons);

        KeyStrokeListener ks = new KeyStrokeListener();
View Full Code Here

        this.add(colMain);
    }
   
    protected void createPnSummary() {
        GridLayoutData layoutData = new GridLayoutData();
        layoutData.setAlignment(new Alignment(Alignment.RIGHT, Alignment.CENTER));

        grdSummary = new JbsGrid(2);
        grdSummary.setInsets(new Insets(5, 5));
        grdSummary.setColumnWidth(0, new JbsExtent(300));
   
View Full Code Here

    }
   
    protected ContentPane createPnButtons() {
        pnButtons = new ContentPane();
        Row mainRow = new Row();
        mainRow.setAlignment(new Alignment(Alignment.RIGHT, Alignment.DEFAULT));
        mainRow.setInsets(new Insets(new JbsExtent(11), new JbsExtent(11)));
       
        btnPrevious = new JbsButton(this.getPreviousCaption());
        btnPrevious.setAlignmentHorizontal(Alignment.CENTER);
        btnPrevious.setWidth(new JbsExtent(80));
View Full Code Here

                    align = Alignment.RIGHT;
                    break;
                default:
                    align = Alignment.LEFT;
            }
            layoutData.setAlignment(new Alignment(align, Alignment.CENTER));
            label.setLayoutData(layoutData);
            return label;
        }
View Full Code Here

    }

    protected ContentPane initPnButtons() {
        pnButtons = new ContentPane();
        Row mainRow = new Row();
        mainRow.setAlignment(new Alignment(Alignment.CENTER, Alignment.DEFAULT));
        mainRow.setInsets(new Insets(new JbsExtent(5), new JbsExtent(5)));

        btnOK = new JbsButton(JbsL10N.getString("Generic.ok"));
        btnOK.setAlignmentHorizontal(Alignment.CENTER);
        btnOK.setWidth(new JbsExtent(80));
View Full Code Here

TOP

Related Classes of nextapp.echo2.app.Alignment

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.