Package ca.corbett.extras.actionpanel
Class BorderOptions
java.lang.Object
ca.corbett.extras.actionpanel.ActionPanelOptions
ca.corbett.extras.actionpanel.BorderOptions
Encapsulates all border-related options for an ActionPanel. In addition to setting a border
around the ActionPanel itself, which can be done through the usual means, the following
additional border options are supported for the action groups within the ActionPanel:
- Group border - extends around the entire action group.
- Header border - extends around the header section of an action group.
- Action tray border - extends around the action portion of an action group. That is, not including the header at the top, or the toolbar at the bottom. The middle section only.
- ToolBar border - extends around the ToolBar section of an action group.
The above options are set once, and apply to all action groups within an ActionPanel. It is not currently possible to have different borders per action group.
The above options can be set independently, or can be used in any combination.
- Since:
- swing-extras 2.8
- Author:
- scorbo2
-
Method Summary
Modifier and TypeMethodDescriptionReturns the border for the action tray section of action groups, or null if no border is set.Returns the group border, or null if no border is set.Returns the border for action group headers, or null if no border is set.Returns the border for the ToolBar section of action groups, or null if no border is set.setActionTrayBorder(Border border) Sets the border for the action tray section of action groups.setGroupBorder(Border border) Sets a border that will extend around the entire action group (all sections).setHeaderBorder(Border border) Sets the border for action group headers.setToolBarBorder(Border border) Sets the border for the ToolBar section of action groups.Methods inherited from class ca.corbett.extras.actionpanel.ActionPanelOptions
addListener, fireOptionsChanged, removeListener
-
Method Details
-
setGroupBorder
Sets a border that will extend around the entire action group (all sections).- Parameters:
border- The border to use, or null for no border.- Returns:
- This BorderOptions instance, for method chaining.
-
getGroupBorder
Returns the group border, or null if no border is set.- Returns:
- A Border to use for action groups, or null for no border.
-
setHeaderBorder
Sets the border for action group headers. The header is the top section containing the group name and expand/collapse button, not including the action tray or toolbar below it.- Parameters:
border- The border to use, or null for no border.- Returns:
- This BorderOptions instance, for method chaining.
-
getHeaderBorder
Returns the border for action group headers, or null if no border is set.- Returns:
- A Border to use for group headers, or null for no border.
-
setActionTrayBorder
Sets the border for the action tray section of action groups. The action tray is the middle section of an action group, not including the header at the top, or the toolbar at the bottom.- Parameters:
border- The border to use, or null for no border.- Returns:
- This BorderOptions instance, for method chaining.
-
getActionTrayBorder
Returns the border for the action tray section of action groups, or null if no border is set.- Returns:
- A Border to use for the action tray section of action groups, or null for no border.
-
setToolBarBorder
Sets the border for the ToolBar section of action groups. The ToolBar is the bottom section of an action group, not including the header at the top, or the action tray in the middle.- Parameters:
border- The border to use, or null for no border.- Returns:
- This BorderOptions instance, for method chaining.
-
getToolBarBorder
Returns the border for the ToolBar section of action groups, or null if no border is set.- Returns:
- A Border to use for the ToolBar section of action groups, or null for no border.
-