|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swt.graphics.TextStyle
org.eclipse.swt.custom.StyleRange
de.folt.models.applicationmodel.guimodel.editor.datasourceeditor.OpenTMSStyleRange
public class OpenTMSStyleRange
This class extends StyleRange and add some features. Esp. it is possible to associate a tool tip with a StyledText and to add additional data (key/value) pair with the OpenTMSStyleRange.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swt.custom.StyleRange |
|---|
fontStyle, length, start |
| Fields inherited from class org.eclipse.swt.graphics.TextStyle |
|---|
background, borderColor, borderStyle, font, foreground, metrics, rise, strikeout, strikeoutColor, underline, underlineColor, underlineStyle |
| Constructor Summary | |
|---|---|
OpenTMSStyleRange(int startPos,
int len,
org.eclipse.swt.graphics.Color tagForeGroundColor,
org.eclipse.swt.graphics.Color tagBackGroundColor)
|
|
| Method Summary | |
|---|---|
java.util.Hashtable<java.lang.String,java.lang.Object> |
getData()
|
java.lang.Object |
getData(java.lang.String string)
getData get a data object associated with the OpenTMSStyleRange |
java.lang.String |
getToolTip()
getToolTip get a tool tip for the OpenTMSStyleRange |
boolean |
isBEditable()
|
java.lang.Object |
removeData(java.lang.String string)
removeData remove a data object |
void |
setBEditable(boolean editable)
|
void |
setData(java.util.Hashtable<java.lang.String,java.lang.Object> data)
|
void |
setData(java.lang.String string)
setData associate a string as a data for the OpenTMSStyleRange (key = string / value = string) |
void |
setData(java.lang.String string,
java.lang.Object object)
setData associate a data object with an OpenTMSStyleRange |
void |
setToolTipText(java.lang.String toolTipText)
setToolTip set a tool tip for the OpenTMSStyleRange |
| Methods inherited from class org.eclipse.swt.custom.StyleRange |
|---|
clone, equals, hashCode, isUnstyled, similarTo, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OpenTMSStyleRange(int startPos,
int len,
org.eclipse.swt.graphics.Color tagForeGroundColor,
org.eclipse.swt.graphics.Color tagBackGroundColor)
startPos - len - tagForeGroundColor - tagBackGroundColor - | Method Detail |
|---|
public java.util.Hashtable<java.lang.String,java.lang.Object> getData()
public java.lang.Object getData(java.lang.String string)
string - the key of the data
public java.lang.String getToolTip()
public boolean isBEditable()
public java.lang.Object removeData(java.lang.String string)
string - the key for the data to remove
public void setBEditable(boolean editable)
editable - the bEditable to set; if true allow editing in the style rangepublic void setData(java.util.Hashtable<java.lang.String,java.lang.Object> data)
data - the data to setpublic void setData(java.lang.String string)
string - the string to set
public void setData(java.lang.String string,
java.lang.Object object)
string - the key for the dataobject - the data objectpublic void setToolTipText(java.lang.String toolTipText)
toolTipText - the tool tip text to display
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||