Package com.alee.laf.combobox

Examples of com.alee.laf.combobox.WebComboBoxCellRenderer


    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        final WebComboBox styled = new WebComboBox ( GlobalConstants.DEFAULT_FILTERS.toArray () );
        styled.setSelectedIndex ( 0 );
        styled.setRenderer ( new WebComboBoxCellRenderer ()
        {
            @Override
            public Component getListCellRendererComponent ( final JList list, final Object value, final int index, final boolean isSelected,
                                                            final boolean cellHasFocus )
            {
View Full Code Here


        final WebButton showPopup = new WebButton ( "Show simple popup" );

        // Popup style chooser
        final WebComboBox popupStyle = new WebComboBox ( PopupStyle.values () );
        popupStyle.setSelectedItem ( PopupManager.getDefaultPopupStyle () );
        popupStyle.setRenderer ( new WebComboBoxCellRenderer ()
        {
            @Override
            public Component getListCellRendererComponent ( final JList list, final Object value, final int index, final boolean isSelected,
                                                            final boolean cellHasFocus )
            {
View Full Code Here

        popupContent.setOpaque ( false );
        wbp.setContent ( popupContent );

        theme = new WebComboBox ( EditorTheme.values () );
        theme.registerSettings ( SETTINGS_PREFIX + "theme", 0 );
        theme.setRenderer ( new WebComboBoxCellRenderer ()
        {
            @Override
            public Component getListCellRendererComponent ( final JList list, final Object value, final int index, final boolean isSelected,
                                                            final boolean cellHasFocus )
            {
View Full Code Here

                                    final WebList historyList = new WebList ( supportedComponents );
                                    historyList.setOpaque ( false );
                                    historyList.setVisibleRowCount ( Math.min ( 10, supportedComponents.size () ) );
                                    historyList.setRolloverSelectionEnabled ( true );
                                    historyList.setSelectedValue ( selectedType );
                                    historyList.setCellRenderer ( new WebComboBoxCellRenderer ()
                                    {
                                        @Override
                                        public Component getListCellRendererComponent ( final JList list, final Object value,
                                                                                        final int index, final boolean isSelected,
                                                                                        final boolean cellHasFocus )
View Full Code Here

                final WebList historyList = new WebList ( navigationHistory );
                historyList.setOpaque ( false );
                historyList.setVisibleRowCount ( Math.min ( 10, navigationHistory.size () ) );
                historyList.setRolloverSelectionEnabled ( true );
                historyList.setCellRenderer ( new WebComboBoxCellRenderer ()
                {
                    @Override
                    public Component getListCellRendererComponent ( final JList list, final Object value, final int index,
                                                                    final boolean isSelected, final boolean cellHasFocus )
                    {
View Full Code Here

TOP

Related Classes of com.alee.laf.combobox.WebComboBoxCellRenderer

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.