Uses of Class
ca.corbett.extras.actionpanel.ActionPanel
Packages that use ActionPanel
Package
Description
Contains the ActionPanel component and supporting classes.
Contains the PropertiesDialog abstract class and its two supported implementations.
-
Uses of ActionPanel in ca.corbett.extras.actionpanel
Fields in ca.corbett.extras.actionpanel declared as ActionPanelMethods in ca.corbett.extras.actionpanel that return ActionPanelModifier and TypeMethodDescriptionActionPanel.add(String groupName, EnhancedAction action) Adds a single action to the specified group.A convenience method for adding a CardAction to this ActionPanel.ActionPanel.addAll(String groupName, List<EnhancedAction> actions) Adds multiple actions to the specified group.ActionPanel.addExpandListener(ExpandListener listener) You can listen for group expand/collapse events by adding an ExpandListener.ActionPanel.addGroupRemovedListener(GroupRemovedListener listener) Subscribe to receive notification whenever a group is removed from this ActionPanel.ActionPanel.addGroupRenamedListener(GroupRenamedListener listener) Subscribe to receive notification whenever a group is renamed within this ActionPanel.ActionPanel.addGroupReorderedListener(GroupReorderedListener listener) Subscribe to receive notification whenever the items within a group are reordered.ActionPanel.clear(boolean pruneEmptyGroups) Removes all actions from all groups, and then optionally also removes all action groups that are empty.ActionPanel.createEmptyGroup(String groupName) Creates an empty group with the given group name.ActionPanel.removeAction(EnhancedAction action) Removes all instances of the specified action from all action groups.ActionPanel.removeAction(String actionName, boolean caseSensitive) Removes all instances of the named action from all action groups.ActionPanel.removeAction(String groupName, EnhancedAction action) Removes the specified action from the named action group.ActionPanel.removeAction(String groupName, String actionName, boolean actionNameCaseSensitive) Removes all instances of the named action from the named action group.ActionPanel.removeExpandListener(ExpandListener listener) You can stop listening for group expand/collapse events by removing an ExpandListener.ActionPanel.removeGroup(String groupName) Removes the specified action group entirely, along with all its actions.ActionPanel.removeGroupRemovedListener(GroupRemovedListener listener) Stop listening for notification whenever a group is removed from this ActionPanel.ActionPanel.removeGroupRenamedListener(GroupRenamedListener listener) Stop listening for notification whenever a group is renamed within this ActionPanel.ActionPanel.removeGroupReorderedListener(GroupReorderedListener listener) Stop listening for notification whenever a group is reordered within this ActionPanel.ActionPanel.setActionComparator(Comparator<EnhancedAction> comparator) Sets the comparator for sorting actions within action groups.ActionPanel.setActionComponentType(ActionComponentType type) Sets the component type that will be used to represent actions.ActionPanel.setActionFont(Font font) Sets the font for action items.ActionPanel.setActionIconSize(int size) Sets the size (width and height) at which action icons are rendered.ActionPanel.setActionIconTextGap(int gap) Sets the gap between action icons and their text labels.ActionPanel.setAutoRebuildEnabled(boolean enabled) Normally, ActionPanel will automatically rebuild itself whenever any option is modified.ActionPanel.setButtonPadding(int padding) Sets optional padding to add between button text/icons and the edges of the button.ActionPanel.setCardContainer(Container container) Sets an optional companion CardLayout Container for this ActionPanel.ActionPanel.setCollapseIcon(ImageIcon icon) Sets the icon to use for the collapse button in action group headers.ActionPanel.setExpanded(String groupName, boolean expanded) Sets whether the named group is expanded or collapsed.ActionPanel.setExpandIcon(ImageIcon icon) Sets the icon to use for the expand button in action group headers.ActionPanel.setGroupComparator(Comparator<String> comparator) Sets the comparator for ordering action groups within the ActionPanel.ActionPanel.setGroupHeaderFont(Font font) Sets the font for group headers.ActionPanel.setGroupIcon(String groupName, Icon icon) Sets the icon for the specified group.ActionPanel.setHeaderIconSize(int size) Sets the size (width and height) at which header icons are rendered.ActionPanel.setHighlightedAction(EnhancedAction action) Sets the specified action as the currently highlighted action.ActionPanel.setHighlightedAction(String cardId) If a companion CardLayout is linked, this will set the highlighted action to be the one that triggers the given cardId.ActionPanel.setHighlightLastActionEnabled(boolean highlightLastAction) Enables or disables highlighting of the last action to be executed in this ActionPanel.ActionPanel.setShowActionIcons(boolean showActionIcons) Controls whether action icons are shown next to action names.ActionPanel.setShowGroupIcons(boolean showGroupIcons) Controls whether group icons are shown next to group names.ActionPanel.setToolBarEnabled(boolean enabled) Enables or disables the ToolBar, which is shown at the bottom of each ActionGroup and contains buttons related to the actions in that group.ActionPanel.setUseButtons()Sets whether actions should be rendered as JButtons.ActionPanel.setUseLabels()Sets whether actions should be rendered as JLabels (clickable labels).ActionPanel.toggleExpanded(String groupName) Toggles the expanded/collapsed state of the named group.Methods in ca.corbett.extras.actionpanel with parameters of type ActionPanelModifier and TypeMethodDescriptionToolBarOptions.createCustomActions(ActionPanel actionPanel, String groupName) Returns a list of custom ToolBarActions to add to the toolbar for the given ActionGroup.ToolBarOptions.createEditGroupAction(ActionPanel actionPanel, String groupName) If allowItemReorder or allowItemRemoval is true, then this method will return a ToolBarAction for editing the items in the given ActionGroup.ToolBarOptions.createItemAddAction(ActionPanel actionPanel, String groupName) If allowItemAdd is true and a Supplier is given via setNewActionSupplier(), then this method will return a ToolBarAction for adding a new item to the given ActionGroup.ToolBarOptions.createRemoveGroupAction(ActionPanel actionPanel, String groupName) If allowGroupRemoval is true, then this method will return a ToolBarAction for removing the given ActionGroup.ToolBarOptions.createRenameGroupAction(ActionPanel actionPanel, String groupName) If allowGroupRename is true, then this method will return a ToolBarAction for renaming the given ActionGroup.ToolBarActionSupplier.get(ActionPanel actionPanel, String groupName) Returns a ToolBarAction implementation class that can be added to the ToolBar for an ActionGroup within an ActionPanel.ToolBarNewItemSupplier.get(ActionPanel actionPanel, String groupName) Invoked when "add item" is clicked in an ActionPanel's ToolBar.voidGroupRemovedListener.groupRemoved(ActionPanel actionPanel, String groupName) Called when an ActionGroup is removed from an ActionPanel.voidGroupRenamedListener.groupRenamed(ActionPanel actionPanel, String oldName, String newName) Called when an ActionGroup is renamed within an ActionPanel.voidGroupReorderedListener.groupReordered(ActionPanel actionPanel, String affectedGroupName) Invoked when the items in an ActionGroup are reordered within an ActionPanel.Constructors in ca.corbett.extras.actionpanel with parameters of type ActionPanelModifierConstructorDescriptionToolBarAction(ActionPanel actionPanel, String groupName, String tooltip, ImageIcon icon) Unlike a regular EnhancedAction, we don't care about action name here. -
Uses of ActionPanel in ca.corbett.extras.properties.dialog
Methods in ca.corbett.extras.properties.dialog that return ActionPanelModifier and TypeMethodDescriptionActionPanelPropertiesDialog.getActionPanel()There are a crazy number of options for ActionPanel, so rather than write wrapper methods for each of them, we just expose the ActionPanel directly.