Class TextTreeNode
- java.lang.Object
-
- net.ssehub.easy.producer.ui.productline_editor.instantiator.TreeNode
-
- net.ssehub.easy.producer.ui.productline_editor.instantiator.TextTreeNode
-
- Direct Known Subclasses:
AlternativeBranchTreeNode
public class TextTreeNode extends TreeNode
Represents a simple text tree node.- Author:
- Holger Eichelberger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.ssehub.easy.producer.ui.productline_editor.instantiator.TreeNode
TreeNode.Insertable, TreeNode.InsertionPoint
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringtext
-
Constructor Summary
Constructors Constructor Description TextTreeNode(TreeNode parent, org.eclipse.swt.graphics.Image image, java.lang.String text)Creates a text tree node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.StringgetText()Returns the display text.(package private) TreeNode.InsertionPointsupportedInsertionPoint(TreeNode.Insertable insertable)Returns the supported insertion point within the tree forinsertable.-
Methods inherited from class net.ssehub.easy.producer.ui.productline_editor.instantiator.TreeNode
getChildren, getImage, getParent, hasChildren, setChildren
-
-
-
-
Constructor Detail
-
TextTreeNode
TextTreeNode(TreeNode parent, org.eclipse.swt.graphics.Image image, java.lang.String text)
Creates a text tree node.- Parameters:
parent- the parent nodeimage- the image (may be null)text- the text to be displayed
-
-
Method Detail
-
getText
java.lang.String getText()
Description copied from class:TreeNodeReturns the display text.
-
supportedInsertionPoint
TreeNode.InsertionPoint supportedInsertionPoint(TreeNode.Insertable insertable)
Description copied from class:TreeNodeReturns the supported insertion point within the tree forinsertable.- Specified by:
supportedInsertionPointin classTreeNode- Parameters:
insertable- the element to be inserted- Returns:
- the supported rule insertion point
-
-