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

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

public class SWTSkinObjectText2
extends SWTSkinObjectBasic
implements SWTSkinObjectText, org.eclipse.swt.events.PaintListener

Text Skin Object. This one paints text on parent.

Author:
TuxPaper

Field Summary
protected  boolean mouseDown
           
 
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
SWTSkinObjectText2(SWTSkin skin, SWTSkinProperties skinProperties, java.lang.String sID, java.lang.String sConfigID, java.lang.String[] typeParams, SWTSkinObject parent)
           
 
Method Summary
 void addUrlClickedListener(SWTSkinObjectText_UrlClickedListener l)
           
 int getStyle()
           
 java.lang.String getText()
           
 void paintControl(org.eclipse.swt.graphics.GC gc)
           
 void removeUrlClickedListener(SWTSkinObjectText_UrlClickedListener l)
           
 void setStyle(int style)
           
 void setText(java.lang.String text)
           
 void setTextColor(org.eclipse.swt.graphics.Color color)
           
 void setTextID(java.lang.String key)
           
 void setTextID(java.lang.String key, java.lang.String[] params)
           
 java.lang.String switchSuffix(java.lang.String suffix, int level, boolean walkUp, boolean walkDown)
           
 void triggerListeners(int eventType, java.lang.Object params)
           
 
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, relayout, removeListener, setAlwaysHookPaintListener, setBackground, setControl, setData, setDebug, setDefaultVisibility, setIsVisible, setObfusticatedImageGenerator, setProperties, setSkinView, setTooltipID, setViewID, setVisible, switchSuffix, switchSuffix, toString, triggerListeners
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.aelitis.azureus.ui.swt.skin.SWTSkinObject
addListener, dispose, getConfigID, getControl, getData, getDefaultVisibility, getListeners, getParent, getProperties, getSkin, getSkinObjectID, getSkinView, getSuffix, getTooltipID, getType, getViewID, isDebug, isDisposed, isVisible, layoutComplete, relayout, removeListener, setBackground, setData, setDebug, setDefaultVisibility, setObfusticatedImageGenerator, setProperties, setSkinView, setTooltipID, setVisible, switchSuffix, switchSuffix, triggerListeners
 
Methods inherited from interface org.eclipse.swt.events.PaintListener
paintControl
 

Field Detail

mouseDown

protected boolean mouseDown
Constructor Detail

SWTSkinObjectText2

public SWTSkinObjectText2(SWTSkin skin,
                          SWTSkinProperties skinProperties,
                          java.lang.String sID,
                          java.lang.String sConfigID,
                          java.lang.String[] typeParams,
                          SWTSkinObject parent)
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

setText

public void setText(java.lang.String text)
Specified by:
setText in interface SWTSkinObjectText
Parameters:
searchText -

paintControl

public void paintControl(org.eclipse.swt.graphics.GC gc)
Overrides:
paintControl in class SWTSkinObjectBasic

setTextID

public void setTextID(java.lang.String key)
Specified by:
setTextID in interface SWTSkinObjectText

setTextID

public void setTextID(java.lang.String key,
                      java.lang.String[] params)
Specified by:
setTextID in interface SWTSkinObjectText

triggerListeners

public void triggerListeners(int eventType,
                             java.lang.Object params)
Specified by:
triggerListeners in interface SWTSkinObject
Overrides:
triggerListeners in class SWTSkinObjectBasic

getStyle

public int getStyle()
Specified by:
getStyle in interface SWTSkinObjectText
Returns:

setStyle

public void setStyle(int style)
Specified by:
setStyle in interface SWTSkinObjectText

getText

public java.lang.String getText()
Specified by:
getText in interface SWTSkinObjectText
Returns:

addUrlClickedListener

public void addUrlClickedListener(SWTSkinObjectText_UrlClickedListener l)
Specified by:
addUrlClickedListener in interface SWTSkinObjectText

removeUrlClickedListener

public void removeUrlClickedListener(SWTSkinObjectText_UrlClickedListener l)
Specified by:
removeUrlClickedListener in interface SWTSkinObjectText

setTextColor

public void setTextColor(org.eclipse.swt.graphics.Color color)
Specified by:
setTextColor in interface SWTSkinObjectText