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
Native Toggle
-
Nested Class Summary
Nested classes/interfaces inherited from class SWTSkinObjectBasic
SWTSkinObjectBasic.GradientInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.swt.widgets.Buttonprivate List<SWTSkinToggleListener> private booleanFields inherited from class 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 TypeMethodDescriptionvoidaddSelectionListener(SWTSkinToggleListener listener) booleanvoidvoidsetToggled(boolean b) switchSuffix(String suffix, int level, boolean walkUp, boolean walkDown) Methods inherited from class 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:
switchSuffixin interfaceSWTSkinObject- Overrides:
switchSuffixin classSWTSkinObjectBasic
-
addSelectionListener
-
setText
-
isToggled
public boolean isToggled() -
setToggled
public void setToggled(boolean b)
-