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 |
Modifier and Type | Field | Description |
---|---|---|
protected JRibbonApplicationMenuButton |
applicationMenuButton |
|
protected JScrollablePanel<BasicRibbonUI.BandHostPanel> |
bandScrollablePanel |
|
static java.lang.String |
HELP_PANEL_COMPONENTS |
|
protected JCommandButton |
helpButton |
|
protected javax.swing.JComponent |
helpPanel |
|
static java.lang.String |
IS_USING_TITLE_PANE |
Client property marking the ribbon component to indicate whether the task
bar and contextual task group headers should be shown on the title pane
of the window.
|
protected java.beans.PropertyChangeListener |
propertyChangeListener |
Property change listener.
|
protected JRibbon |
ribbon |
The associated ribbon.
|
protected javax.swing.event.ChangeListener |
ribbonChangeListener |
Change listener.
|
protected java.awt.event.ComponentListener |
ribbonComponentListener |
|
protected java.awt.event.ContainerListener |
ribbonContainerListener |
|
protected javax.swing.JPanel |
taskBarPanel |
Taskbar panel.
|
protected CommandToggleButtonGroup |
taskToggleButtonGroup |
Button group for task toggle buttons.
|
protected java.util.Map<RibbonTask,JRibbonTaskToggleButton> |
taskToggleButtons |
Map of toggle buttons of all tasks.
|
protected JScrollablePanel<BasicRibbonUI.TaskToggleButtonsHostPanel> |
taskToggleButtonsScrollablePanel |
applicationIcon
Constructor | Description |
---|---|
BasicRibbonUI() |
Creates a new basic ribbon UI delegate.
|
Modifier and Type | Method | Description |
---|---|---|
protected BasicRibbonUI.BandHostPanel |
createBandHostPanel() |
|
protected java.awt.LayoutManager |
createBandHostPanelLayoutManager() |
|
protected java.awt.LayoutManager |
createLayoutManager() |
Invoked by
installUI to create a layout manager object to
manage the JRibbon . |
protected java.awt.LayoutManager |
createTaskbarLayoutManager() |
Invoked by
installUI to create a layout manager object to
manage the JRibbon taskbar. |
protected BasicRibbonUI.TaskToggleButtonsHostPanel |
createTaskToggleButtonsHostPanel() |
|
protected java.awt.LayoutManager |
createTaskToggleButtonsHostPanelLayoutManager() |
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c) |
|
protected int |
getBandGap() |
Returns the layout gap for the bands in the associated ribbon.
|
java.awt.Rectangle |
getContextualTaskGroupBounds(RibbonContextualTaskGroup group) |
Returns the bounds of the specified contextual task group.
|
protected java.util.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.
|
java.util.Map<RibbonTask,JRibbonTaskToggleButton> |
getTaskToggleButtons() |
|
void |
handleMouseWheelEvent(java.awt.event.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(javax.swing.JComponent c) |
|
boolean |
isShowingScrollsForBands() |
|
boolean |
isShowingScrollsForTaskToggleButtons() |
|
protected boolean |
isUsingTitlePane() |
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
|
protected void |
paintBackground(java.awt.Graphics g) |
Paints the ribbon background.
|
protected void |
paintMinimizedRibbonSeparator(java.awt.Graphics g) |
|
protected void |
paintTaskArea(java.awt.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(javax.swing.JComponent c) |
|
void |
update(java.awt.Graphics g,
javax.swing.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 java.lang.String IS_USING_TITLE_PANE
JRibbonFrame
.public static final java.lang.String HELP_PANEL_COMPONENTS
protected JRibbon ribbon
protected javax.swing.JPanel taskBarPanel
protected JScrollablePanel<BasicRibbonUI.BandHostPanel> bandScrollablePanel
protected JScrollablePanel<BasicRibbonUI.TaskToggleButtonsHostPanel> taskToggleButtonsScrollablePanel
protected JRibbonApplicationMenuButton applicationMenuButton
protected javax.swing.JComponent helpPanel
protected JCommandButton helpButton
protected java.util.Map<RibbonTask,JRibbonTaskToggleButton> taskToggleButtons
protected CommandToggleButtonGroup taskToggleButtonGroup
protected javax.swing.event.ChangeListener ribbonChangeListener
protected java.beans.PropertyChangeListener propertyChangeListener
protected java.awt.event.ContainerListener ribbonContainerListener
protected java.awt.event.ComponentListener ribbonComponentListener
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.ComponentUI
public void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.ComponentUI
protected void installListeners()
protected void uninstallListeners()
protected void installDefaults()
protected void uninstallDefaults()
protected void installComponents()
protected java.awt.LayoutManager createTaskToggleButtonsHostPanelLayoutManager()
protected BasicRibbonUI.TaskToggleButtonsHostPanel createTaskToggleButtonsHostPanel()
protected BasicRibbonUI.BandHostPanel createBandHostPanel()
protected java.awt.LayoutManager createBandHostPanelLayoutManager()
protected void uninstallComponents()
public void update(java.awt.Graphics g, javax.swing.JComponent c)
update
in class javax.swing.plaf.ComponentUI
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.ComponentUI
protected void paintMinimizedRibbonSeparator(java.awt.Graphics g)
protected void paintBackground(java.awt.Graphics g)
g
- Graphics context.protected void paintTaskArea(java.awt.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 java.awt.Rectangle getContextualTaskGroupBounds(RibbonContextualTaskGroup group)
RibbonUI
getContextualTaskGroupBounds
in class RibbonUI
group
- Contextual task group.protected int getBandGap()
protected int getTabButtonGap()
protected java.awt.LayoutManager createLayoutManager()
installUI
to create a layout manager object to
manage the JRibbon
.protected java.awt.LayoutManager createTaskbarLayoutManager()
installUI
to create a layout manager object to
manage the JRibbon
taskbar.public int getTaskbarHeight()
public int getTaskToggleButtonHeight()
protected void syncRibbonState()
protected java.util.List<RibbonTask> getCurrentlyShownRibbonTasks()
protected boolean isUsingTitlePane()
protected void syncApplicationMenuTips()
public boolean isShowingScrollsForTaskToggleButtons()
isShowingScrollsForTaskToggleButtons
in class RibbonUI
public boolean isShowingScrollsForBands()
isShowingScrollsForBands
in class RibbonUI
public java.util.Map<RibbonTask,JRibbonTaskToggleButton> getTaskToggleButtons()
public void handleMouseWheelEvent(java.awt.event.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