Package com.aelitis.azureus.ui.swt.views.skin

Examples of com.aelitis.azureus.ui.swt.views.skin.InfoBarUtil


    if (device instanceof TranscodeTarget) {
      transTarget = (TranscodeTarget) device;
    }

    if (device == null) {
      new InfoBarUtil(skinObject, "devicesview.infobar", false,
          "DeviceView.infobar", "v3.deviceview.infobar") {
        public boolean allowShow() {
          return true;
        }
      };
    } else if (device instanceof DeviceMediaRenderer) {
      DeviceMediaRenderer renderer = (DeviceMediaRenderer) device;
      int species = renderer.getRendererSpecies();
      String speciesID = null;
      switch (species) {
        case DeviceMediaRenderer.RS_ITUNES:
          speciesID = "itunes";
          break;
        case DeviceMediaRenderer.RS_PS3:
          speciesID = "ps3";
          break;
        case DeviceMediaRenderer.RS_XBOX:
          speciesID = "xbox";
          break;
        case DeviceMediaRenderer.RS_OTHER:{
          String classification = renderer.getClassification();
         
          if ( classification.equals( "sony.PSP")){
            speciesID = "psp";
          }else if ( classification.startsWith( "tivo.")){
            speciesID = "tivo";
          }else if ( classification.toLowerCase().contains( "android")){
            speciesID = "android";
          }
        }
        default:
          break;
      }

      if (speciesID != null) {
        final String fSpeciesID = speciesID;
        new InfoBarUtil(skinObject, "devicesview.infobar", false,
            "DeviceView.infobar." + speciesID, "v3.deviceview.infobar") {
          public boolean allowShow() {
            return true;
          }
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.ui.swt.views.skin.InfoBarUtil

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.