Package nextapp.echo2.app

Examples of nextapp.echo2.app.Color


     * @param listComponent the <code>AbstractListComponent</code> instance
     * @return the style
     */
    private CssStyle createRolloverCssStyle(AbstractListComponent listComponent) {
        CssStyle style = new CssStyle();
        Color rolloverForeground = (Color) listComponent.getRenderProperty(AbstractListComponent.PROPERTY_ROLLOVER_FOREGROUND);
        Color rolloverBackground = (Color) listComponent.getRenderProperty(AbstractListComponent.PROPERTY_ROLLOVER_BACKGROUND);
        ColorRender.renderToStyle(style, rolloverForeground, rolloverBackground);
        FontRender.renderToStyle(style, (Font) listComponent.getRenderProperty(AbstractListComponent.PROPERTY_ROLLOVER_FONT));
        return style;
    }
View Full Code Here


    /**
     * @see nextapp.echo2.webcontainer.PartialUpdateParticipant#renderProperty(
     *      nextapp.echo2.webcontainer.RenderContext, nextapp.echo2.app.update.ServerComponentUpdate)
     */
    public void renderProperty(RenderContext rc, ServerComponentUpdate update) {
        Color color = (Color) update.getParent().getRenderProperty(componentPropertyName);
        String elementId = idSuffix == null ? ContainerInstance.getElementId(update.getParent())
                : ContainerInstance.getElementId(update.getParent()) + idSuffix;
        if (color == null) {
            DomUpdate.renderStyleUpdate(rc.getServerMessage(), elementId, cssAttributeName, "");
        } else {
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

                editTexts();
            }

        });

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

    /**
     * Adds a button to the toolbar
     * @param button
     */
    public void addButton(BtnToolbar button) {
        Column colButton = new Column();
        colButton.setInsets(new Insets(5));
        colButton.add(button);
        this.add(colButton);
    }
View Full Code Here

TOP

Related Classes of nextapp.echo2.app.Color

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.