ParentType
- the type of the parent content elementpublic abstract class BaseContent<ParentType>
extends java.lang.Object
QueryExplorer
on the various levels.
This kind of content does not have children elements. The hierarchy of the contents is viewer root -> content root ->
matchers -> matches.Modifier and Type | Field and Description |
---|---|
protected ParentType |
parent |
protected java.lang.String |
text |
Constructor and Description |
---|
BaseContent(ParentType parent) |
Modifier and Type | Method and Description |
---|---|
abstract void |
dispose()
Disposes of this content.
|
ParentType |
getParent()
Returns the parent content of this content.
|
java.lang.String |
getText()
Returns the label that will be displayed in the
QueryExplorer for this content. |
void |
setText(java.lang.String text)
Updates the label of the content and also refreshes the representation in the
QueryExplorer for this content. |
protected ParentType parent
protected java.lang.String text
public BaseContent(ParentType parent)
public void setText(java.lang.String text)
QueryExplorer
for this content.text
- the new labelpublic java.lang.String getText()
QueryExplorer
for this content.public abstract void dispose()
public ParentType getParent()