Package nextapp.echo2.app

Examples of nextapp.echo2.app.StyleSheet


        this.setMaximizable(false);
        this.setKeystrokeListener(this.createKeyStrokeListener());
        this.setPostOnEnterKey(true);
        this.setCancelOnEscKey(true);

        SplitPane spMain = new SplitPane(SplitPane.ORIENTATION_VERTICAL_BOTTOM_TOP, new JbsExtent(45));

        this.add(spMain);
        spMain.add(initPnButtons());

        pnMain = new JbsContentPane();
        spMain.add(pnMain);
    }
View Full Code Here


        ((Button) component).setBorder(null);
        ((Button) component).setDisabledBorder(null);
        ((Button) component).setRolloverBorder(null);
        ((Button) component).setPressedBorder(null);

        StyleSheet stylesheet = Styles.DEFAULT_STYLE_SHEET;
        Style style = stylesheet.getStyle(nextapp.echo2.app.Component.class, "TblJbsBaseObject.Header");
        component.setStyle(style);

        TableLayoutData layout = (TableLayoutData) style.getProperty("layoutData");
        // remove the button's background
        component.setBackground(null);
View Full Code Here

    ((Button)component).setBorder(null);
    ((Button)component).setDisabledBorder(null);
    ((Button)component).setRolloverBorder(null);
    ((Button)component).setPressedBorder(null);
   
    StyleSheet stylesheet = Styles.DEFAULT_STYLE_SHEET;
    Style style = stylesheet.getStyle( nextapp.echo2.app.Component.class, "TblJbsBaseObject.Header");
    component.setStyle(style);
   
    TableLayoutData layout = (TableLayoutData) style.getProperty("layoutData");
    // remove the button's background
    component.setBackground(null);
View Full Code Here

        Button customButton = new Button("Custom Style Sheet (Edit Below)");
        customButton.setStyleName("Default");
        customButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                try {
                    StyleSheet styleSheet = loadStyleSheet(styleSheetEntryTextArea.getDocument().getText());
                    getApplicationInstance().setStyleSheet(styleSheet);
                } catch (ComponentXmlException ex) {
                    displayCustomStyleError(ex);
                }
            }
View Full Code Here

    throws ComponentXmlException {
        InputStream in = null;
        try {
            // Not i18n safe.
            in = new ByteArrayInputStream(text.getBytes());
            StyleSheet styleSheet = StyleSheetLoader.load(in, StyleSheetTest.class.getClassLoader());
            return styleSheet;
        } finally {
            if (in != null) { try { in.close(); } catch (IOException ex) { } }
        }
    }
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"));
View Full Code Here

    protected void addAction(String actionCommand) {
        EventListener[] listeners = listenerList.getListeners(ActionListener.class);
        for (int i = 0; i < listeners.length; i++) {
            ActionListener actionListener = (ActionListener) listeners[i];
            try {
                actionListener.actionPerformed(new ActionEvent(JbsDialogWindow.this, actionCommand));
            } catch (Throwable t) {
                logger.error("Error adding action.",t);
            }
        }
    }
View Full Code Here

    protected void addAction(String actionCommand) {
        EventListener[] listeners = listenerList.getListeners(ActionListener.class);
        for (int i = 0; i < listeners.length; i++) {
            ActionListener actionListener = (ActionListener) listeners[i];
            try {
                actionListener.actionPerformed(new ActionEvent(PnEditJbsObject.this, actionCommand));
            } catch (Throwable t) {
                logger.error("Error adding action.",t);
            }
        }
    }
View Full Code Here

        EventListener[] listeners = listenerList.getListeners(ActionListener.class);
        for (int i = 0; i < listeners.length; i++) {
            ActionListener actionListener = (ActionListener) listeners[i];
            try {
                actionListener.actionPerformed(
                        new ActionEvent(JbsOptionPane.this, getActionCommand((Component) e.getSource())));
            } catch (Throwable t) {
                ExceptionHandler.handle(t);
            }
        }
View Full Code Here

    protected final String IMG_DROPDOWN = Styles.IMAGE_PATH + "blank.gif";
   
    public JbsMenuLabel(String text) {
        super();
        this.setBtnMain(new JbsButton(""));
        this.getBtnMain().addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                logger.debug("popup");
                setExpanded(!isExpanded());
                collapseAllOther();
View Full Code Here

TOP

Related Classes of nextapp.echo2.app.StyleSheet

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.