|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JMenuBar com.jidesoft.action.CommandBarTitleBar
public class CommandBarTitleBar
CommandBarTitleBar
is used in CommandBar
when it's in floating mode.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JMenuBar |
---|
JMenuBar.AccessibleJMenuBar |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface com.jidesoft.swing.Alignable |
---|
PROPERTY_ORIENTATION |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
CommandBarTitleBar(String title)
|
Method Summary | |
---|---|
Component |
getComponent()
Implemented to be a MenuElement . |
int |
getOrientation()
Gets the orientation. |
MenuElement[] |
getSubElements()
Implemented to be a MenuElement -- returns the menus in this menu bar. |
String |
getTitle()
Gets the title of this title bar. |
MenuBarUI |
getUI()
Returns the L&F object that renders this component. |
String |
getUIClassID()
Returns the name of the L&F class that renders this component. |
boolean |
isMenuBar()
Overridden to always return false. |
void |
menuSelectionChanged(boolean isIncluded)
|
void |
processKeyEvent(KeyEvent event,
MenuElement[] path,
MenuSelectionManager manager)
|
void |
processMouseEvent(MouseEvent event,
MenuElement[] path,
MenuSelectionManager manager)
|
void |
setOrientation(int orientation)
Changes the orientation. |
void |
setTitle(String title)
Sets the title of this title bar. |
void |
setUI(CommandBarTitleBarUI ui)
Sets the L&F object that renders this component. |
boolean |
supportHorizontalOrientation()
return true if it supports horizontal orientation. |
boolean |
supportVerticalOrientation()
return true if it supports vertical orientation. |
void |
updateUI()
Resets the UI property to a value from the current look and feel. |
Methods inherited from class javax.swing.JMenuBar |
---|
add, addNotify, getAccessibleContext, getComponentAtIndex, getComponentIndex, getHelpMenu, getMargin, getMenu, getMenuCount, getSelectionModel, isBorderPainted, isSelected, paintBorder, paramString, processKeyBinding, removeNotify, setBorderPainted, setHelpMenu, setMargin, setSelected, setSelectionModel, setUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CommandBarTitleBar(String title)
Method Detail |
---|
public MenuBarUI getUI()
getUI
in class JMenuBar
public void setUI(CommandBarTitleBarUI ui)
ui
- the CommandBarTitleBarUI L&F objectUIDefaults.getUI(javax.swing.JComponent)
public void updateUI()
updateUI
in class JMenuBar
JComponent.updateUI()
public String getUIClassID()
getUIClassID
in class JMenuBar
JComponent.getUIClassID()
,
UIDefaults.getUI(javax.swing.JComponent)
public boolean supportVerticalOrientation()
supportVerticalOrientation
in interface Alignable
public boolean supportHorizontalOrientation()
supportHorizontalOrientation
in interface Alignable
public void setOrientation(int orientation)
setOrientation
in interface Alignable
orientation
- public int getOrientation()
getOrientation
in interface Alignable
public void processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager)
processMouseEvent
in interface MenuElement
processMouseEvent
in class JMenuBar
public void processKeyEvent(KeyEvent event, MenuElement[] path, MenuSelectionManager manager)
processKeyEvent
in interface MenuElement
processKeyEvent
in class JMenuBar
public void menuSelectionChanged(boolean isIncluded)
menuSelectionChanged
in interface MenuElement
menuSelectionChanged
in class JMenuBar
public MenuElement[] getSubElements()
MenuElement
-- returns the menus in this menu bar. This is the reason for
implementing the MenuElement
interface -- so that the menu bar can be treated the same as other menu
elements.
getSubElements
in interface MenuElement
getSubElements
in class JMenuBar
public Component getComponent()
MenuElement
. Returns this object.
getComponent
in interface MenuElement
getComponent
in class JMenuBar
Component
(this)getSubElements()
public String getTitle()
public void setTitle(String title)
title
- the new title bar.public boolean isMenuBar()
isMenuBar
in interface TopLevelMenuContainer
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |