Package util.ui

Examples of util.ui.ChannelLabel


  public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected,
      boolean cellHasFocus) {
    JLabel label = (JLabel) super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);

    if (mChannel == null) {
      mChannel = new ChannelLabel(true, true);
    }

    if (mChannelCounter == null) {
      mChannelCounter = new DuplicateChannelNameCounter(ChannelList.getAvailableChannels());
    }
View Full Code Here


    }

    if (value instanceof Channel) {
      Channel channel = (Channel) value;

      ChannelLabel channelLabel = new ChannelLabel();

      channelLabel.setChannel(channel);
      channelLabel.setOpaque(label.isOpaque());
      channelLabel.setForeground(label.getForeground());
      channelLabel.setBackground(label.getBackground());

      mCache[row][0] = channelLabel;
      updateHeight(table, row);

      return channelLabel;
View Full Code Here

      }
      else {
        Channel[] channels = mModel.getChannels();
        width = UiUtilities.getChannelIconWidth();
        for (Channel channel : channels) {
          ChannelLabel label = new ChannelLabel(channel);
          label.validate();
          width = Math.max(width, (int)label.getPreferredSize().getWidth());
        }
        column.setPreferredWidth(width);
        column.setMaxWidth(250);
        column.setMinWidth(UiUtilities.getChannelIconWidth());
      }
View Full Code Here

TOP

Related Classes of util.ui.ChannelLabel

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.