public class MustTextPresenter extends java.lang.Object implements Markupable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
additionalTagFragments |
protected java.lang.String |
className |
protected java.lang.String |
font |
protected java.lang.String |
name |
protected java.lang.String |
toolTipText |
protected java.lang.String |
value |
Constructor and Description |
---|
MustTextPresenter()
Constructs a new text presenter.
|
MustTextPresenter(java.lang.String name)
Constructs a new text presenter.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the markupable.
|
java.lang.String |
getCreationTag()
Returns the tag sequence that's needed to show this object in the user
interface.
|
java.lang.String |
getText()
Return the text of the specified field.
|
void |
setAdditionalTagFragments(java.lang.String additionalTagFragments)
Sets the component's additional tag fragments.
|
void |
setAlignment(int newAlignment)
Sets the alignment.
|
void |
setClassName(java.lang.String className)
Sets the component's class name - may be used to assign formatting
via stylesheets.
|
void |
setComment(java.lang.String comment)
Sets the component's comment text which will be presented to the right of
the component.
|
static void |
setDefaultAdditionalTagFragments(java.lang.String newDefaultAdditionalTagFragments)
Sets the component's default additional tag fragments.
|
static void |
setDefaultClassName(java.lang.String newDefaultClassName)
Sets the component's default class name - may be used to assign formatting
via stylesheets.
|
void |
setFont(java.lang.String font)
Sets the component's font.
|
void |
setText(java.lang.String newText)
Sets the text.
|
void |
setToolTipText(java.lang.String newToolTipText)
Sets the component's tool tip text.
|
java.lang.String |
toString()
Returns the tag sequence that's needed to show this object in the user
interface.
|
protected java.lang.String name
protected java.lang.String className
protected java.lang.String additionalTagFragments
protected java.lang.String value
protected java.lang.String toolTipText
protected java.lang.String font
public MustTextPresenter()
public MustTextPresenter(java.lang.String name)
name
- the name of the field to be used for markup parameterspublic static void setDefaultClassName(java.lang.String newDefaultClassName)
newDefaultClassName
- the component's default class namepublic void setClassName(java.lang.String className)
newDefaultClassName
- the component's class namepublic static void setDefaultAdditionalTagFragments(java.lang.String newDefaultAdditionalTagFragments)
newDefaultClassName
- the component's default additional tag fragments.public void setFont(java.lang.String font)
font
- the component's font.public void setAdditionalTagFragments(java.lang.String additionalTagFragments)
newDefaultClassName
- the component's additional tag fragments.public void setAlignment(int newAlignment)
newAlignment
- the new alignment which may be
ALIGN_LEFT
,
ALIGN_CENTER
or
ALIGN_RIGHT
public void setToolTipText(java.lang.String newToolTipText)
setToolTipText
in interface Markupable
newToolTipText
- the component's tool tip textpublic void setComment(java.lang.String comment)
setComment
in interface Markupable
comment
- the component's comment textpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getCreationTag()
getCreationTag
in interface Markupable
public java.lang.String getText()
public void setText(java.lang.String newText)
newText
- the new textpublic void destroy()
Markupable
destroy
in interface Markupable
Markupable.destroy()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de