Modifier and Type | Class | Description |
---|---|---|
protected static class |
BasicRibbonUI.BandHostPanel |
|
protected static class |
BasicRibbonUI.BandHostPopupPanel |
|
protected class |
BasicRibbonUI.RibbonLayout |
Layout for the ribbon.
|
protected class |
BasicRibbonUI.TaskToggleButtonsHostPanel |
applicationIcon
Constructor | Description |
---|---|
BasicRibbonUI() |
Creates a new basic ribbon UI delegate.
|
Modifier and Type | Method | Description |
---|---|---|
protected BasicRibbonUI.BandHostPanel |
createBandHostPanel() |
|
protected LayoutManager |
createBandHostPanelLayoutManager() |
|
protected LayoutManager |
createLayoutManager() |
Invoked by
installUI to create a layout manager object to
manage the JRibbon . |
protected LayoutManager |
createTaskbarLayoutManager() |
Invoked by
installUI to create a layout manager object to
manage the JRibbon taskbar. |
protected BasicRibbonUI.TaskToggleButtonsHostPanel |
createTaskToggleButtonsHostPanel() |
|
protected LayoutManager |
createTaskToggleButtonsHostPanelLayoutManager() |
|
static ComponentUI |
createUI(JComponent c) |
|
protected int |
getBandGap() |
Returns the layout gap for the bands in the associated ribbon.
|
Rectangle |
getContextualTaskGroupBounds(RibbonContextualTaskGroup group) |
Returns the bounds of the specified contextual task group.
|
protected List<RibbonTask> |
getCurrentlyShownRibbonTasks() |
Returns the list of currently shown ribbon tasks.
|
protected int |
getTabButtonGap() |
Returns the layout gap for the tab buttons in the associated ribbon.
|
int |
getTaskbarHeight() |
Returns the height of the taskbar area.
|
int |
getTaskToggleButtonHeight() |
Returns the height of the task toggle button area.
|
Map<RibbonTask,JRibbonTaskToggleButton> |
getTaskToggleButtons() |
|
void |
handleMouseWheelEvent(MouseWheelEvent e) |
|
protected void |
installComponents() |
Installs subcomponents on the associated ribbon.
|
protected void |
installDefaults() |
Installs defaults on the associated ribbon.
|
protected void |
installListeners() |
Installs listeners on the associated ribbon.
|
void |
installUI(JComponent c) |
|
boolean |
isShowingScrollsForBands() |
|
boolean |
isShowingScrollsForTaskToggleButtons() |
|
protected boolean |
isUsingTitlePane() |
|
void |
paint(Graphics g,
JComponent c) |
|
protected void |
paintBackground(Graphics g) |
Paints the ribbon background.
|
protected void |
paintMinimizedRibbonSeparator(Graphics g) |
|
protected void |
paintTaskArea(Graphics g,
int x,
int y,
int width,
int height) |
Paints the task border.
|
protected void |
scrollAndRevealTaskToggleButton(JRibbonTaskToggleButton taskToggleButton) |
|
void |
setApplicationIcon(ResizableIcon applicationIcon) |
Sets the application icon.
|
protected void |
syncApplicationMenuTips() |
|
protected void |
syncRibbonState() |
|
protected void |
uninstallComponents() |
Uninstalls subcomponents from the associated ribbon.
|
protected void |
uninstallDefaults() |
Uninstalls defaults from the associated ribbon.
|
protected void |
uninstallListeners() |
Uninstalls listeners from the associated ribbon.
|
void |
uninstallUI(JComponent c) |
|
void |
update(Graphics g,
JComponent c) |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApplicationIcon
public static final String IS_USING_TITLE_PANE
JRibbonFrame
.public static final String HELP_PANEL_COMPONENTS
protected JRibbon ribbon
protected JPanel taskBarPanel
protected JScrollablePanel<BasicRibbonUI.BandHostPanel> bandScrollablePanel
protected JScrollablePanel<BasicRibbonUI.TaskToggleButtonsHostPanel> taskToggleButtonsScrollablePanel
protected JRibbonApplicationMenuButton applicationMenuButton
protected JComponent helpPanel
protected JCommandButton helpButton
protected Map<RibbonTask,JRibbonTaskToggleButton> taskToggleButtons
protected CommandToggleButtonGroup taskToggleButtonGroup
protected ChangeListener ribbonChangeListener
protected PropertyChangeListener propertyChangeListener
protected ContainerListener ribbonContainerListener
protected ComponentListener ribbonComponentListener
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
installUI
in class ComponentUI
public void uninstallUI(JComponent c)
uninstallUI
in class ComponentUI
protected void installListeners()
protected void uninstallListeners()
protected void installDefaults()
protected void uninstallDefaults()
protected void installComponents()
protected LayoutManager createTaskToggleButtonsHostPanelLayoutManager()
protected BasicRibbonUI.TaskToggleButtonsHostPanel createTaskToggleButtonsHostPanel()
protected BasicRibbonUI.BandHostPanel createBandHostPanel()
protected LayoutManager createBandHostPanelLayoutManager()
protected void uninstallComponents()
public void update(Graphics g, JComponent c)
update
in class ComponentUI
public void paint(Graphics g, JComponent c)
paint
in class ComponentUI
protected void paintMinimizedRibbonSeparator(Graphics g)
protected void paintBackground(Graphics g)
g
- Graphics context.protected void paintTaskArea(Graphics g, int x, int y, int width, int height)
g
- Graphics context.x
- Left X of the tasks band bounds.y
- Top Y of the tasks band bounds.width
- Width of the tasks band bounds.height
- Height of the tasks band bounds.public Rectangle getContextualTaskGroupBounds(RibbonContextualTaskGroup group)
RibbonUI
getContextualTaskGroupBounds
in class RibbonUI
group
- Contextual task group.protected int getBandGap()
protected int getTabButtonGap()
protected LayoutManager createLayoutManager()
installUI
to create a layout manager object to
manage the JRibbon
.protected LayoutManager createTaskbarLayoutManager()
installUI
to create a layout manager object to
manage the JRibbon
taskbar.public int getTaskbarHeight()
public int getTaskToggleButtonHeight()
protected void syncRibbonState()
protected List<RibbonTask> getCurrentlyShownRibbonTasks()
protected boolean isUsingTitlePane()
protected void syncApplicationMenuTips()
public boolean isShowingScrollsForTaskToggleButtons()
isShowingScrollsForTaskToggleButtons
in class RibbonUI
public boolean isShowingScrollsForBands()
isShowingScrollsForBands
in class RibbonUI
public Map<RibbonTask,JRibbonTaskToggleButton> getTaskToggleButtons()
public void handleMouseWheelEvent(MouseWheelEvent e)
handleMouseWheelEvent
in class RibbonUI
protected void scrollAndRevealTaskToggleButton(JRibbonTaskToggleButton taskToggleButton)
public void setApplicationIcon(ResizableIcon applicationIcon)
RibbonUI
There is no check performed to see if applicationIcon
is
null
.
setApplicationIcon
in class RibbonUI
applicationIcon
- the application icon to set