|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JToggleButton
com.sibvisions.rad.ui.swing.ext.JVxToggleButton
public class JVxToggleButton
The JVxToggleButton
is a JToggleButton
extension.
JToggleButton
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JToggleButton |
---|
JToggleButton.AccessibleJToggleButton, JToggleButton.ToggleButtonModel |
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 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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JVxToggleButton()
Creates an initially unselected toggle button without setting the text or image. |
|
JVxToggleButton(Action pAction)
Creates a toggle button where properties are taken from the Action supplied. |
|
JVxToggleButton(Icon pIcon)
Creates an initially unselected toggle button with the specified image but no text. |
|
JVxToggleButton(Icon pIcon,
boolean pSelected)
Creates a toggle button with the specified image and selection state, but no text. |
|
JVxToggleButton(String pText)
Creates an unselected toggle button with the specified text. |
|
JVxToggleButton(String pText,
boolean pSelected)
Creates a toggle button with the specified text and selection state. |
|
JVxToggleButton(String pText,
Icon pIcon)
Creates a toggle button that has the specified text and image, and that is initially unselected. |
|
JVxToggleButton(String pText,
Icon pIcon,
boolean pSelected)
Creates a toggle button with the specified text, image, and selection state. |
Method Summary | |
---|---|
KeyStroke |
getAccelerator()
Returns the KeyStroke which serves as an accelerator
for the menu item. |
boolean |
isBorderOnMouseEntered()
Gets, if the border should only be shown on mouse entered. |
void |
setAccelerator(KeyStroke pKeyStroke)
Sets the key combination which invokes the menu item's action listeners without navigating the menu hierarchy. |
void |
setBorderOnMouseEntered(boolean pBorderOnMouseEntered)
Sets, if the border should only be shown on mouse entered. |
Methods inherited from class javax.swing.JToggleButton |
---|
getAccessibleContext, getUIClassID, paramString, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JVxToggleButton()
public JVxToggleButton(Icon pIcon)
pIcon
- the image that the button should displaypublic JVxToggleButton(Icon pIcon, boolean pSelected)
pIcon
- the image that the button should displaypSelected
- if true, the button is initially selected;
otherwise, the button is initially unselectedpublic JVxToggleButton(String pText)
pText
- the string displayed on the toggle buttonpublic JVxToggleButton(String pText, boolean pSelected)
pText
- the string displayed on the toggle buttonpSelected
- if true, the button is initially selected;
otherwise, the button is initially unselectedpublic JVxToggleButton(Action pAction)
pAction
- the action.public JVxToggleButton(String pText, Icon pIcon)
pText
- the string displayed on the buttonpIcon
- the image that the button should displaypublic JVxToggleButton(String pText, Icon pIcon, boolean pSelected)
pText
- the text of the toggle buttonpIcon
- the image that the button should displaypSelected
- if true, the button is initially selected;
otherwise, the button is initially unselectedMethod Detail |
---|
public KeyStroke getAccelerator()
KeyStroke
which serves as an accelerator
for the menu item.
KeyStroke
object identifying the
accelerator keypublic void setAccelerator(KeyStroke pKeyStroke)
pKeyStroke
- the KeyStroke
which will
serve as an acceleratorpublic boolean isBorderOnMouseEntered()
public void setBorderOnMouseEntered(boolean pBorderOnMouseEntered)
pBorderOnMouseEntered
- true, if the border should only be shown on mouse entered.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |