|
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.JButton com.jidesoft.swing.JideButton com.jidesoft.swing.JideToggleButton
public class JideToggleButton
An implementation of a two-state JideButton.
Nested Class Summary | |
---|---|
protected class |
JideToggleButton.AccessibleJToggleButton
This class implements accessibility support for the JToggleButton class. |
static class |
JideToggleButton.ToggleButtonModel
The ToggleButton model Warning: Serialized objects of this class will not be compatible with future Swing releases. |
Nested classes/interfaces inherited from class javax.swing.JButton |
---|
JButton.AccessibleJButton |
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.JideButton |
---|
CLIENT_PROPERTY_HIDE_POPUPMENU, PROPERTY_ALWAYS_SHOW_HYPERLINK |
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.Alignable |
---|
PROPERTY_ORIENTATION |
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 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 | |
---|---|
JideToggleButton()
Creates an initially unselected toggle button without setting the text or image. |
|
JideToggleButton(Action a)
Creates a toggle button where properties are taken from the Action supplied. |
|
JideToggleButton(Icon icon)
Creates an initially unselected toggle button with the specified image but no text. |
|
JideToggleButton(Icon icon,
boolean selected)
Creates a toggle button with the specified image and selection state, but no text. |
|
JideToggleButton(String text)
Creates an unselected toggle button with the specified text. |
|
JideToggleButton(String text,
boolean selected)
Creates a toggle button with the specified text and selection state. |
|
JideToggleButton(String text,
Icon icon)
Creates a toggle button that has the specified text and image, and that is initially unselected. |
|
JideToggleButton(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 a)
|
protected ItemListener |
createItemListener()
|
AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this JToggleButton. |
Methods inherited from class com.jidesoft.swing.JideButton |
---|
getBackgroundOfState, getButtonStyle, getDefaultForeground, getForegroundOfState, getOrientation, getUIClassID, isAlwaysShowHyperlink, setAlwaysShowHyperlink, setBackgroundOfState, setButtonStyle, setDefaultForeground, setForegroundOfState, setIcon, setOrientation, setRolloverEnabled, setText, supportHorizontalOrientation, supportVerticalOrientation, updateUI |
Methods inherited from class javax.swing.JButton |
---|
isDefaultButton, isDefaultCapable, paramString, removeNotify, setDefaultCapable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.jidesoft.swing.AlignmentSupport |
---|
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment |
Constructor Detail |
---|
public JideToggleButton()
public JideToggleButton(Icon icon)
icon
- the image that the button should displaypublic JideToggleButton(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 JideToggleButton(String text)
text
- the string displayed on the toggle buttonpublic JideToggleButton(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 JideToggleButton(Action a)
a
- Actionpublic JideToggleButton(String text, Icon icon)
text
- the string displayed on the buttonicon
- the image that the button should displaypublic JideToggleButton(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 actionPropertyChanged(Action action, String propertyName)
actionPropertyChanged
in class AbstractButton
protected void configurePropertiesFromAction(Action a)
configurePropertiesFromAction
in class AbstractButton
protected ItemListener createItemListener()
createItemListener
in class AbstractButton
public AccessibleContext getAccessibleContext()
getAccessibleContext
in interface Accessible
getAccessibleContext
in class JButton
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |