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, 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, String id, String configID, SWTSkinObject parentSkinObject)
           
 
Method Summary
 void addSelectionListener(SWTSkinToggleListener listener)
           
 boolean isToggled()
           
 void setText(String text)
           
 void setToggled(boolean b)
           
 String switchSuffix(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,
                           String id,
                           String configID,
                           SWTSkinObject parentSkinObject)
Method Detail

switchSuffix

public String switchSuffix(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(String text)

isToggled

public boolean isToggled()

setToggled

public void setToggled(boolean b)