Package com.sun.dtv.lwuit.plaf

Examples of com.sun.dtv.lwuit.plaf.LookAndFeel


     * @inheritDoc
     */
    void initComponentImpl() {
        super.initComponentImpl();
        if(hasFocus()) {
            LookAndFeel lf = UIManager.getInstance().getLookAndFeel();
            if(lf instanceof DefaultLookAndFeel) {
                ((DefaultLookAndFeel)lf).focusGained(this);
            }
        }
    }
View Full Code Here


        style = UIManager.getInstance().getComponentStyle(getUIID());
        if (style != null) {
            style.addStyleListener(this);
            style.setBgPainter(new BGPainter());
        }
        LookAndFeel laf = UIManager.getInstance().getLookAndFeel();
        animationSpeed = laf.getDefaultSmoothScrollingSpeed();
        setSmoothScrolling(laf.isDefaultSmoothScrolling());
    }
View Full Code Here

        private Style menuStyle;

        public MenuBar() {
            menuStyle = UIManager.getInstance().getComponentStyle("Menu");
            menuCommand = new Command(UIManager.getInstance().localize("menu", "Menu"));
            LookAndFeel lf = UIManager.getInstance().getLookAndFeel();
            // use the slide transition by default
            if (lf.getDefaultMenuTransitionIn() != null || lf.getDefaultMenuTransitionOut() != null) {
                transitionIn = lf.getDefaultMenuTransitionIn();
                transitionOut = lf.getDefaultMenuTransitionOut();
            } else {
                transitionIn = CommonTransitions.createSlide(CommonTransitions.SLIDE_VERTICAL, true, 300, true);
                transitionOut = CommonTransitions.createSlide(CommonTransitions.SLIDE_VERTICAL, false, 300, true);
            }
View Full Code Here

        super.addComponent(BorderLayout.NORTH, title);
        super.addComponent(BorderLayout.CENTER, contentPane);
        super.addComponent(BorderLayout.SOUTH, menuBar);
        contentPane.setScrollableY(true);
        focusCycleRoot = contentPane;
        LookAndFeel laf = UIManager.getInstance().getLookAndFeel();
        initLaf(laf);
        tintColor = laf.getDefaultFormTintColor();

        // hardcoded, anything else is just pointless...
        getStyle().setBgTransparency(0xFF);
    }
View Full Code Here

TOP

Related Classes of com.sun.dtv.lwuit.plaf.LookAndFeel

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.