public class MustBoolPresenter extends java.lang.Object implements Markupable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
checkText |
protected java.lang.String |
name |
Constructor and Description |
---|
MustBoolPresenter(java.lang.String name,
java.lang.String checkText)
Constructs a new boolean presenter
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the markupable.
|
boolean |
getChecked()
Returns true if the component is set to true.
|
java.lang.String |
getCreationTag()
Returns the tag sequence that's needed to show this object in the user
interface.
|
void |
setChecked(boolean checked)
Sets the component to the state as specified by checked.
|
void |
setComment(java.lang.String comment)
Sets the component's comment text which will be presented to the right of
the component.
|
void |
setToolTipText(java.lang.String newToolTipText)
Sets the component's tool tip text.
|
public MustBoolPresenter(java.lang.String name, java.lang.String checkText)
name
- the name of the field to be used for markup parameterscheckText
- the text to present if the component is set to truepublic 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 getCreationTag()
getCreationTag
in interface Markupable
public boolean getChecked()
public void setChecked(boolean checked)
checked
- the new components statepublic 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