Uses of Class
ca.corbett.extras.actionpanel.ToolBarOptions
Packages that use ToolBarOptions
Package
Description
Contains the ActionPanel component and supporting classes.
-
Uses of ToolBarOptions in ca.corbett.extras.actionpanel
Methods in ca.corbett.extras.actionpanel that return ToolBarOptionsModifier and TypeMethodDescriptionToolBarOptions.addCustomActionSupplier(ToolBarActionSupplier actionSupplier) You can add your own buttons to the ToolBar in addition to (or instead of, if you disable them) the built-in ones.ToolBarOptions.addExcludedGroup(String groupName) All ActionGroups get a ToolBar by default, if the ToolBar is enabled for the ActionPanel.ToolBarOptions.clearCustomActionSuppliers()Removes all custom action suppliers that were previously added via addCustomActionSupplier().ActionPanel.getToolBarOptions()Options related to the ToolBar are accessed via the ToolBarOptions class.ToolBarOptions.removeCustomActionSupplier(ToolBarActionSupplier actionSupplier) Removes a custom action supplier that was previously added via addCustomActionSupplier().ToolBarOptions.removeExcludedGroup(String groupName) Removes a group from the "toolbar excluded" list, if it was previously added via the addExcludedGroup() method.ToolBarOptions.setAddItemIcon(ImageIcon addItemIcon) Overrides the default "add" icon for the "Add item" button.ToolBarOptions.setAllowGroupRemoval(boolean allowGroupRemoval) If true, then a "Remove group" button will be shown in the toolbar for each ActionGroup, which allows the user to remove that group.ToolBarOptions.setAllowGroupRename(boolean allowGroupRename) If true, then a "Rename group" button will be shown in the toolbar for each ActionGroup, which allows the user to rename the group.ToolBarOptions.setAllowItemAdd(boolean allowItemAdd) If true, and if a Supplier is given via setNewActionSupplier(), then an "Add item" button will be shown in the toolbar.ToolBarOptions.setAllowItemRemoval(boolean allowItemRemoval) If true, then an "Edit group" button will be shown in the toolbar for each ActionGroup, which allows the user to remove items from that group.ToolBarOptions.setAllowItemReorder(boolean allowItemReorder) If true, then an "Edit group" button will be shown in the toolbar for each ActionGroup, which allows the user to reorder items from that group.ToolBarOptions.setButtonPosition(ToolBarOptions.ButtonPosition buttonPosition) Decides how buttons are to be presented in the ToolBar.ToolBarOptions.setEditIcon(ImageIcon editIcon) Overrides the default "edit" icon for the "Edit item" button.ToolBarOptions.setIconSize(int iconSize) Sets the icon size for this toolbar.ToolBarOptions.setNewActionSupplier(ToolBarNewItemSupplier newActionSupplier) If allowItemAdd is true and a Supplier is given here, then an "Add item" button will be shown in the toolbar.ToolBarOptions.setRemoveIcon(ImageIcon removeIcon) Overrides the default "remove" icon for the "Remove item" and "Remove group" buttons.ToolBarOptions.setRenameIcon(ImageIcon renameIcon) Overrides the default "rename" icon for the "Rename group" button.