Package nextapp.echo2.app.layout

Examples of nextapp.echo2.app.layout.ColumnLayoutData


        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

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

        grdMain.add(new Label(JbsL10N.getString("JbsCompany.company")));
        grdMain.add(cbbCompanies);

        this.getPnMain().add(grdMain);
    }
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("JbsUser.userName")));
        grdMain.add(txUserName);
        grdMain.add(new Label(JbsL10N.getString("JbsUser.password")));
        grdMain.add(txPassword);
        grdMain.add(new Label(JbsL10N.getString("JbsUser.addInfo")));
        grdMain.add(txAddInfo);
        grdMain.add(new Label(JbsL10N.getString("JbsUser.mainGroup")));
        grdMain.add(cbbMainGroup);

        grdMain.add(new Label(JbsL10N.getString("JbsUser.groupList")));
        grdMain.add(groupEditor);
        if (ClientGlobals.getUser().isRoot()) { //No other person is allowed to set companies for a user
            grdMain.add(new Label(JbsL10N.getString("JbsUser.companyList")));
            grdMain.add(companyEditor);
        }

        grdMain.add(new Label(JbsL10N.getString("JbsUser.contact")));
        grdMain.add(this.contactSelectField);
       
        grdMain.add(new Label(JbsL10N.getString("JbsUser.canChangePassword")));
        grdMain.add(this.cbCanChangePassword);

        grdMain.add(new Label(JbsL10N.getString("JbsUser.startModule")));
        grdMain.add(this.selStartModule);
       
        cpStdData.add(grdMain);
        this.add(cpStdData);
    }
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

        this.setBorder(BorderEx.NONE);
        this.setRolloverBorder(BorderEx.NONE);
        this.setTarget(this.getBtnMain());
        this.setPopUp(this.getMnuMain());
        this.setToggleIcon(new ResourceImageReference(IMG_DROPDOWN));
        this.setTogglePressedIcon(new ResourceImageReference(IMG_DROPDOWN));
        this.setToggleRolloverIcon(new ResourceImageReference(IMG_DROPDOWN));
    }
View Full Code Here

    private Logger logger = Logger.getLogger(BtnToolbar.class);
    private static final long serialVersionUID = 176100334500789000L;

    public BtnToolbar(String imgFileName) {
        super();
        ResourceImageReference ref = new ResourceImageReference(Styles.getIconPath() + imgFileName);
        if (ref != null) {
            this.setIcon(ref);
        } else {
            logger.warn("Image " + imgFileName + " not found.");
        }
View Full Code Here

                    break; // no icon
            }

            if (iconName != null) {
                final String imagePath = Styles.getIconPath(); //"../resource/images/";
                messageIcons[messageType] = new ResourceImageReference(
                        imagePath + iconName, new JbsExtent(ICON_HEIGHT), new JbsExtent(ICON_HEIGHT));
            }
        }

        return messageIcons[messageType];
View Full Code Here

    public void addControl(String groupName, Component control) {
        this.addControl(groupName, groupName, control);
    }

    public void addSeparator(String groupName) {
        Row row = new Row();
        ColumnLayoutData layout = new ColumnLayoutData();
        layout.setHeight(new JbsExtent(15, JbsExtent.PX));
        row.setLayoutData(layout);
        this.addControl(groupName, row);
    }
View Full Code Here

TOP

Related Classes of nextapp.echo2.app.layout.ColumnLayoutData

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.