Package nextapp.echo2.app

Examples of nextapp.echo2.app.Row


   
    protected void drawPage() {
        colMain.add(lblTitle);
        colMain.add(lblDescription);
       
        Row row = new Row();
        ColumnLayoutData layout = new ColumnLayoutData();
        layout.setHeight(new JbsExtent(25,JbsExtent.PX));
        row.setLayoutData(layout);
        colMain.add(row);
               
        this.add(colMain);
    }
View Full Code Here


    }

    @Override
    protected void createColumn() {
        super.createColumn();
        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.from")));
        grdMain.add(txFrom);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.to")));
        grdMain.add(txTo);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.schoolName")));
        grdMain.add(txSchoolName);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.city")));
        grdMain.add(txWhere);
        grdMain.add(new JbsLabel(JbsL10N.getString("JobApplication.graduation")));
        grdMain.add(txGraduation);
        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

        super(title, width, height);
        this.setText(text);
    }
   
    public void addBlankLine() {
        Row row = new Row();
        ColumnLayoutData layout = new ColumnLayoutData();
        layout.setHeight(new JbsExtent(15,JbsExtent.PX));
        row.setLayoutData(layout);
        colText.add(row);
    }
View Full Code Here

        spMain.add(pnMain);
    }

    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));
        btnOK.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                postDialog();
            }

        });
        mainRow.add(btnOK);

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

    protected void initPanel() {
        SplitPane spMain = new SplitPane(SplitPane.ORIENTATION_VERTICAL, new JbsExtent(23));
        spMain.setSeparatorWidth(new JbsExtent(1, JbsExtent.PX));
        this.add(spMain);

        Row rowTitle = new Row();
        rowTitle.setStyleName("TitlePane");
        Label lblTitle = new Label("OpenJBS");
        lblTitle.setStyleName("TitleLabel.Main");
        rowTitle.add(lblTitle);

        lblModuleName = new Label("");
        lblModuleName.setStyleName("TitleLabel.Main");
        rowTitle.add(lblModuleName);
       
        spMain.add(rowTitle);

        pnModuleArea = new PnModuleArea();
View Full Code Here

        this.createControls();
        this.addControls();
    }
   
    protected void createControls() {
        this.setRowMain(new Row());
        this.setBtnSearch(new BtnToolbar("search.png"));
        this.getBtnSearch().addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                searchData();
View Full Code Here

        ChatSession.Message[] messages = app.getNewMessages();
        Label label;
       
        for (int i = 0; i < messages.length; ++i) {
            boolean announcement = messages[i].getUserName() == null;
            Row row = new Row();
           
            row.setStyleName(announcement ? "MessagePane.MessageRow.Announcement" : "MessagePane.MessageRow");
           
            label = new Label(dateFormat.format(messages[i].getDate()));
            label.setStyleName("MessagePane.DateLabel");
            row.add(label);

            if (announcement) {
                label =  new Label(messages[i].getContent());
                label.setStyleName("MessagePane.SystemMessageLabel");
                row.add(label);
            } else {
                label = new Label(messages[i].getUserName());
                label.setStyleName(userName.equals(messages[i].getUserName())
                        ? "MessagePane.UserNameLabel.Yourself" : "MessagePane.UserNameLabel.Other");
                row.add(label);
               
                label =  new Label(messages[i].getContent());
                row.add(label);
            }
           
            listColumn.add(row);
        }
       
View Full Code Here

        setModal(true);

        SplitPane splitPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL_BOTTOM_TOP, new Extent(32));
        add(splitPane);
       
        Row controlsRow = new Row();
        controlsRow.setStyleName("ControlPane");
        splitPane.add(controlsRow);

        Button button;
        switch (controlConfiguration) {
        case CONTROLS_OK:
            button = new Button(Messages.getString("Generic.Ok"), Styles.ICON_24_YES);
            button.setStyleName("ControlPane.Button");
            button.setActionCommand(COMMAND_OK);
            button.addActionListener(actionProcessor);
            controlsRow.add(button);
            break;
        case CONTROLS_YES_NO:
            button = new Button(Messages.getString("Generic.Yes"), Styles.ICON_24_YES);
            button.setStyleName("ControlPane.Button");
            button.setActionCommand(COMMAND_OK);
            button.addActionListener(actionProcessor);
            controlsRow.add(button);
            button = new Button(Messages.getString("Generic.No"), Styles.ICON_24_NO);
            button.setStyleName("ControlPane.Button");
            button.setActionCommand(COMMAND_CANCEL);
            button.addActionListener(actionProcessor);
            controlsRow.add(button);
            break;
        }
       
        Label contentLabel = new Label(message);
        contentLabel.setStyleName("MessageDialog.ContentLabel");
View Full Code Here

       
        SplitPane outerSplitPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM, new Extent(32));
        outerSplitPane.setStyleName("ChatScreen.SplitPane");
        add(outerSplitPane);
       
        Row controlsRow = new Row();
        controlsRow.setStyleName("ControlPane");
        outerSplitPane.add(controlsRow);
       
        Button logoutButton = new Button(Messages.getString("Generic.Exit"), Styles.ICON_24_EXIT);
        logoutButton.setStyleName("ControlPane.Button");
        logoutButton.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent e) {
                ChatApp.getApp().disconnect();
            }
        });
        controlsRow.add(logoutButton);
       
        SplitPane mainSplitPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL_BOTTOM_TOP, new Extent(90));
        mainSplitPane.setStyleName("ChatScreen.SplitPane");
        outerSplitPane.add(mainSplitPane);
       
View Full Code Here

        add(loginWindow);
       
        SplitPane splitPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL_BOTTOM_TOP, new Extent(32));
        loginWindow.add(splitPane);
       
        Row controlRow = new Row();
        controlRow.setStyleName("ControlPane");
        splitPane.add(controlRow);
       
        Button button = new Button(Messages.getString("LoginScreen.Continue"), Styles.ICON_24_YES);
        button.setStyleName("ControlPane.Button");
        button.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                processLogin();
            }
        });
        controlRow.add(button);

        Grid layoutGrid = new Grid();
        layoutGrid.setStyleName("LoginScreen.LayoutGrid");
        splitPane.add(layoutGrid);
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.