Package nextapp.echo2.app

Examples of nextapp.echo2.app.Row


        JbsLabel label = new JbsLabel(str);
        colMain.add(label);
    }
   
    public void addBlankLine() {
        Row row = new Row();
        ColumnLayoutData layout = new ColumnLayoutData();
        layout.setHeight(new JbsExtent(15,JbsExtent.PX));
        row.setLayoutData(layout);
        colMain.add(row);
    }
View Full Code Here


    protected void initForm() {
        super.initForm();

        ButtonGroup radioGroup = new ButtonGroup();
        Column colMain = new Column();
        Row row1 = new Row();
        row1.setAlignment(Alignment.ALIGN_TOP);
        rbNoDate = new JbsRadioButton();
        rbNoDate.setText(JbsL10N.getString("FmSelectDate.noDate"));
        rbNoDate.setGroup(radioGroup);
        row1.add(rbNoDate);
        colMain.add(row1);
        Row row2 = new Row();
        row2.setAlignment(Alignment.ALIGN_TOP);
        rbDate = new JbsRadioButton();
        rbDate.setText(JbsL10N.getString("FmSelectDate.selectDate") + ":");
        rbDate.setGroup(radioGroup);
        row2.add(rbDate);
        colMain.add(row2);
        //Row row3 = new Row();
        dtMain = new DateChooser();
        row2.add(dtMain);
        //colMain.add(row3);
        this.getPnMain().add(colMain);
    }
View Full Code Here

        textField = new JbsTextField();

        this.getTextField().setDisabledBackground(this.getTextField().getBackground());
        this.getTextField().setDisabledForeground(this.getTextField().getForeground());

        Row row = new Row();
        row.add(textField);
        row.add(btnSelect);
        this.add(row);
    }
View Full Code Here

                }
            });
        }


        Row topRow = new Row();
        topRow.setCellSpacing(new JbsExtent(DIALOG_INSETS));
        topRow.add(iconLabel);
        topRow.add(messageColumn);

        KeyStrokeListener ks = new KeyStrokeListener();

        ArrayList<JbsButton> buttons = new ArrayList<JbsButton>();

        if (optionType == DEFAULT_OPTION) {
            buttons.add(defaultButton = createButton(JbsL10N.getString("Generic.ok"), OK_OPTION));
            ks.addKeyCombination(KeyStrokeListener.VK_RETURN, OK_OPTION);
        } else if (optionType == YES_NO_OPTION) {
            buttons.add(defaultButton = createButton(JbsL10N.getString("Generic.yes"), YES_OPTION));
            ks.addKeyCombination(KeyStrokeListener.VK_RETURN, YES_OPTION);
            buttons.add(createButton(JbsL10N.getString("Generic.no"), NO_OPTION));
            ks.addKeyCombination(KeyStrokeListener.VK_ESCAPE, NO_OPTION);
        } else if (optionType == YES_NO_CANCEL_OPTION) {
            buttons.add(defaultButton = createButton(JbsL10N.getString("Generic.yes"), YES_OPTION));
            ks.addKeyCombination(KeyStrokeListener.VK_RETURN, YES_OPTION);
            buttons.add(createButton(JbsL10N.getString("Generic.no"), NO_OPTION));
            buttons.add(createButton(JbsL10N.getString("Generic.cancel"), CANCEL_OPTION));
            ks.addKeyCombination(KeyStrokeListener.VK_ESCAPE, CANCEL_OPTION);
        } else if (optionType == OK_CANCEL_OPTION) {
            buttons.add(defaultButton = createButton(JbsL10N.getString("Generic.ok"), OK_OPTION));
            ks.addKeyCombination(KeyStrokeListener.VK_RETURN, OK_OPTION);
            buttons.add(createButton(JbsL10N.getString("Generic.cancel"), CANCEL_OPTION));
            ks.addKeyCombination(KeyStrokeListener.VK_ESCAPE, CANCEL_OPTION);
        }
       
        if (btnDetails!=null)
            buttons.add(btnDetails);
       
        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);
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();
    ks.addKeyCombination(KeyStrokeListener.VK_INSERT,"INSERT");
    ks.addKeyCombination(KeyStrokeListener.VK_DELETE,"DELETE");
    ks.addActionListener(new ActionListener() {

      private static final long serialVersionUID = 1L;

      public void actionPerformed(ActionEvent arg0) {
        if (arg0.getActionCommand().equals("INSERT"))
          addCompany();
        else if (arg0.getActionCommand().equals("DELETE"))
          deleteCompany();
      }
     
    });
    rowButtons.add(ks);
   

    this.add(colMain);
  }
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();
        ks.addKeyCombination(KeyStrokeListener.VK_INSERT, "INSERT");
        ks.addKeyCombination(KeyStrokeListener.VK_DELETE, "DELETE");
        ks.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                if (arg0.getActionCommand().equals("INSERT")) {
                    addGroup();
                } else if (arg0.getActionCommand().equals("DELETE")) {
                    deleteGroup();
                }
            }
        });
        rowButtons.add(ks);


        this.add(colMain);
    }
