|
JIDE Common Layer 2.7.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
com.jidesoft.plaf.vsnet.VsnetMenuItemUI
com.jidesoft.plaf.vsnet.VsnetMenuUI
com.jidesoft.plaf.basic.BasicJideSplitButtonUI
public class BasicJideSplitButtonUI
SplitButtonUI implementation
| Nested Class Summary | |
|---|---|
protected class |
BasicJideSplitButtonUI.MouseInputHandler
|
| Nested classes/interfaces inherited from class com.jidesoft.plaf.vsnet.VsnetMenuUI |
|---|
VsnetMenuUI.PostAction |
| Field Summary | |
|---|---|
protected java.awt.Color |
_darkShadowColor
|
protected java.awt.Color |
_highlight
|
protected boolean |
_isFloatingIcon
|
protected java.awt.Color |
_lightHighlightColor
|
protected ThemePainter |
_painter
|
protected java.awt.Color |
_shadowColor
|
protected int |
_splitButtonMargin
|
protected int |
_splitButtonMarginOnMenu
|
| Fields inherited from class com.jidesoft.plaf.vsnet.VsnetMenuUI |
|---|
changeListener, menuListener, propertyChangeListener |
| Fields inherited from class com.jidesoft.plaf.vsnet.VsnetMenuItemUI |
|---|
acceleratorFont, acceleratorForeground, acceleratorRect, acceleratorSelectionForeground, arrowIcon, arrowIconRect, backgroundColor, borderColor, checkIcon, checkIconRect, defaultAccelEndGap, defaultShadowWidth, defaultTextIconGap, disabledForeground, iconRect, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground, shadowColor, textRect, viewRect, windowInputMap, zeroRect |
| Constructor Summary | |
|---|---|
BasicJideSplitButtonUI()
|
|
| Method Summary | |
|---|---|
protected javax.swing.event.MouseInputListener |
createMouseInputListener(javax.swing.JComponent c)
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent x)
|
protected static void |
downButtonPressed(javax.swing.JMenu menu)
|
protected void |
drawStringUnderlineCharAt(javax.swing.JComponent c,
java.awt.Graphics g,
java.lang.String text,
int underlinedIndex,
int x,
int y)
|
static int |
getAdjustExtraWidth(java.awt.Component c,
java.lang.String text,
int extraWidth)
|
protected java.awt.Rectangle |
getButtonRect(javax.swing.JComponent c,
int orientation,
int width,
int height)
Gets the bounds for the button part of the JideSplitButton. |
protected java.awt.Rectangle |
getDropDownRect(javax.swing.JComponent c,
int orientation,
int width,
int height)
Gets the bounds for the drop down part of the JideSplitButton. |
protected static java.awt.Container |
getFirstParentMenuElement(java.awt.Component comp)
|
protected javax.swing.Icon |
getIcon(javax.swing.AbstractButton b)
|
javax.swing.InputMap |
getInputMap(int condition,
javax.swing.JComponent c)
Returns the InputMap for condition condition. |
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c)
|
static java.lang.String |
getMaxLengthWord(java.lang.String text)
|
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
|
protected int |
getOffset()
The gap between the button part and the drop down menu part. |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
|
protected java.lang.String |
getPropertyPrefix()
|
protected int |
getRightMargin()
|
static java.lang.String[] |
getWrappedText(java.lang.String text)
Gets the text after wrapping. |
protected void |
installDefaults()
|
protected void |
installKeyboardActions()
|
protected void |
installListeners()
|
protected boolean |
isAlwaysDropdown(javax.swing.JMenuItem menuItem)
|
protected boolean |
isFloatingIcon()
|
static void |
loadActionMap(LazyActionMap map)
Populates Buttons actions. |
protected void |
paintArrow(javax.swing.JMenuItem menuItem,
java.awt.Graphics g)
|
protected void |
paintBackground(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
java.awt.Color bgColor)
Draws the background of the menu item. |
protected void |
paintIcon(javax.swing.JMenuItem b,
java.awt.Graphics g)
|
protected void |
paintRaised2Border(java.awt.Graphics g,
java.awt.Rectangle b)
|
protected void |
paintRaisedBorder(java.awt.Graphics g,
java.awt.Rectangle b)
|
protected void |
paintSunken2Border(java.awt.Graphics g,
java.awt.Rectangle b)
|
protected void |
paintSunkenBorder(java.awt.Graphics g,
java.awt.Rectangle b)
|
protected void |
paintText(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
java.awt.Rectangle textRect,
java.lang.String text)
Method which renders the text of the current menu item. |
protected void |
uninstallDefaults()
|
protected void |
uninstallKeyboardActions()
|
protected void |
uninstallListeners()
|
| Methods inherited from class com.jidesoft.plaf.vsnet.VsnetMenuUI |
|---|
appendPath, createActionMap, createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createPopupMenuListener, createPropertyChangeListener, isMouseOver, setMouseOver, setupPostTimer |
| Methods inherited from class com.jidesoft.plaf.vsnet.VsnetMenuItemUI |
|---|
createInputMap, doClick, getPainter, getPath, getPreferredMenuItemSize, installComponents, installUI, isDownArrowVisible, paint, paintCheckBox, paintMenuItem, uninstallComponents, uninstallUI, update, useCheckAndArrow |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ThemePainter _painter
protected java.awt.Color _shadowColor
protected java.awt.Color _darkShadowColor
protected java.awt.Color _highlight
protected java.awt.Color _lightHighlightColor
protected int _splitButtonMargin
protected int _splitButtonMarginOnMenu
protected boolean _isFloatingIcon
| Constructor Detail |
|---|
public BasicJideSplitButtonUI()
| Method Detail |
|---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
protected java.lang.String getPropertyPrefix()
getPropertyPrefix in class VsnetMenuUIprotected void installDefaults()
installDefaults in class VsnetMenuUIprotected void uninstallDefaults()
uninstallDefaults in class VsnetMenuUIprotected void installListeners()
installListeners in class VsnetMenuUIprotected void uninstallListeners()
uninstallListeners in class VsnetMenuUI
public javax.swing.InputMap getInputMap(int condition,
javax.swing.JComponent c)
condition. Called as part of
installKeyboardActions.
condition - the conditionc - the component
protected void installKeyboardActions()
installKeyboardActions in class VsnetMenuUIprotected void uninstallKeyboardActions()
uninstallKeyboardActions in class VsnetMenuUIprotected javax.swing.event.MouseInputListener createMouseInputListener(javax.swing.JComponent c)
createMouseInputListener in class VsnetMenuUI
protected void paintBackground(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
java.awt.Color bgColor)
VsnetMenuItemUI
paintBackground in class VsnetMenuUIg - the paint graphicsmenuItem - menu item to be paintedbgColor - selection background color
protected void paintArrow(javax.swing.JMenuItem menuItem,
java.awt.Graphics g)
protected java.awt.Rectangle getDropDownRect(javax.swing.JComponent c,
int orientation,
int width,
int height)
JideSplitButton.
c - the component. In this case, it is the JideSplitButton.orientation - the orientation.width - the width of the JideSplitButtonheight - the height of the JideSplitButton.
JideSplitButton.
protected java.awt.Rectangle getButtonRect(javax.swing.JComponent c,
int orientation,
int width,
int height)
JideSplitButton.
c - the component. In this case, it is the JideSplitButton.orientation - the orientation.width - the width of the JideSplitButtonheight - the height of the JideSplitButton.
JideSplitButton.
protected void paintSunkenBorder(java.awt.Graphics g,
java.awt.Rectangle b)
protected void paintSunken2Border(java.awt.Graphics g,
java.awt.Rectangle b)
protected void paintRaised2Border(java.awt.Graphics g,
java.awt.Rectangle b)
protected void paintRaisedBorder(java.awt.Graphics g,
java.awt.Rectangle b)
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class VsnetMenuUIpublic java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize in class VsnetMenuItemUIpublic java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize in class VsnetMenuUI
protected void paintText(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
java.awt.Rectangle textRect,
java.lang.String text)
VsnetMenuUI
paintText in class VsnetMenuUIg - Graphics contextmenuItem - Current menu item to rendertextRect - Bounding rectangle to render the text.text - String to render
protected void drawStringUnderlineCharAt(javax.swing.JComponent c,
java.awt.Graphics g,
java.lang.String text,
int underlinedIndex,
int x,
int y)
protected void paintIcon(javax.swing.JMenuItem b,
java.awt.Graphics g)
paintIcon in class VsnetMenuItemUIprotected boolean isFloatingIcon()
isFloatingIcon in class VsnetMenuItemUIprotected javax.swing.Icon getIcon(javax.swing.AbstractButton b)
getIcon in class VsnetMenuItemUIprotected int getOffset()
protected boolean isAlwaysDropdown(javax.swing.JMenuItem menuItem)
protected int getRightMargin()
getRightMargin in class VsnetMenuItemUIpublic static void loadActionMap(LazyActionMap map)
map - the mapprotected static void downButtonPressed(javax.swing.JMenu menu)
protected static java.awt.Container getFirstParentMenuElement(java.awt.Component comp)
public static int getAdjustExtraWidth(java.awt.Component c,
java.lang.String text,
int extraWidth)
c - the componenttext - the textextraWidth - the extra width
public static java.lang.String getMaxLengthWord(java.lang.String text)
public static java.lang.String[] getWrappedText(java.lang.String text)
text - the text
|
JIDE Common Layer 2.7.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||