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
,EventListener
,org.eclipse.swt.events.PaintListener
,org.eclipse.swt.internal.SWTEventListener
Native Toggle
-
Nested Class Summary
Nested classes/interfaces inherited from class com.biglybt.ui.swt.skin.SWTSkinObjectBasic
SWTSkinObjectBasic.GradientInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.swt.widgets.Button
private List
<SWTSkinToggleListener> private boolean
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
ConstructorsConstructorDescriptionSWTSkinObjectToggle
(SWTSkin skin, SWTSkinProperties properties, String id, String configID, SWTSkinObject parentSkinObject) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSelectionListener
(SWTSkinToggleListener listener) boolean
void
void
setToggled
(boolean b) switchSuffix
(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 Details
-
button
private org.eclipse.swt.widgets.Button button -
isToggled
private boolean isToggled -
buttonListeners
-
-
Constructor Details
-
SWTSkinObjectToggle
public SWTSkinObjectToggle(SWTSkin skin, SWTSkinProperties properties, String id, String configID, SWTSkinObject parentSkinObject)
-
-
Method Details
-
switchSuffix
- Specified by:
switchSuffix
in interfaceSWTSkinObject
- Overrides:
switchSuffix
in classSWTSkinObjectBasic
-
addSelectionListener
-
setText
-
isToggled
public boolean isToggled() -
setToggled
public void setToggled(boolean b)
-