| java.lang.Object org.netbeans.modules.sql.project.base.PackageDisplayUtils
PackageDisplayUtils | final public class PackageDisplayUtils (Code) | | Provides display name and icon utilities for
PackageViewChildren.PackageNode and
PackageListView.PackageItem .
author: Jesse Glick |
Method Summary | |
public static String | getDisplayLabel(String pkgname) Find the proper display label for a package. | public static Image | getIcon(FileObject pkg, String pkgname) Find the proper display icon for a package. | public static Image | getIcon(FileObject pkg, String pkgname, boolean empty) Performance optiomization if the the isEmpty status is alredy known. | public static String | getToolTip(FileObject pkg, String pkgname) Find the proper tool tip for a package. | public static boolean | isEmpty(FileObject fo) Check whether a package is empty (devoid of files except for subpackages). | public static boolean | isEmpty(FileObject fo, boolean recurse) Check whether a package is empty (devoid of files except for subpackages). | public static boolean | isSignificant(FileObject pkg) Check whether a package should be displayed. |
getDisplayLabel | public static String getDisplayLabel(String pkgname)(Code) | | Find the proper display label for a package.
Parameters: pkg - the actual folder Parameters: pkgname - the dot-separated package name ("" for default package) an appropriate display label for it |
getIcon | public static Image getIcon(FileObject pkg, String pkgname)(Code) | | Find the proper display icon for a package.
Parameters: pkg - the actual folder Parameters: pkgname - the dot-separated package name ("" for default package) an appropriate display icon for it |
getIcon | public static Image getIcon(FileObject pkg, String pkgname, boolean empty)(Code) | | Performance optiomization if the the isEmpty status is alredy known.
|
getToolTip | public static String getToolTip(FileObject pkg, String pkgname)(Code) | | Find the proper tool tip for a package.
May have more info than the display label.
Parameters: pkg - the actual folder Parameters: pkgname - the dot-separated package name ("" for default package) an appropriate display label for it |
isEmpty | public static boolean isEmpty(FileObject fo)(Code) | | Check whether a package is empty (devoid of files except for subpackages).
|
isEmpty | public static boolean isEmpty(FileObject fo, boolean recurse)(Code) | | Check whether a package is empty (devoid of files except for subpackages).
Parameters: recurse - specifies whether to check if subpackages are empty too. |
isSignificant | public static boolean isSignificant(FileObject pkg) throws IllegalArgumentException(Code) | | Check whether a package should be displayed.
It should be displayed if
VisibilityQuery says it should be,
and it is either completely empty, or contains files (as opposed to
containing some subpackages but no files).
|
|
|