public class IcyToggleButton extends javax.swing.JToggleButton
javax.swing.JToggleButton.ToggleButtonModel
BORDER_PAINTED_CHANGED_PROPERTY, CONTENT_AREA_FILLED_CHANGED_PROPERTY, DISABLED_ICON_CHANGED_PROPERTY, DISABLED_SELECTED_ICON_CHANGED_PROPERTY, FOCUS_PAINTED_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, MARGIN_CHANGED_PROPERTY, MNEMONIC_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, PRESSED_ICON_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTY
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
IcyToggleButton(IcyAbstractAction action)
Create a toggle button with specified action
|
IcyToggleButton(IcyAbstractAction action)
Deprecated.
User
IcyToggleButton(IcyAbstractAction) instead. |
IcyToggleButton(IcyIcon icon)
Create a toggle button with specified text and icon
|
IcyToggleButton(java.awt.Image iconImage)
Deprecated.
Use
IcyToggleButton(IcyIcon) instead. |
IcyToggleButton(java.awt.Image iconImage,
int iconSize)
Deprecated.
Use
IcyToggleButton(IcyIcon) instead. |
IcyToggleButton(java.lang.String iconName)
Deprecated.
Use
IcyToggleButton(IcyIcon) instead. |
IcyToggleButton(java.lang.String text,
IcyIcon icon)
Create a toggle button with specified text and icon
|
IcyToggleButton(java.lang.String text,
java.awt.Image iconImage)
Deprecated.
Use
IcyToggleButton(String, IcyIcon) instead. |
IcyToggleButton(java.lang.String text,
java.awt.Image iconImage,
int iconSize)
Deprecated.
Use
IcyToggleButton(String, IcyIcon) instead. |
IcyToggleButton(java.lang.String iconName,
int iconSize)
Deprecated.
Use
IcyToggleButton(IcyIcon) instead. |
IcyToggleButton(java.lang.String text,
java.lang.String iconName)
Deprecated.
Use
IcyToggleButton(String, IcyIcon) instead. |
IcyToggleButton(java.lang.String text,
java.lang.String iconName,
int iconSize)
Deprecated.
Use
IcyToggleButton(String, IcyIcon) instead. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIconName() |
int |
getIconSize() |
IcyIcon |
getIcyIcon()
Return the icon as IcyIcon
|
java.lang.String |
getSelectedIconName() |
IcyIcon |
getSelectedIcyIcon()
Return the selected icon as IcyIcon
|
boolean |
isFlat() |
void |
setAction(javax.swing.Action a) |
void |
setFlat(boolean flat) |
void |
setIconImage(java.awt.Image iconImage) |
void |
setIconName(java.lang.String iconName) |
void |
setIconSize(int iconSize) |
void |
setSelectedIconImage(java.awt.Image iconImage) |
void |
setSelectedIconName(java.lang.String iconName) |
void |
setText(java.lang.String text) |
void |
updateSize() |
addActionListener, addChangeListener, addItemListener, doClick, doClick, getAction, getActionCommand, getActionListeners, getChangeListeners, getDisabledIcon, getDisabledSelectedIcon, getDisplayedMnemonicIndex, getHideActionText, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getItemListeners, getLabel, getMargin, getMnemonic, getModel, getMultiClickThreshhold, getPressedIcon, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getSelectedObjects, getText, getUI, getVerticalAlignment, getVerticalTextPosition, imageUpdate, isBorderPainted, isContentAreaFilled, isFocusPainted, isRolloverEnabled, isSelected, removeActionListener, removeChangeListener, removeItemListener, removeNotify, setActionCommand, setBorderPainted, setContentAreaFilled, setDisabledIcon, setDisabledSelectedIcon, setDisplayedMnemonicIndex, setEnabled, setFocusPainted, setHideActionText, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabel, setLayout, setMargin, setMnemonic, setMnemonic, setModel, setMultiClickThreshhold, setPressedIcon, setRolloverEnabled, setRolloverIcon, setRolloverSelectedIcon, setSelected, setSelectedIcon, setUI, setVerticalAlignment, setVerticalTextPosition
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public IcyToggleButton(IcyAbstractAction action)
@Deprecated public IcyToggleButton(IcyAbstractAction action)
IcyToggleButton(IcyAbstractAction)
instead.public IcyToggleButton(java.lang.String text, IcyIcon icon)
public IcyToggleButton(IcyIcon icon)
@Deprecated public IcyToggleButton(java.lang.String text, java.awt.Image iconImage, int iconSize)
IcyToggleButton(String, IcyIcon)
instead.@Deprecated public IcyToggleButton(java.lang.String text, java.awt.Image iconImage)
IcyToggleButton(String, IcyIcon)
instead.@Deprecated public IcyToggleButton(java.awt.Image iconImage, int iconSize)
IcyToggleButton(IcyIcon)
instead.@Deprecated public IcyToggleButton(java.awt.Image iconImage)
IcyToggleButton(IcyIcon)
instead.@Deprecated public IcyToggleButton(java.lang.String text, java.lang.String iconName, int iconSize)
IcyToggleButton(String, IcyIcon)
instead.@Deprecated public IcyToggleButton(java.lang.String text, java.lang.String iconName)
IcyToggleButton(String, IcyIcon)
instead.@Deprecated public IcyToggleButton(java.lang.String iconName, int iconSize)
IcyToggleButton(IcyIcon)
instead.@Deprecated public IcyToggleButton(java.lang.String iconName)
IcyToggleButton(IcyIcon)
instead.public void setAction(javax.swing.Action a)
setAction
in class javax.swing.AbstractButton
public IcyIcon getIcyIcon()
public IcyIcon getSelectedIcyIcon()
public boolean isFlat()
public void setFlat(boolean flat)
flat
- the flat to setpublic java.lang.String getIconName()
public void setIconName(java.lang.String iconName)
iconName
- the iconName to setpublic java.lang.String getSelectedIconName()
public void setSelectedIconName(java.lang.String iconName)
iconName
- the iconName to setpublic void setIconImage(java.awt.Image iconImage)
iconImage
- the iconImage to setpublic void setSelectedIconImage(java.awt.Image iconImage)
iconImage
- the iconImage to setpublic int getIconSize()
public void setIconSize(int iconSize)
iconSize
- the iconSize to setpublic void setText(java.lang.String text)
setText
in class javax.swing.AbstractButton
public void updateSize()