|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.ui.swt.skin.SWTSkinObjectBasic
public class SWTSkinObjectBasic
Field Summary | |
---|---|
protected org.eclipse.swt.graphics.Color |
bgColor
|
protected static int |
BORDER_GRADIENT
|
protected static int |
BORDER_ROUNDED
|
protected static int |
BORDER_ROUNDED_FILL
|
protected org.eclipse.swt.widgets.Control |
control
|
protected boolean |
customTooltipID
|
protected boolean |
debug
|
protected ArrayList<SWTSkinObjectListener> |
listeners
|
protected AEMonitor |
listeners_mon
|
protected SWTBGImagePainter |
painter
|
protected SWTSkinObject |
parent
|
protected SWTSkinProperties |
properties
|
protected String |
sConfigID
|
protected String |
sID
|
protected SWTSkin |
skin
|
protected String[] |
suffixes
|
protected String |
type
|
Constructor Summary | |
---|---|
SWTSkinObjectBasic(SWTSkin skin,
SWTSkinProperties properties,
org.eclipse.swt.widgets.Control control,
String sID,
String sConfigID,
String type,
SWTSkinObject parent)
|
|
SWTSkinObjectBasic(SWTSkin skin,
SWTSkinProperties properties,
String sID,
String sConfigID,
String type,
SWTSkinObject parent)
|
Method Summary | |
---|---|
void |
addListener(SWTSkinObjectListener listener)
|
void |
dispose()
|
boolean |
equals(Object obj)
|
String |
getConfigID()
Retrieve the Config ID which is ID in the skin config file. |
org.eclipse.swt.widgets.Control |
getControl()
Retrieve the associated SWT Control used by the skin object |
Object |
getData(String id)
|
boolean |
getDefaultVisibility()
|
SWTSkinObjectListener[] |
getListeners()
|
SWTSkinObject |
getParent()
|
SWTSkinProperties |
getProperties()
|
SWTSkin |
getSkin()
|
String |
getSkinObjectID()
Retrieve the Skin Object ID that represents this object. |
SkinView |
getSkinView()
|
String |
getSuffix()
|
String |
getTooltipID(boolean walkup)
|
String |
getType()
Retrieve the type of widget. |
String |
getViewID()
|
int |
hashCode()
|
boolean |
isAlwaysHookPaintListener()
|
boolean |
isDebug()
|
boolean |
isDisposed()
|
boolean |
isVisible()
|
void |
layoutComplete()
|
org.eclipse.swt.graphics.Image |
obfusticatedImage(org.eclipse.swt.graphics.Image image)
|
void |
paintControl(org.eclipse.swt.graphics.GC gc)
|
void |
paintControl(org.eclipse.swt.events.PaintEvent e)
|
void |
relayout()
|
void |
removeListener(SWTSkinObjectListener listener)
|
void |
setAlwaysHookPaintListener(boolean alwaysHookPaintListener)
|
void |
setBackground(String sConfigID,
String sSuffix)
|
void |
setControl(org.eclipse.swt.widgets.Control _control)
|
void |
setData(String id,
Object data)
|
void |
setDebug(boolean debug)
|
void |
setDefaultVisibility()
|
protected boolean |
setIsVisible(boolean visible,
boolean walkup)
|
void |
setObfusticatedImageGenerator(ObfusticateImage obfusticatedImageGenerator)
|
void |
setProperties(SWTSkinProperties skinProperties)
|
void |
setSkinView(SkinView skinView)
|
void |
setTooltipID(String id)
|
protected void |
setViewID(String viewID)
|
void |
setVisible(boolean visible)
|
String |
switchSuffix(String suffix)
Switch the suffix using the default of 1 for level and false for walkUp |
String |
switchSuffix(String suffix,
int level,
boolean walkUp)
|
String |
switchSuffix(String newSuffixEntry,
int level,
boolean walkUp,
boolean walkDown)
|
String |
toString()
|
void |
triggerListeners(int eventType)
|
void |
triggerListeners(int eventType,
Object params)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final int BORDER_ROUNDED
protected static final int BORDER_ROUNDED_FILL
protected static final int BORDER_GRADIENT
protected org.eclipse.swt.widgets.Control control
protected String type
protected String sConfigID
protected SWTBGImagePainter painter
protected SWTSkinProperties properties
protected String sID
protected SWTSkinObject parent
protected SWTSkin skin
protected String[] suffixes
protected ArrayList<SWTSkinObjectListener> listeners
protected AEMonitor listeners_mon
protected org.eclipse.swt.graphics.Color bgColor
protected boolean debug
protected boolean customTooltipID
Constructor Detail |
---|
public SWTSkinObjectBasic(SWTSkin skin, SWTSkinProperties properties, org.eclipse.swt.widgets.Control control, String sID, String sConfigID, String type, SWTSkinObject parent)
properties
- TODOpublic SWTSkinObjectBasic(SWTSkin skin, SWTSkinProperties properties, String sID, String sConfigID, String type, SWTSkinObject parent)
Method Detail |
---|
public void setControl(org.eclipse.swt.widgets.Control _control)
protected boolean setIsVisible(boolean visible, boolean walkup)
visible
- public org.eclipse.swt.widgets.Control getControl()
SWTSkinObject
getControl
in interface SWTSkinObject
public String getType()
SWTSkinObject
getType
in interface SWTSkinObject
public String getConfigID()
SWTSkinObject
getConfigID
in interface SWTSkinObject
public String getSkinObjectID()
SWTSkinObject
SWTSkinObject.getConfigID()
, however, may be different if a config
id is used to make independant copies
getSkinObjectID
in interface SWTSkinObject
public SWTSkinObject getParent()
getParent
in interface SWTSkinObject
public void setBackground(String sConfigID, String sSuffix)
setBackground
in interface SWTSkinObject
public String toString()
toString
in class Object
public SWTSkin getSkin()
getSkin
in interface SWTSkinObject
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public void setVisible(boolean visible)
setVisible
in interface SWTSkinObject
public void setDefaultVisibility()
setDefaultVisibility
in interface SWTSkinObject
public boolean getDefaultVisibility()
getDefaultVisibility
in interface SWTSkinObject
public boolean isVisible()
isVisible
in interface SWTSkinObject
public String switchSuffix(String suffix)
1
for level and false
for walkUp
switchSuffix
in interface SWTSkinObject
public final String switchSuffix(String suffix, int level, boolean walkUp)
switchSuffix
in interface SWTSkinObject
walkUp
- TODO
public String switchSuffix(String newSuffixEntry, int level, boolean walkUp, boolean walkDown)
switchSuffix
in interface SWTSkinObject
public String getSuffix()
getSuffix
in interface SWTSkinObject
public SWTSkinProperties getProperties()
getProperties
in interface SWTSkinObject
public void setProperties(SWTSkinProperties skinProperties)
setProperties
in interface SWTSkinObject
public void addListener(SWTSkinObjectListener listener)
addListener
in interface SWTSkinObject
public void removeListener(SWTSkinObjectListener listener)
removeListener
in interface SWTSkinObject
public SWTSkinObjectListener[] getListeners()
getListeners
in interface SWTSkinObject
public void triggerListeners(int eventType)
triggerListeners
in interface SWTSkinObject
public void triggerListeners(int eventType, Object params)
triggerListeners
in interface SWTSkinObject
protected void setViewID(String viewID)
public String getViewID()
getViewID
in interface SWTSkinObject
public void dispose()
dispose
in interface SWTSkinObject
public boolean isDisposed()
isDisposed
in interface SWTSkinObject
public void setTooltipID(String id)
setTooltipID
in interface SWTSkinObject
public String getTooltipID(boolean walkup)
getTooltipID
in interface SWTSkinObject
public void paintControl(org.eclipse.swt.graphics.GC gc)
public final void paintControl(org.eclipse.swt.events.PaintEvent e)
paintControl
in interface org.eclipse.swt.events.PaintListener
public boolean isAlwaysHookPaintListener()
public void setAlwaysHookPaintListener(boolean alwaysHookPaintListener)
public Object getData(String id)
getData
in interface SWTSkinObject
public void setData(String id, Object data)
setData
in interface SWTSkinObject
public org.eclipse.swt.graphics.Image obfusticatedImage(org.eclipse.swt.graphics.Image image)
obfusticatedImage
in interface ObfusticateImage
public void setObfusticatedImageGenerator(ObfusticateImage obfusticatedImageGenerator)
setObfusticatedImageGenerator
in interface SWTSkinObject
public void setDebug(boolean debug)
setDebug
in interface SWTSkinObject
debug
- the debug to setpublic boolean isDebug()
isDebug
in interface SWTSkinObject
public void relayout()
relayout
in interface SWTSkinObject
public void layoutComplete()
layoutComplete
in interface SWTSkinObject
public SkinView getSkinView()
getSkinView
in interface SWTSkinObject
public void setSkinView(SkinView skinView)
setSkinView
in interface SWTSkinObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |