com.aelitis.azureus.ui.swt.skin
Class SWTSkinObjectToggle

java.lang.Object
  extended by com.aelitis.azureus.ui.swt.skin.SWTSkinObjectBasic
      extended by com.aelitis.azureus.ui.swt.skin.SWTSkinObjectToggle
All Implemented Interfaces:
SWTSkinObject, java.util.EventListener, org.eclipse.swt.events.PaintListener, org.eclipse.swt.internal.SWTEventListener, ObfusticateImage, PluginUISWTSkinObject

public class SWTSkinObjectToggle
extends SWTSkinObjectBasic

Native Toggle

Author:
TuxPaper

Field Summary
 
Fields inherited from class com.aelitis.azureus.ui.swt.skin.SWTSkinObjectBasic
bgColor, BORDER_GRADIENT, BORDER_ROUNDED, BORDER_ROUNDED_FILL, control, customTooltipID, debug, listeners, listeners_mon, painter, parent, properties, sConfigID, sID, skin, suffixes, type
 
Constructor Summary
SWTSkinObjectToggle(SWTSkin skin, SWTSkinProperties properties, java.lang.String id, java.lang.String configID, SWTSkinObject parentSkinObject)
           
 
Method Summary
 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.aelitis.azureus.ui.swt.skin.SWTSkinObjectBasic
addListener, dispose, equals, getConfigID, getControl, getData, getDefaultVisibility, getListeners, getParent, getProperties, getSkin, getSkinObjectID, getSkinView, getSuffix, getTooltipID, getType, getViewID, hashCode, isAlwaysHookPaintListener, isDebug, isDisposed, isVisible, layoutComplete, obfusticatedImage, paintControl, paintControl, relayout, removeListener, setAlwaysHookPaintListener, setBackground, setControl, setData, setDebug, setDefaultVisibility, setIsVisible, setObfusticatedImageGenerator, setProperties, setSkinView, setTooltipID, setViewID, setVisible, switchSuffix, switchSuffix, toString, triggerListeners, triggerListeners
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 interface SWTSkinObject
Overrides:
switchSuffix in class SWTSkinObjectBasic

addSelectionListener

public void addSelectionListener(SWTSkinToggleListener listener)

setText

public void setText(java.lang.String text)

isToggled

public boolean isToggled()

setToggled

public void setToggled(boolean b)