|
||||||||||
| 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.uwyn.rife.swing.JBorderlessToggleButton
public class JBorderlessToggleButton
A toggle button that maintains its borderless look when the look & feel changes.
| Nested 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 | |
|---|---|
JBorderlessToggleButton()
Creates an initially unselected toggle button without setting the text or image. |
|
JBorderlessToggleButton(Action a)
Creates a toggle button where properties are taken from the Action supplied. |
|
JBorderlessToggleButton(Icon icon)
Creates an initially unselected toggle button with the specified image but no text. |
|
JBorderlessToggleButton(Icon icon,
boolean selected)
Creates a toggle button with the specified image and selection state, but no text. |
|
JBorderlessToggleButton(String text)
Creates an unselected toggle button with the specified text. |
|
JBorderlessToggleButton(String text,
boolean selected)
Creates a toggle button with the specified text and selection state. |
|
JBorderlessToggleButton(String text,
Icon icon)
Creates a toggle button that has the specified text and image, and that is initially unselected. |
|
JBorderlessToggleButton(String text,
Icon icon,
boolean selected)
Creates a toggle button with the specified text, image, and selection state. |
|
| Method Summary | |
|---|---|
void |
updateUI()
Notification from the UIFactory that the L&F has changed. |
| Methods inherited from class javax.swing.JToggleButton |
|---|
getAccessibleContext, getUIClassID, paramString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JBorderlessToggleButton()
public JBorderlessToggleButton(Icon icon)
icon - the image that the button should display
public JBorderlessToggleButton(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 JBorderlessToggleButton(String text)
text - the string displayed on the toggle button
public JBorderlessToggleButton(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 JBorderlessToggleButton(Action a)
a -
public JBorderlessToggleButton(String text,
Icon icon)
text - the string displayed on the buttonicon - the image that the button should display
public JBorderlessToggleButton(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 unselected| Method Detail |
|---|
public void updateUI()
updateUI in class JToggleButtonJToggleButton.updateUI()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||