View Full Code Here

       
        ContainerEx pnDummy = new ContainerEx();
        pnDummy.setHeight(new JbsExtent(80));
        colMain.add(pnDummy);
       
        rowMain = new Row();
        rowMain.setAlignment(Alignment.ALIGN_CENTER);
       
        Column colLeft = new Column();
        ResourceImageReference imgGrayDonkey = new ResourceImageReference(Styles.IMAGE_PATH + "openjbs_logo_text.png");       
        Label lbGrayDonkey  = new Label(imgGrayDonkey);
        //rowMain.add(lbGrayDonkey);
        colLeft.add(lbGrayDonkey);
       
        Row rowVersion = new Row();
        rowVersion.setAlignment(Alignment.ALIGN_RIGHT);
        rowVersion.add(new Label("Version 0.91 Beta"));
        colLeft.add(rowVersion);
        rowMain.add(colLeft);
       
        ResourceImageReference imgLineLogin = new ResourceImageReference(Styles.IMAGE_PATH + "line_login.png");       
        Label lbLineLogin  = new Label(imgLineLogin);
View Full Code Here

    @Override
    protected void createColumn() {
        super.createColumn();
       
        Row row1 = new Row();
        row1.setCellSpacing(new JbsExtent(5));

        row1.add(lblKnowledgeText);
        txText.setWidth(new JbsExtent(100, JbsExtent.PERCENT));
        row1.add(txText);

        row1.add(this.getBtnInsert());
        this.getBtnInsert().setWidth(new JbsExtent(20));
        this.getBtnInsert().setAlignmentHorizontal(Alignment.CENTER);
        row1.add(this.getBtnRemove());
        this.getBtnRemove().setWidth(new JbsExtent(20));
        this.getBtnRemove().setAlignmentHorizontal(Alignment.CENTER);

        this.getColumn().add(row1);
    }
View Full Code Here

        this.setPageIndex(0);
    }
   
    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));
        btnPrevious.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                previousPage();
            }
        });
        mainRow.add(btnPrevious);

        btnNext = new JbsButton(this.getNextCaption());
        btnNext.setAlignmentHorizontal(Alignment.CENTER);
        btnNext.setWidth(new JbsExtent(80));
        btnNext.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                nextPage();
            }
        });
        mainRow.add(btnNext);


        mainRow.add(this.getKeystrokeListener());
        pnButtons.add(mainRow);
        return pnButtons;
    }
View Full Code Here

        this.getBtnRemove().setWidth(new JbsExtent(20));
        this.getBtnRemove().setAlignmentHorizontal(Alignment.CENTER);
        this.getColumn().add(row1);
         */
       
        Row row1= new Row();
        row1.setCellSpacing(new JbsExtent(5));
       
        JbsGrid grdMain = new JbsGrid(2);
        grdMain.setColumnWidth(0, new JbsExtent(40));
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.jobGroup")));
        grdMain.add(selJobGroup);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.from")));
        grdMain.add(txFrom);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.to")));
        grdMain.add(txTo);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.job")));
        grdMain.add(txJobName);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.company")));
        grdMain.add(txCompanyName);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.place")));
        grdMain.add(txWhere);
        row1.add(grdMain);
       
        row1.add(this.getBtnInsert());
        this.getBtnInsert().setWidth(new JbsExtent(20));
        this.getBtnInsert().setAlignmentHorizontal(Alignment.CENTER);
        row1.add(this.getBtnRemove());
        this.getBtnRemove().setWidth(new JbsExtent(20));
        this.getBtnRemove().setAlignmentHorizontal(Alignment.CENTER);
       
       
        this.getColumn().add(row1);
View Full Code Here

TOP

Related Classes of nextapp.echo2.app.Row

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.