Package nextapp.echo2.app.table

Examples of nextapp.echo2.app.table.DefaultTableModel


    }

    private JbsButton createButton(String messageKey, String option) {
        JbsButton button = new JbsButton(messageKey);
        button.setActionCommand(option);
        button.setInsets(new Insets(8, 0, 8, 0))// ltrb
        button.addActionListener(this);

        return button;
    }
View Full Code Here


    protected void initPanel() {
        this.createComponents();

        JbsGrid grdMain = new JbsGrid(2);
        grdMain.setInsets(new Insets(5, 5));
        grdMain.setColumnWidth(0, new JbsExtent(300));

        grdMain.add(new Label(JbsL10N.getString("Permissions.user")));
        grdMain.add(cbbUsers);
        grdMain.add(new Label(JbsL10N.getString("Permissions.read")));
View Full Code Here

        Iterator<JbsLangEntryHelper> it = this.getTextFields().iterator();
        while (it.hasNext()) {
            JbsLangEntryTextArea txtField = (JbsLangEntryTextArea) it.next();
            txtField.setWidth(new JbsExtent(400, JbsExtent.PX));
            txtField.setHeight(new JbsExtent(300, JbsExtent.PX));
            colMain.add(new Label(txtField.getLanguage().getName()));
            colMain.add(txtField);
        }

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

        grdMain.setColumnWidth(0, new JbsExtent(300));

        Iterator<JbsLangEntryHelper> it = this.getTextFields().iterator();
        while (it.hasNext()) {
            JbsLangEntryTextField txtField = (JbsLangEntryTextField) it.next();
            grdMain.add(new Label(txtField.getLanguage().getName()));
            grdMain.add(txtField);
        }

        this.getPnMain().add(grdMain);
    }
View Full Code Here

    return this.getTabSheets().size();
  }

  public Component getTabAt(int index, boolean isSelected) {
    if ((index>=0) && (index<this.getTabSheets().size())) {
      Label lblTitle = new Label(this.getTabSheets().get(index).getTitle());
      return lblTitle;
    } else
      return null;
  }
View Full Code Here

    class CrTblAddresses implements TableCellRenderer {

        private static final long serialVersionUID = -5623959513895038767L;

        public Component getTableCellRendererComponent(Table table, Object value, int column, int row) {
            Label label;
            if (value != null) {
                label = new Label(value.toString());
            } else {
                label = new Label("");
            }

            if (row % 2 == 0) {
                label.setStyleName("MessageListTable.EvenRowLabel");
            } else {
                label.setStyleName("MessageListTable.OddRowLabel");
            }
            return label;
        }
View Full Code Here

        this.setMaximizable(false);
        this.setMinimizable(false);
        this.setResizable(false);
        this.setModal(true);
        ImageReference icon = getMessageIcon(messageType);
        Label iconLabel = new Label("");
        int iconHeight = 0;
        if (icon != null) {
            iconLabel.setIcon(icon);
            iconHeight = icon.getHeight().getValue();
        }


        // Split newlines into multiple labels
        if (message instanceof String) {
            String[] lines = ((String) message).split("\n");

            if (lines.length > 1) {
                message = lines;
            }
        }


        Column messageColumn = new Column();

        if (message.getClass().isArray()) {
            Object[] messageList = (Object[]) message;
            for (int i = 0; i < messageList.length; i++) {
                messageColumn.add(new Label(messageList[i].toString()));
            }
        } else {
            messageColumn.add(new Label(message.toString()));
        }
        final int labelCount = messageColumn.getComponentCount();
       
        JbsButton btnDetails = null;
        if (exception!=null) {
View Full Code Here

        JbsGrid grdMain = new JbsGrid(2);
        grdMain.setInsets(new Insets(5, 5));
        grdMain.setColumnWidth(0, new JbsExtent(300));

        grdMain.add(new Label(JbsL10N.getString("Permissions.user")));
        grdMain.add(cbbUsers);
        grdMain.add(new Label(JbsL10N.getString("Permissions.read")));
        grdMain.add(cbReadUser);
       
        grdMain.add(new Label(JbsL10N.getString("Permissions.write")));
        grdMain.add(cbWriteUser);

        grdMain.add(new Label(JbsL10N.getString("Permissions.group")));
        grdMain.add(cbbGroups);
        grdMain.add(new Label(JbsL10N.getString("Permissions.read")));
        grdMain.add(cbReadGroup);
        grdMain.add(new Label(JbsL10N.getString("Permissions.write")));
        grdMain.add(cbWriteGroup);

        grdMain.add(new Label(JbsL10N.getString("Permissions.others")));
        grdMain.add(new Label(""));
        grdMain.add(new Label(JbsL10N.getString("Permissions.read")));
        grdMain.add(cbReadOther);
        grdMain.add(new Label(JbsL10N.getString("Permissions.write")));
        grdMain.add(cbWriteOther);
       
        this.add(grdMain);
    }
View Full Code Here

        this.getBtnMain().setBackground(Color.WHITE);
        this.getBtnMain().setBorder(BorderEx.NONE);
        this.getBtnMain().setRolloverBackground(Color.WHITE);
        this.getBtnMain().setRolloverBorder(BorderEx.NONE);

        this.setToggleIcon(new ResourceImageReference(IMG_DROPDOWN));
        this.setTogglePressedIcon(new ResourceImageReference(IMG_DROPDOWN));
        this.setToggleRolloverIcon(new ResourceImageReference(IMG_DROPDOWN));
       

        /*
        this.getBtnMain().addActionListener(new ActionListener() {

View Full Code Here

     * @param title The title of the button
     */
    public JbsAccPaneButton(String imgFileName, String title) {
        super();
        try {
            ResourceImageReference ref = new ResourceImageReference(Styles.getIconPath() + imgFileName);
            this.setIcon(ref);
        } catch (Exception e) {
            logger.debug(Styles.getIconPath() + imgFileName + " not found.");
        }
        this.setStyleName("Default");
View Full Code Here

TOP

Related Classes of nextapp.echo2.app.table.DefaultTableModel

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.