/*
* This file is part of WebLookAndFeel library.
*
* WebLookAndFeel library is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* WebLookAndFeel library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with WebLookAndFeel library. If not, see <http://www.gnu.org/licenses/>.
*/
package com.alee.laf.radiobutton;
import com.alee.laf.WebLookAndFeel;
import com.alee.managers.hotkey.HotkeyData;
import com.alee.managers.hotkey.HotkeyInfo;
import com.alee.managers.hotkey.HotkeyManager;
import com.alee.managers.language.LanguageManager;
import com.alee.managers.language.LanguageMethods;
import com.alee.managers.language.data.TooltipWay;
import com.alee.managers.language.updaters.LanguageUpdater;
import com.alee.managers.log.Log;
import com.alee.managers.settings.DefaultValue;
import com.alee.managers.settings.SettingsManager;
import com.alee.managers.settings.SettingsMethods;
import com.alee.managers.settings.SettingsProcessor;
import com.alee.managers.tooltip.ToolTipMethods;
import com.alee.managers.tooltip.TooltipManager;
import com.alee.managers.tooltip.WebCustomTooltip;
import com.alee.utils.EventUtils;
import com.alee.utils.ReflectUtils;
import com.alee.utils.SizeUtils;
import com.alee.utils.SwingUtils;
import com.alee.utils.laf.ShapeProvider;
import com.alee.utils.swing.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.FocusAdapter;
import java.awt.event.KeyAdapter;
import java.awt.event.MouseAdapter;
import java.util.List;
/**
* @author Mikle Garin
*/
public class WebRadioButton extends JRadioButton
implements ShapeProvider, EventMethods, ToolTipMethods, LanguageMethods, SettingsMethods, FontMethods<WebRadioButton>,
SizeMethods<WebRadioButton>
{
public WebRadioButton ()
{
super ();
}
public WebRadioButton ( final boolean selected )
{
super ( "", selected );
}
public WebRadioButton ( final Icon icon )
{
super ( icon );
}
public WebRadioButton ( final Action a )
{
super ( a );
}
public WebRadioButton ( final Icon icon, final boolean selected )
{
super ( icon, selected );
}
public WebRadioButton ( final String text )
{
super ( text );
}
public WebRadioButton ( final String text, final boolean selected )
{
super ( text, selected );
}
public WebRadioButton ( final String text, final Icon icon )
{
super ( text, icon );
}
public WebRadioButton ( final String text, final Icon icon, final boolean selected )
{
super ( text, icon, selected );
}
/**
* Proxified kotkey manager methods
*/
public HotkeyInfo addHotkey ( final Integer keyCode )
{
return addHotkey ( new HotkeyData ( keyCode ) );
}
public HotkeyInfo addHotkey ( final boolean isCtrl, final boolean isAlt, final boolean isShift, final Integer keyCode )
{
return addHotkey ( new HotkeyData ( isCtrl, isAlt, isShift, keyCode ) );
}
public HotkeyInfo addHotkey ( final HotkeyData hotkeyData )
{
return HotkeyManager.registerHotkey ( this, hotkeyData );
}
public HotkeyInfo addHotkey ( final HotkeyData hotkeyData, final boolean hidden )
{
return HotkeyManager.registerHotkey ( this, hotkeyData, hidden );
}
public HotkeyInfo addHotkey ( final HotkeyData hotkeyData, final TooltipWay tooltipWay )
{
return HotkeyManager.registerHotkey ( this, hotkeyData, tooltipWay );
}
public HotkeyInfo addHotkey ( final Component topComponent, final HotkeyData hotkeyData )
{
return HotkeyManager.registerHotkey ( topComponent, this, hotkeyData );
}
public HotkeyInfo addHotkey ( final Component topComponent, final HotkeyData hotkeyData, final boolean hidden )
{
return HotkeyManager.registerHotkey ( topComponent, this, hotkeyData, hidden );
}
public HotkeyInfo addHotkey ( final Component topComponent, final HotkeyData hotkeyData, final TooltipWay tooltipWay )
{
return HotkeyManager.registerHotkey ( topComponent, this, hotkeyData, tooltipWay );
}
public List<HotkeyInfo> getHotkeys ()
{
return HotkeyManager.getComponentHotkeys ( this );
}
public void removeHotkey ( final HotkeyInfo hotkeyInfo )
{
HotkeyManager.unregisterHotkey ( hotkeyInfo );
}
public void removeHotkeys ()
{
HotkeyManager.unregisterHotkeys ( this );
}
/**
* UI methods
*/
@Override
public Insets getMargin ()
{
return getWebUI ().getMargin ();
}
@Override
public void setMargin ( final Insets margin )
{
getWebUI ().setMargin ( margin );
}
public void setMargin ( final int top, final int left, final int bottom, final int right )
{
setMargin ( new Insets ( top, left, bottom, right ) );
}
public void setMargin ( final int spacing )
{
setMargin ( spacing, spacing, spacing, spacing );
}
public boolean isAnimated ()
{
return getWebUI ().isAnimated ();
}
public void setAnimated ( final boolean animated )
{
getWebUI ().setAnimated ( animated );
}
public boolean isRolloverDarkBorderOnly ()
{
return getWebUI ().isRolloverDarkBorderOnly ();
}
public void setRolloverDarkBorderOnly ( final boolean rolloverDarkBorderOnly )
{
getWebUI ().setRolloverDarkBorderOnly ( rolloverDarkBorderOnly );
}
public Color getBorderColor ()
{
return getWebUI ().getBorderColor ();
}
public void setBorderColor ( final Color borderColor )
{
getWebUI ().setBorderColor ( borderColor );
}
public Color getDarkBorderColor ()
{
return getWebUI ().getDarkBorderColor ();
}
public void setDarkBorderColor ( final Color darkBorderColor )
{
getWebUI ().setDarkBorderColor ( darkBorderColor );
}
public Color getDisabledBorderColor ()
{
return getWebUI ().getDisabledBorderColor ();
}
public void setDisabledBorderColor ( final Color disabledBorderColor )
{
getWebUI ().setDisabledBorderColor ( disabledBorderColor );
}
public Color getTopBgColor ()
{
return getWebUI ().getTopBgColor ();
}
public void setTopBgColor ( final Color topBgColor )
{
getWebUI ().setTopBgColor ( topBgColor );
}
public Color getBottomBgColor ()
{
return getWebUI ().getBottomBgColor ();
}
public void setBottomBgColor ( final Color bottomBgColor )
{
getWebUI ().setBottomBgColor ( bottomBgColor );
}
public Color getTopSelectedBgColor ()
{
return getWebUI ().getTopSelectedBgColor ();
}
public void setTopSelectedBgColor ( final Color topSelectedBgColor )
{
getWebUI ().setTopSelectedBgColor ( topSelectedBgColor );
}
public Color getBottomSelectedBgColor ()
{
return getWebUI ().getBottomSelectedBgColor ();
}
public void setBottomSelectedBgColor ( final Color bottomSelectedBgColor )
{
getWebUI ().setBottomSelectedBgColor ( bottomSelectedBgColor );
}
public int getShadeWidth ()
{
return getWebUI ().getShadeWidth ();
}
public void setShadeWidth ( final int shadeWidth )
{
getWebUI ().setShadeWidth ( shadeWidth );
}
public int getIconWidth ()
{
return getWebUI ().getIconWidth ();
}
public void setIconWidth ( final int iconWidth )
{
getWebUI ().setIconWidth ( iconWidth );
}
public int getIconHeight ()
{
return getWebUI ().getIconHeight ();
}
public void setIconHeight ( final int iconHeight )
{
getWebUI ().setIconHeight ( iconHeight );
}
@Override
public void setSelected ( final boolean b )
{
setSelected ( b, isShowing () );
}
public void setSelected ( final boolean b, final boolean withAnimation )
{
final boolean animated = isAnimated ();
if ( !withAnimation && animated )
{
setAnimated ( false );
}
super.setSelected ( b );
if ( !withAnimation )
{
setAnimated ( animated );
}
}
@Override
public Shape provideShape ()
{
return getWebUI ().provideShape ();
}
public WebRadioButtonUI getWebUI ()
{
return ( WebRadioButtonUI ) getUI ();
}
@Override
public void updateUI ()
{
if ( getUI () == null || !( getUI () instanceof WebRadioButtonUI ) )
{
try
{
setUI ( ( WebRadioButtonUI ) ReflectUtils.createInstance ( WebLookAndFeel.radioButtonUI ) );
}
catch ( final Throwable e )
{
Log.error ( this, e );
setUI ( new WebRadioButtonUI () );
}
}
else
{
setUI ( getUI () );
}
}
/**
* {@inheritDoc}
*/
@Override
public MouseAdapter onMousePress ( final MouseEventRunnable runnable )
{
return EventUtils.onMousePress ( this, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public MouseAdapter onMousePress ( final MouseButton mouseButton, final MouseEventRunnable runnable )
{
return EventUtils.onMousePress ( this, mouseButton, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public MouseAdapter onMouseEnter ( final MouseEventRunnable runnable )
{
return EventUtils.onMouseEnter ( this, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public MouseAdapter onMouseExit ( final MouseEventRunnable runnable )
{
return EventUtils.onMouseExit ( this, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public MouseAdapter onMouseDrag ( final MouseEventRunnable runnable )
{
return EventUtils.onMouseDrag ( this, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public MouseAdapter onMouseDrag ( final MouseButton mouseButton, final MouseEventRunnable runnable )
{
return EventUtils.onMouseDrag ( this, mouseButton, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public MouseAdapter onMouseClick ( final MouseEventRunnable runnable )
{
return EventUtils.onMouseClick ( this, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public MouseAdapter onMouseClick ( final MouseButton mouseButton, final MouseEventRunnable runnable )
{
return EventUtils.onMouseClick ( this, mouseButton, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public MouseAdapter onDoubleClick ( final MouseEventRunnable runnable )
{
return EventUtils.onDoubleClick ( this, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public MouseAdapter onMenuTrigger ( final MouseEventRunnable runnable )
{
return EventUtils.onMenuTrigger ( this, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public KeyAdapter onKeyType ( final KeyEventRunnable runnable )
{
return EventUtils.onKeyType ( this, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public KeyAdapter onKeyType ( final HotkeyData hotkey, final KeyEventRunnable runnable )
{
return EventUtils.onKeyType ( this, hotkey, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public KeyAdapter onKeyPress ( final KeyEventRunnable runnable )
{
return EventUtils.onKeyPress ( this, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public KeyAdapter onKeyPress ( final HotkeyData hotkey, final KeyEventRunnable runnable )
{
return EventUtils.onKeyPress ( this, hotkey, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public KeyAdapter onKeyRelease ( final KeyEventRunnable runnable )
{
return EventUtils.onKeyRelease ( this, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public KeyAdapter onKeyRelease ( final HotkeyData hotkey, final KeyEventRunnable runnable )
{
return EventUtils.onKeyRelease ( this, hotkey, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public FocusAdapter onFocusGain ( final FocusEventRunnable runnable )
{
return EventUtils.onFocusGain ( this, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public FocusAdapter onFocusLoss ( final FocusEventRunnable runnable )
{
return EventUtils.onFocusLoss ( this, runnable );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip setToolTip ( final String tooltip )
{
return TooltipManager.setTooltip ( this, tooltip );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip setToolTip ( final Icon icon, final String tooltip )
{
return TooltipManager.setTooltip ( this, icon, tooltip );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip setToolTip ( final String tooltip, final TooltipWay tooltipWay )
{
return TooltipManager.setTooltip ( this, tooltip, tooltipWay );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip setToolTip ( final Icon icon, final String tooltip, final TooltipWay tooltipWay )
{
return TooltipManager.setTooltip ( this, icon, tooltip, tooltipWay );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip setToolTip ( final String tooltip, final TooltipWay tooltipWay, final int delay )
{
return TooltipManager.setTooltip ( this, tooltip, tooltipWay, delay );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip setToolTip ( final Icon icon, final String tooltip, final TooltipWay tooltipWay, final int delay )
{
return TooltipManager.setTooltip ( this, icon, tooltip, tooltipWay, delay );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip setToolTip ( final JComponent tooltip )
{
return TooltipManager.setTooltip ( this, tooltip );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip setToolTip ( final JComponent tooltip, final int delay )
{
return TooltipManager.setTooltip ( this, tooltip, delay );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip setToolTip ( final JComponent tooltip, final TooltipWay tooltipWay )
{
return TooltipManager.setTooltip ( this, tooltip, tooltipWay );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip setToolTip ( final JComponent tooltip, final TooltipWay tooltipWay, final int delay )
{
return TooltipManager.setTooltip ( this, tooltip, tooltipWay, delay );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip addToolTip ( final String tooltip )
{
return TooltipManager.addTooltip ( this, tooltip );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip addToolTip ( final Icon icon, final String tooltip )
{
return TooltipManager.addTooltip ( this, icon, tooltip );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip addToolTip ( final String tooltip, final TooltipWay tooltipWay )
{
return TooltipManager.addTooltip ( this, tooltip, tooltipWay );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip addToolTip ( final Icon icon, final String tooltip, final TooltipWay tooltipWay )
{
return TooltipManager.addTooltip ( this, icon, tooltip, tooltipWay );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip addToolTip ( final String tooltip, final TooltipWay tooltipWay, final int delay )
{
return TooltipManager.addTooltip ( this, tooltip, tooltipWay, delay );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip addToolTip ( final Icon icon, final String tooltip, final TooltipWay tooltipWay, final int delay )
{
return TooltipManager.addTooltip ( this, icon, tooltip, tooltipWay, delay );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip addToolTip ( final JComponent tooltip )
{
return TooltipManager.addTooltip ( this, tooltip );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip addToolTip ( final JComponent tooltip, final int delay )
{
return TooltipManager.addTooltip ( this, tooltip, delay );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip addToolTip ( final JComponent tooltip, final TooltipWay tooltipWay )
{
return TooltipManager.addTooltip ( this, tooltip, tooltipWay );
}
/**
* {@inheritDoc}
*/
@Override
public WebCustomTooltip addToolTip ( final JComponent tooltip, final TooltipWay tooltipWay, final int delay )
{
return TooltipManager.addTooltip ( this, tooltip, tooltipWay, delay );
}
/**
* {@inheritDoc}
*/
@Override
public void removeToolTip ( final WebCustomTooltip tooltip )
{
TooltipManager.removeTooltip ( this, tooltip );
}
/**
* {@inheritDoc}
*/
@Override
public void removeToolTips ()
{
TooltipManager.removeTooltips ( this );
}
/**
* {@inheritDoc}
*/
@Override
public void removeToolTips ( final WebCustomTooltip... tooltips )
{
TooltipManager.removeTooltips ( this, tooltips );
}
/**
* {@inheritDoc}
*/
@Override
public void removeToolTips ( final List<WebCustomTooltip> tooltips )
{
TooltipManager.removeTooltips ( this, tooltips );
}
/**
* {@inheritDoc}
*/
@Override
public void setLanguage ( final String key, final Object... data )
{
LanguageManager.registerComponent ( this, key, data );
}
/**
* {@inheritDoc}
*/
@Override
public void updateLanguage ( final Object... data )
{
LanguageManager.updateComponent ( this, data );
}
/**
* {@inheritDoc}
*/
@Override
public void updateLanguage ( final String key, final Object... data )
{
LanguageManager.updateComponent ( this, key, data );
}
/**
* {@inheritDoc}
*/
@Override
public void removeLanguage ()
{
LanguageManager.unregisterComponent ( this );
}
/**
* {@inheritDoc}
*/
@Override
public boolean isLanguageSet ()
{
return LanguageManager.isRegisteredComponent ( this );
}
/**
* {@inheritDoc}
*/
@Override
public void setLanguageUpdater ( final LanguageUpdater updater )
{
LanguageManager.registerLanguageUpdater ( this, updater );
}
/**
* {@inheritDoc}
*/
@Override
public void removeLanguageUpdater ()
{
LanguageManager.unregisterLanguageUpdater ( this );
}
/**
* {@inheritDoc}
*/
@Override
public void registerSettings ( final String key )
{
SettingsManager.registerComponent ( this, key );
}
/**
* {@inheritDoc}
*/
@Override
public <T extends DefaultValue> void registerSettings ( final String key, final Class<T> defaultValueClass )
{
SettingsManager.registerComponent ( this, key, defaultValueClass );
}
/**
* {@inheritDoc}
*/
@Override
public void registerSettings ( final String key, final Object defaultValue )
{
SettingsManager.registerComponent ( this, key, defaultValue );
}
/**
* {@inheritDoc}
*/
@Override
public void registerSettings ( final String group, final String key )
{
SettingsManager.registerComponent ( this, group, key );
}
/**
* {@inheritDoc}
*/
@Override
public <T extends DefaultValue> void registerSettings ( final String group, final String key, final Class<T> defaultValueClass )
{
SettingsManager.registerComponent ( this, group, key, defaultValueClass );
}
/**
* {@inheritDoc}
*/
@Override
public void registerSettings ( final String group, final String key, final Object defaultValue )
{
SettingsManager.registerComponent ( this, group, key, defaultValue );
}
/**
* {@inheritDoc}
*/
@Override
public void registerSettings ( final String key, final boolean loadInitialSettings, final boolean applySettingsChanges )
{
SettingsManager.registerComponent ( this, key, loadInitialSettings, applySettingsChanges );
}
/**
* {@inheritDoc}
*/
@Override
public <T extends DefaultValue> void registerSettings ( final String key, final Class<T> defaultValueClass,
final boolean loadInitialSettings, final boolean applySettingsChanges )
{
SettingsManager.registerComponent ( this, key, defaultValueClass, loadInitialSettings, applySettingsChanges );
}
/**
* {@inheritDoc}
*/
@Override
public void registerSettings ( final String key, final Object defaultValue, final boolean loadInitialSettings,
final boolean applySettingsChanges )
{
SettingsManager.registerComponent ( this, key, defaultValue, loadInitialSettings, applySettingsChanges );
}
/**
* {@inheritDoc}
*/
@Override
public <T extends DefaultValue> void registerSettings ( final String group, final String key, final Class<T> defaultValueClass,
final boolean loadInitialSettings, final boolean applySettingsChanges )
{
SettingsManager.registerComponent ( this, group, key, defaultValueClass, loadInitialSettings, applySettingsChanges );
}
/**
* {@inheritDoc}
*/
@Override
public void registerSettings ( final String group, final String key, final Object defaultValue, final boolean loadInitialSettings,
final boolean applySettingsChanges )
{
SettingsManager.registerComponent ( this, group, key, defaultValue, loadInitialSettings, applySettingsChanges );
}
/**
* {@inheritDoc}
*/
@Override
public void registerSettings ( final SettingsProcessor settingsProcessor )
{
SettingsManager.registerComponent ( this, settingsProcessor );
}
/**
* {@inheritDoc}
*/
@Override
public void unregisterSettings ()
{
SettingsManager.unregisterComponent ( this );
}
/**
* {@inheritDoc}
*/
@Override
public void loadSettings ()
{
SettingsManager.loadComponentSettings ( this );
}
/**
* {@inheritDoc}
*/
@Override
public void saveSettings ()
{
SettingsManager.saveComponentSettings ( this );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setPlainFont ()
{
return SwingUtils.setPlainFont ( this );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setPlainFont ( final boolean apply )
{
return SwingUtils.setPlainFont ( this, apply );
}
/**
* {@inheritDoc}
*/
@Override
public boolean isPlainFont ()
{
return SwingUtils.isPlainFont ( this );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setBoldFont ()
{
return SwingUtils.setBoldFont ( this );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setBoldFont ( final boolean apply )
{
return SwingUtils.setBoldFont ( this, apply );
}
/**
* {@inheritDoc}
*/
@Override
public boolean isBoldFont ()
{
return SwingUtils.isBoldFont ( this );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setItalicFont ()
{
return SwingUtils.setItalicFont ( this );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setItalicFont ( final boolean apply )
{
return SwingUtils.setItalicFont ( this, apply );
}
/**
* {@inheritDoc}
*/
@Override
public boolean isItalicFont ()
{
return SwingUtils.isItalicFont ( this );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setFontStyle ( final boolean bold, final boolean italic )
{
return SwingUtils.setFontStyle ( this, bold, italic );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setFontStyle ( final int style )
{
return SwingUtils.setFontStyle ( this, style );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setFontSize ( final int fontSize )
{
return SwingUtils.setFontSize ( this, fontSize );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton changeFontSize ( final int change )
{
return SwingUtils.changeFontSize ( this, change );
}
/**
* {@inheritDoc}
*/
@Override
public int getFontSize ()
{
return SwingUtils.getFontSize ( this );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setFontSizeAndStyle ( final int fontSize, final boolean bold, final boolean italic )
{
return SwingUtils.setFontSizeAndStyle ( this, fontSize, bold, italic );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setFontSizeAndStyle ( final int fontSize, final int style )
{
return SwingUtils.setFontSizeAndStyle ( this, fontSize, style );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setFontName ( final String fontName )
{
return SwingUtils.setFontName ( this, fontName );
}
/**
* {@inheritDoc}
*/
@Override
public String getFontName ()
{
return SwingUtils.getFontName ( this );
}
/**
* {@inheritDoc}
*/
@Override
public int getPreferredWidth ()
{
return SizeUtils.getPreferredWidth ( this );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setPreferredWidth ( final int preferredWidth )
{
return SizeUtils.setPreferredWidth ( this, preferredWidth );
}
/**
* {@inheritDoc}
*/
@Override
public int getPreferredHeight ()
{
return SizeUtils.getPreferredHeight ( this );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setPreferredHeight ( final int preferredHeight )
{
return SizeUtils.setPreferredHeight ( this, preferredHeight );
}
/**
* {@inheritDoc}
*/
@Override
public int getMinimumWidth ()
{
return SizeUtils.getMinimumWidth ( this );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setMinimumWidth ( final int minimumWidth )
{
return SizeUtils.setMinimumWidth ( this, minimumWidth );
}
/**
* {@inheritDoc}
*/
@Override
public int getMinimumHeight ()
{
return SizeUtils.getMinimumHeight ( this );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setMinimumHeight ( final int minimumHeight )
{
return SizeUtils.setMinimumHeight ( this, minimumHeight );
}
/**
* {@inheritDoc}
*/
@Override
public int getMaximumWidth ()
{
return SizeUtils.getMaximumWidth ( this );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setMaximumWidth ( final int maximumWidth )
{
return SizeUtils.setMaximumWidth ( this, maximumWidth );
}
/**
* {@inheritDoc}
*/
@Override
public int getMaximumHeight ()
{
return SizeUtils.getMaximumHeight ( this );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setMaximumHeight ( final int maximumHeight )
{
return SizeUtils.setMaximumHeight ( this, maximumHeight );
}
/**
* {@inheritDoc}
*/
@Override
public Dimension getPreferredSize ()
{
return SizeUtils.getPreferredSize ( this, super.getPreferredSize () );
}
/**
* {@inheritDoc}
*/
@Override
public WebRadioButton setPreferredSize ( final int width, final int height )
{
return SizeUtils.setPreferredSize ( this, width, height );
}
}