Package com._1c.g5.v8.dt.html.ui.editor
Class IWysiwygChangeListener.WysiwygHtmlSelection
- java.lang.Object
-
- org.eclipse.jface.text.TextSelection
-
- com._1c.g5.v8.dt.html.ui.editor.IWysiwygChangeListener.WysiwygHtmlSelection
-
- All Implemented Interfaces:
org.eclipse.jface.text.ITextSelection
,ISelection
- Enclosing interface:
- IWysiwygChangeListener
public static class IWysiwygChangeListener.WysiwygHtmlSelection extends org.eclipse.jface.text.TextSelection
Wysiwyg html page selection info
Contain immutable fields of Wysiwyg page selection state
-
-
Constructor Summary
Constructors Constructor Description WysiwygHtmlSelection(int offset, int length, List<String> tags, List<String> mods)
Create instance ofIWysiwygChangeListener.WysiwygHtmlSelection
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFontFamily()
Font family of selected textint
getFontSize()
Font size of selected textList<String>
getMods()
List of modification of selected textList<String>
getTags()
List of common parents tag names for selection nodes
-
-
-
Constructor Detail
-
WysiwygHtmlSelection
public WysiwygHtmlSelection(int offset, int length, List<String> tags, List<String> mods)
Create instance ofIWysiwygChangeListener.WysiwygHtmlSelection
- Parameters:
offset
- of selection caretlength
- of selectiontags
- the list of parents tag names, cannot benull
mods
- the list of modification of selected text, cannot benull
. The first two elements must contain valid font name and font size
-
-
Method Detail
-
getTags
public List<String> getTags()
List of common parents tag names for selection nodes- Returns:
- the list of parents tag names, cannot be
null
-
getMods
public List<String> getMods()
List of modification of selected text- Returns:
- the list of modification of selected text, never
null
-
getFontFamily
public String getFontFamily()
Font family of selected text- Returns:
- the fontFamily of selected text, return the value that was given in constructor
-
getFontSize
public int getFontSize()
Font size of selected text- Returns:
- the fontSize of selected text, return the value that was given in constructor
-
-