| java.lang.Object org.netbeans.modules.palette.Utils
Utils | final public class Utils (Code) | | Class providing various useful methods for palette classes.
author: S Aubrecht |
Inner Class :public static class NewCategoryAction extends AbstractAction | |
Inner Class :public static class PasteItemAction extends AbstractAction | |
Inner Class :public static class CopyItemAction extends AbstractAction | |
Method Summary | |
public static void | addCustomizationMenuItems(JPopupMenu popup, PaletteController controller, Settings settings) | static void | addResetMenuItem(JPopupMenu popup, PaletteController controller, Settings settings) | public static Node | findCategoryNode(Node root, String categoryName) Find a Node representing the given category.
Parameters: root - Palette's root node. Parameters: categoryName - Name of the category to search for. | public static ResourceBundle | getBundle() | public static String | getBundleString(String key) | public static HelpCtx | getHelpCtx(Node node, HelpCtx defaultHelp) | public static boolean | isOpenedByUser(TopComponent tc) | public static boolean | isReadonly(Node node) | public static Action[] | mergeActions(Action[] first, Action[] second) | public static void | resetPalette(PaletteController controller, Settings settings) | public static void | resetPalette(Node rootNode, PaletteController controller, Settings settings) | public static void | setOpenedByUser(TopComponent tc, boolean userOpened) |
findCategoryNode | public static Node findCategoryNode(Node root, String categoryName)(Code) | | Find a Node representing the given category.
Parameters: root - Palette's root node. Parameters: categoryName - Name of the category to search for. Category with the given name or null. |
getHelpCtx | public static HelpCtx getHelpCtx(Node node, HelpCtx defaultHelp)(Code) | | |
isOpenedByUser | public static boolean isOpenedByUser(TopComponent tc)(Code) | | |
isReadonly | public static boolean isReadonly(Node node)(Code) | | |
setOpenedByUser | public static void setOpenedByUser(TopComponent tc, boolean userOpened)(Code) | | |
|
|