Package nextapp.echo2.webrender.output

Examples of nextapp.echo2.webrender.output.CssStyle


        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

    public JbsImageIcon() {
        super(null);
    }
   
    public void setImage(byte[] image) throws IOException {
        AwtImageReference imgRef = null;
        if (image!=null) {
            logger.debug("Showing logo - length: " + image.length);
            Image img = ImageIO.read(new ByteArrayInputStream(image));
            imgRef = new AwtImageReference(img);
        }
        this.setIcon(imgRef);
    }
View Full Code Here

     * @param groupTitle The title of the group
     * @return The group as a <code>Column</code>
     */
    public Column addGroup(String groupName, String groupTitle) {
        //Look for an existing group with the given name:
        Column newColumn = (Column) getComponent(groupName);
        //If nor group is found then create a new one:
        if (newColumn == null) {
            newColumn = new Column();
            newColumn.setId(groupName);
            newColumn.setStyleName("Default");
            AccordionPaneLayoutData layoutData = new AccordionPaneLayoutData();
            layoutData.setTitle(groupTitle);
            newColumn.setLayoutData(layoutData);
            this.add(newColumn);
        }
        return newColumn;
    }
View Full Code Here

     * @param groupName The name of the group where the control shall be added to
     * @param groupTitle The title of the group (if it must be created newly).
     * @param control The control to be added to the pane
     */
    public void addControl(String groupName, String groupTitle, Component control) {
        Column column = this.addGroup(groupName, groupTitle);
        column.add(control);
    }
View Full Code Here

        colMain.add(row);
    }

    public void reload(JbsBaseObject jbsObject) {
        this.removeAll();
        colMain = new Column();
        this.add(colMain);
       
    }
View Full Code Here

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

        Column column = new Column();
        column.add(this.getTextArea());
        column.add(this.getBtnSelect());
        this.add(column);
    }
View Full Code Here

    @Override
    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

    protected JbsLangEntryHelper createTextField(JbsLanguage language) {
        return new JbsLangEntryTextArea(language);
    }

    protected void initPanel() {
        Column colMain = new Column();
        colMain.setInsets(new Insets(5, 5));

        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

TOP

Related Classes of nextapp.echo2.webrender.output.CssStyle

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.