Package org.eclipse.epsilon.picto
Class ViewTree
- java.lang.Object
-
- org.eclipse.epsilon.picto.ViewTree
-
public class ViewTree extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<URI>
baseUris
protected ViewContent
cachedContent
protected List<ViewTree>
children
protected String
format
protected String
icon
protected List<Layer>
layers
protected String
name
protected ViewTree
parent
protected List<Patch>
patches
protected Integer
position
protected ContentPromise
promise
protected org.eclipse.swt.graphics.Point
scrollPosition
-
Constructor Summary
Constructors Constructor Description ViewTree()
ViewTree(File file, String format)
ViewTree(String name)
ViewTree(String content, String format)
ViewTree(ContentPromise promise, String format, String icon, Integer position, List<Patch> patches, List<Layer> layers)
ViewTree(ContentPromise promise, String format, String icon, List<Patch> patches, List<Layer> layers)
-
Method Summary
-
-
-
Field Detail
-
promise
protected ContentPromise promise
-
name
protected String name
-
format
protected String format
-
icon
protected String icon
-
parent
protected ViewTree parent
-
scrollPosition
protected org.eclipse.swt.graphics.Point scrollPosition
-
cachedContent
protected ViewContent cachedContent
-
position
protected Integer position
-
-
Method Detail
-
ingest
public void ingest(ViewTree other)
-
getName
public String getName()
-
setName
public void setName(String name)
-
setParent
public void setParent(ViewTree parent)
-
getParent
public ViewTree getParent()
-
getContent
public ViewContent getContent()
-
getContents
public List<ViewContent> getContents(PictoView pictoView)
-
getContentsText
public String getContentsText(PictoView pictoView)
Concatenates the result ofgetContents(PictoView)
where eachViewContent.getText()
) is separated by a new line.- Parameters:
pictoView
-- Returns:
- Since:
- 2.2
-
setPromise
public void setPromise(ContentPromise promise)
-
getPromise
public ContentPromise getPromise()
-
getFormat
public String getFormat()
-
setFormat
public void setFormat(String format)
-
setIcon
public void setIcon(String icon)
-
getIcon
public String getIcon()
-
getScrollPosition
public org.eclipse.swt.graphics.Point getScrollPosition()
-
setScrollPosition
public void setScrollPosition(org.eclipse.swt.graphics.Point scrollPosition)
-
getFirstWithContent
public ViewTree getFirstWithContent()
-
clearCache
public void clearCache()
-
setContent
public void setContent(ViewContent content)
-
getCachedContent
public ViewContent getCachedContent()
-
getPosition
public Integer getPosition()
-
setPosition
public void setPosition(Integer position)
-
-