|
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.AbstractButton javax.swing.JMenuItem javax.swing.JMenu com.jidesoft.swing.JideMenu com.jidesoft.swing.JideSplitButton com.jidesoft.swing.JideToggleSplitButton
public class JideToggleSplitButton
An implementation of a two-state JideButton.
Warning:SplitButtonGroup
has to be used in place of ButtonGroup
for JideToggleSplitButton
s.
Nested Class Summary | |
---|---|
protected class |
JideToggleSplitButton.AccessibleJToggleButton
This class implements accessibility support for the JToggleButton class. |
static class |
JideToggleSplitButton.ToggleSplitButtonModel
The ToggleButton model Warning: Serialized objects of this class will not be compatible with future Swing releases. |
Nested classes/interfaces inherited from class com.jidesoft.swing.JideMenu |
---|
JideMenu.MenuCreator, JideMenu.PopupMenuCustomizer, JideMenu.PopupMenuOriginCalculator |
Nested classes/interfaces inherited from class javax.swing.JMenu |
---|
JMenu.AccessibleJMenu, JMenu.WinListener |
Nested classes/interfaces inherited from class javax.swing.JMenuItem |
---|
JMenuItem.AccessibleJMenuItem |
Nested classes/interfaces inherited from class javax.swing.AbstractButton |
---|
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
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 com.jidesoft.swing.JideSplitButton |
---|
ACTION_PROPERTY_SPLIT_BUTTON_ENABLED, PROPERTY_ALWAYS_DROPDOWN |
Fields inherited from class com.jidesoft.swing.JideMenu |
---|
DELAY |
Fields inherited from class javax.swing.JMenu |
---|
popupListener |
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 com.jidesoft.swing.ButtonStyle |
---|
BUTTON_STYLE_PROPERTY, CLIENT_PROPERTY_SEGMENT_POSITION, FLAT_STYLE, HYPERLINK_STYLE, SEGMENT_POSITION_FIRST, SEGMENT_POSITION_LAST, SEGMENT_POSITION_MIDDLE, SEGMENT_POSITION_ONLY, TOOLBAR_STYLE, TOOLBOX_STYLE |
Fields inherited from interface com.jidesoft.swing.Alignable |
---|
PROPERTY_ORIENTATION |
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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JideToggleSplitButton()
Creates an initially unselected toggle button without setting the text or image. |
|
JideToggleSplitButton(Action a)
Creates a toggle button where properties are taken from the Action supplied. |
|
JideToggleSplitButton(Icon icon)
Creates an initially unselected toggle button with the specified image but no text. |
|
JideToggleSplitButton(Icon icon,
boolean selected)
Creates a toggle button with the specified image and selection state, but no text. |
|
JideToggleSplitButton(String text)
Creates an unselected toggle button with the specified text. |
|
JideToggleSplitButton(String text,
boolean selected)
Creates a toggle button with the specified text and selection state. |
|
JideToggleSplitButton(String text,
Icon icon)
Creates a toggle button that has the specified text and image, and that is initially unselected. |
|
JideToggleSplitButton(String text,
Icon icon,
boolean selected)
Creates a toggle button with the specified text, image, and selection state. |
Method Summary | |
---|---|
protected void |
actionPropertyChanged(Action action,
String propertyName)
|
protected void |
configurePropertiesFromAction(Action action)
|
AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this JToggleButton. |
Methods inherited from class com.jidesoft.swing.JideSplitButton |
---|
doClick, doClickOnMenu, getBackgroundOfState, getButtonStyle, getDefaultForeground, getForegroundOfState, getUI, getUIClassID, initComponent, isAlwaysDropdown, isButtonEnabled, isButtonSelected, isSplitButtonEnabled, setAlwaysDropdown, setBackgroundOfState, setButtonEnabled, setButtonSelected, setButtonStyle, setDefaultForeground, setForegroundOfState, setIconFromAction, setText, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.MenuElement |
---|
processKeyEvent, processMouseEvent |
Constructor Detail |
---|
public JideToggleSplitButton()
public JideToggleSplitButton(Icon icon)
icon
- the image that the button should displaypublic JideToggleSplitButton(Icon icon, boolean selected)
icon
- the image that the button should displayselected
- if true, the button is initially selected; otherwise, the button is initially unselectedpublic JideToggleSplitButton(String text)
text
- the string displayed on the toggle buttonpublic JideToggleSplitButton(String text, boolean selected)
text
- the string displayed on the toggle buttonselected
- if true, the button is initially selected; otherwise, the button is initially unselectedpublic JideToggleSplitButton(Action a)
public JideToggleSplitButton(String text, Icon icon)
text
- the string displayed on the buttonicon
- the image that the button should displaypublic JideToggleSplitButton(String text, Icon icon, boolean selected)
text
- the text of the toggle buttonicon
- the image that the button should displayselected
- if true, the button is initially selected; otherwise, the button is initially unselectedMethod Detail |
---|
protected void configurePropertiesFromAction(Action action)
configurePropertiesFromAction
in class JideSplitButton
protected void actionPropertyChanged(Action action, String propertyName)
actionPropertyChanged
in class JideSplitButton
public AccessibleContext getAccessibleContext()
getAccessibleContext
in interface Accessible
getAccessibleContext
in class JMenu
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |