SubstanceRibbonUIpublic abstract class BasicRibbonUI extends RibbonUI
JRibbon.| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
BasicRibbonUI.BandHostPopupPanel |
|
protected class |
BasicRibbonUI.TaskToggleButtonsHostPanel |
| Modifier and Type | Field | Description |
|---|---|---|
protected java.awt.Container |
anchoredButtons |
|
protected JRibbonApplicationMenuButton |
applicationMenuButton |
|
protected JScrollablePanel<javax.swing.JPanel> |
bandScrollablePanel |
|
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 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 |
| Constructor | Description |
|---|---|
BasicRibbonUI() |
Creates a new basic ribbon UI delegate.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected java.awt.LayoutManager |
createBandHostPanelLayoutManager() |
|
protected java.awt.LayoutManager |
createLayoutManager() |
Invoked by
installUI to create a layout manager object to manage the
JRibbon. |
protected abstract BasicRibbonUI.TaskToggleButtonsHostPanel |
createTaskToggleButtonsHostPanel() |
|
protected java.awt.LayoutManager |
createTaskToggleButtonsHostPanelLayoutManager() |
|
java.util.List<JCommandButton> |
getAnchoredCommandButtons() |
|
JRibbonApplicationMenuButton |
getApplicationMenuButton() |
|
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.
|
abstract int |
getTaskbarHeight() |
Returns the height of the taskbar area.
|
abstract 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 |
isShowingScrollsForTaskToggleButtons() |
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
|
protected abstract void |
paintBackground(java.awt.Graphics g) |
Paints the ribbon background.
|
protected abstract void |
paintMinimizedRibbonSeparator(java.awt.Graphics g) |
|
protected void |
scrollAndRevealTaskToggleButton(JRibbonTaskToggleButton taskToggleButton) |
|
protected abstract void |
syncApplicationMenuTips() |
|
protected void |
syncRibbonState() |
|
protected void |
syncSelectedTask() |
|
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) |
protected JRibbon ribbon
protected JScrollablePanel<javax.swing.JPanel> bandScrollablePanel
protected JScrollablePanel<BasicRibbonUI.TaskToggleButtonsHostPanel> taskToggleButtonsScrollablePanel
protected JRibbonApplicationMenuButton applicationMenuButton
protected java.awt.Container anchoredButtons
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.ComponentListener ribbonComponentListener
public void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.ComponentUIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.ComponentUIprotected void installListeners()
protected void uninstallListeners()
protected void installDefaults()
protected void uninstallDefaults()
protected void installComponents()
public JRibbonApplicationMenuButton getApplicationMenuButton()
getApplicationMenuButton in class RibbonUIprotected java.awt.LayoutManager createTaskToggleButtonsHostPanelLayoutManager()
protected abstract BasicRibbonUI.TaskToggleButtonsHostPanel createTaskToggleButtonsHostPanel()
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.ComponentUIpublic void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.ComponentUIprotected abstract void paintMinimizedRibbonSeparator(java.awt.Graphics g)
protected abstract void paintBackground(java.awt.Graphics g)
g - Graphics context.public java.awt.Rectangle getContextualTaskGroupBounds(RibbonContextualTaskGroup group)
RibbonUIgetContextualTaskGroupBounds in class RibbonUIgroup - 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.public abstract int getTaskbarHeight()
public abstract int getTaskToggleButtonHeight()
protected void syncSelectedTask()
protected void syncRibbonState()
protected java.util.List<RibbonTask> getCurrentlyShownRibbonTasks()
protected abstract void syncApplicationMenuTips()
public boolean isShowingScrollsForTaskToggleButtons()
isShowingScrollsForTaskToggleButtons in class RibbonUIpublic java.util.Map<RibbonTask,JRibbonTaskToggleButton> getTaskToggleButtons()
public java.util.List<JCommandButton> getAnchoredCommandButtons()
public void handleMouseWheelEvent(java.awt.event.MouseWheelEvent e)
handleMouseWheelEvent in class RibbonUIprotected void scrollAndRevealTaskToggleButton(JRibbonTaskToggleButton taskToggleButton)