Package com.aelitis.azureus.ui.common.viewtitleinfo

Examples of com.aelitis.azureus.ui.common.viewtitleinfo.ViewTitleInfo


      infoSub.setVisible(false);
    }

   
    headerEntry.setViewTitleInfo(
      new ViewTitleInfo()
      {
        private long  last_avail_calc = -1;
        private int    last_avail;
       
        public Object
View Full Code Here


        // closing down
   
      return( null );
    }
 
    ViewTitleInfo viewTitleInfo = new ViewTitleInfo() {
      public Object
      getTitleInfoProperty(
        int propertyID )
      {
        switch( propertyID ){
View Full Code Here

        "{sidebar.LibraryUnopened}", null, null, false,
        SideBar.SIDEBAR_SECTION_LIBRARY);
    infoLibraryUn.setImageLeftID("image.sidebar.unopened");

    addMenuUnwatched(SideBar.SIDEBAR_SECTION_LIBRARY_UNOPENED);
    infoLibraryUn.setViewTitleInfo(new ViewTitleInfo() {
      public Object getTitleInfoProperty(int propertyID) {
        if (propertyID == TITLE_INDICATOR_TEXT
            && statsNoLowNoise.numUnOpened > 0) {
          return "" + statsNoLowNoise.numUnOpened;
        }
View Full Code Here

   * @return
   *
   * @since 4.5.1.1
   */
  protected static MdiEntry createSeedingEntry(MultipleDocumentInterface mdi) {
    ViewTitleInfo titleInfoSeeding = new ViewTitleInfo() {
      public Object getTitleInfoProperty(int propertyID) {
        if (propertyID == TITLE_INDICATOR_TEXT) {
          return null; //numSeeding + " of " + numComplete;
        }

View Full Code Here

    return entry;
  }

  protected static MdiEntry createDownloadingEntry(MultipleDocumentInterface mdi) {
    ViewTitleInfo titleInfoDownloading = new ViewTitleInfo() {
      public Object getTitleInfoProperty(int propertyID) {
        if (propertyID == TITLE_INDICATOR_TEXT) {
          if (statsNoLowNoise.numIncomplete > 0)
            return statsNoLowNoise.numIncomplete + ""; // + " of " + numIncomplete;
        }
View Full Code Here

    if (category.getType() != Category.TYPE_USER) {
      return;
      //name = MessageText.getString(name);
    }

    ViewTitleInfo viewTitleInfo = new ViewTitleInfo() {

      public Object getTitleInfoProperty(int propertyID) {
        if (propertyID == TITLE_INDICATOR_TEXT) {
          if (statsNoLowNoise.numIncomplete > 0) {
            List<?> dms = category.getDownloadManagers(null);
View Full Code Here

  public static void setupSidebarEntry() {
    MultipleDocumentInterface mdi = UIFunctionsManager.getUIFunctions().getMDI();

    // Put TitleInfo in another class
    final ViewTitleInfo titleInfoActivityView = new ViewTitleInfo() {
      public Object getTitleInfoProperty(int propertyID) {
        if (propertyID == TITLE_INDICATOR_TEXT) {
          int count = 0;
          VuzeActivitiesEntry[] allEntries = VuzeActivitiesManager.getAllEntries();
          for (int i = 0; i < allEntries.length; i++) {
View Full Code Here

      if (entry == null) {
        continue;
      }
      String id = entry.getId();
      menuItem.setData("Plugin.viewID", id);
      ViewTitleInfo titleInfo = entry.getViewTitleInfo();
      String ind = "";
      if (titleInfo != null) {
        String o = (String) titleInfo.getTitleInfoProperty(ViewTitleInfo.TITLE_INDICATOR_TEXT);
        if (o != null) {
          ind = "  (" + o + ")";
          //ind = "\t" + o;
        }
      }
View Full Code Here

        }
      });
    */

    // Rollup spinner/warning/info
    entryHeader.setViewTitleInfo(new ViewTitleInfo() {
      private int last_indicator = 0;

      MdiEntryVitalityImage spinner = entryHeader.addVitalityImage(SPINNER_IMAGE_ID);

      MdiEntryVitalityImage warning = entryHeader.addVitalityImage(ALERT_IMAGE_ID);
View Full Code Here

        MultipleDocumentInterface.SIDEBAR_HEADER_VUZE, id,
        "main.area.searchresultstab", sSearchText, null, sq, true, null);
    if (entry != null) {
      entry.setImageLeftID("image.sidebar.search");
      entry.setDatasource(sq);
      entry.setViewTitleInfo(new ViewTitleInfo() {
        public Object getTitleInfoProperty(int propertyID) {
          if (propertyID == TITLE_TEXT) {
            SearchResultsTabArea searchClass = (SearchResultsTabArea) SkinViewManager.getByClass(SearchResultsTabArea.class);
            if (searchClass != null && searchClass.sq != null) {
              return searchClass.sq.term;
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.ui.common.viewtitleinfo.ViewTitleInfo

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.