org.gudy.azureus2.ui.swt.views.utils
Class TagUIUtils

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.views.utils.TagUIUtils

public class TagUIUtils
extends Object

Author:
TuxPaper

Field Summary
static int MAX_TOP_LEVEL_TAGS_IN_MENU
           
 
Constructor Summary
TagUIUtils()
           
 
Method Summary
static void addLibraryViewTagsSubMenu(DownloadManager[] dms, org.eclipse.swt.widgets.Menu menu_tags, org.eclipse.swt.widgets.Composite composite)
           
static void checkTagSharing(boolean start_of_day)
           
static void createManualTag(UIFunctions.TagReturner tagReturner)
           
static void createSideBarMenuItems(org.eclipse.swt.widgets.Menu menu, List<Tag> _tags)
           
static void createSideBarMenuItems(org.eclipse.swt.widgets.Menu menu, Tag tag)
           
static String getChatKey(Tag tag)
           
static Comparator<Tag> getTagComparator()
           
static String getTagTooltip(Tag tag)
           
static String getTagTooltip(Tag tag, boolean skip_name)
           
static void setupSideBarMenus(MenuManager menuManager)
           
static List<Tag> sortTags(Collection<Tag> _tags)
           
static List<TagType> sortTagTypes(Collection<TagType> _tag_types)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_TOP_LEVEL_TAGS_IN_MENU

public static final int MAX_TOP_LEVEL_TAGS_IN_MENU
See Also:
Constant Field Values
Constructor Detail

TagUIUtils

public TagUIUtils()
Method Detail

getChatKey

public static String getChatKey(Tag tag)

setupSideBarMenus

public static void setupSideBarMenus(MenuManager menuManager)

checkTagSharing

public static void checkTagSharing(boolean start_of_day)

createManualTag

public static void createManualTag(UIFunctions.TagReturner tagReturner)

createSideBarMenuItems

public static void createSideBarMenuItems(org.eclipse.swt.widgets.Menu menu,
                                          Tag tag)

createSideBarMenuItems

public static void createSideBarMenuItems(org.eclipse.swt.widgets.Menu menu,
                                          List<Tag> _tags)

addLibraryViewTagsSubMenu

public static void addLibraryViewTagsSubMenu(DownloadManager[] dms,
                                             org.eclipse.swt.widgets.Menu menu_tags,
                                             org.eclipse.swt.widgets.Composite composite)

sortTagTypes

public static List<TagType> sortTagTypes(Collection<TagType> _tag_types)

sortTags

public static List<Tag> sortTags(Collection<Tag> _tags)

getTagComparator

public static Comparator<Tag> getTagComparator()

getTagTooltip

public static String getTagTooltip(Tag tag)

getTagTooltip

public static String getTagTooltip(Tag tag,
                                   boolean skip_name)