Package com.biglybt.ui.swt.skin
Class SWTSkinObjectToggle
- java.lang.Object
-
- com.biglybt.ui.swt.skin.SWTSkinObjectBasic
-
- com.biglybt.ui.swt.skin.SWTSkinObjectToggle
-
- All Implemented Interfaces:
ObfuscateImage
,PluginUISWTSkinObject
,SWTSkinObject
,java.util.EventListener
,org.eclipse.swt.events.PaintListener
,org.eclipse.swt.internal.SWTEventListener
public class SWTSkinObjectToggle extends SWTSkinObjectBasic
Native Toggle
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.biglybt.ui.swt.skin.SWTSkinObjectBasic
SWTSkinObjectBasic.GradientInfo
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.swt.widgets.Button
button
private java.util.List<SWTSkinToggleListener>
buttonListeners
private boolean
isToggled
-
Fields inherited from class com.biglybt.ui.swt.skin.SWTSkinObjectBasic
alwaysHookPaintListener, bgColor, BORDER_GRADIENT, BORDER_ROUNDED, BORDER_ROUNDED_FILL, control, customTooltipID, debug, initialized, listeners, listeners_mon, painter, paintListenerHooked, parent, properties, sConfigID, sID, skin, suffixes, type
-
-
Constructor Summary
Constructors Constructor Description SWTSkinObjectToggle(SWTSkin skin, SWTSkinProperties properties, java.lang.String id, java.lang.String configID, SWTSkinObject parentSkinObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSelectionListener(SWTSkinToggleListener listener)
boolean
isToggled()
void
setText(java.lang.String text)
void
setToggled(boolean b)
java.lang.String
switchSuffix(java.lang.String suffix, int level, boolean walkUp, boolean walkDown)
-
Methods inherited from class com.biglybt.ui.swt.skin.SWTSkinObjectBasic
addListener, dispose, equals, getConfigID, getControl, getData, getDefaultVisibility, getListeners, getParent, getProperties, getSkin, getSkinObjectID, getSkinView, getSuffix, getTooltipID, getType, getViewID, isAlwaysHookPaintListener, isDebug, isDisposed, isVisible, layoutComplete, obfuscatedImage, paintControl, paintControl, relayout, removeListener, setAlwaysHookPaintListener, setBackground, setControl, setData, setDebug, setDefaultVisibility, setIsVisible, setObfuscatedImageGenerator, setProperties, setSkinView, setTooltipID, setViewID, setVisible, switchSuffix, switchSuffix, toString, triggerListeners, triggerListeners
-
-
-
-
Field Detail
-
button
private org.eclipse.swt.widgets.Button button
-
isToggled
private boolean isToggled
-
buttonListeners
private java.util.List<SWTSkinToggleListener> buttonListeners
-
-
Constructor Detail
-
SWTSkinObjectToggle
public SWTSkinObjectToggle(SWTSkin skin, SWTSkinProperties properties, java.lang.String id, java.lang.String configID, SWTSkinObject parentSkinObject)
-
-
Method Detail
-
switchSuffix
public java.lang.String switchSuffix(java.lang.String suffix, int level, boolean walkUp, boolean walkDown)
- Specified by:
switchSuffix
in interfaceSWTSkinObject
- Overrides:
switchSuffix
in classSWTSkinObjectBasic
-
addSelectionListener
public void addSelectionListener(SWTSkinToggleListener listener)
-
setText
public void setText(java.lang.String text)
-
isToggled
public boolean isToggled()
-
setToggled
public void setToggled(boolean b)
-
-