public class PrintableCallback extends java.lang.Object implements PrintableColumn
Modifier and Type | Field and Description |
---|---|
protected Callback |
callback |
protected java.lang.String |
label |
protected java.lang.String |
value |
Constructor and Description |
---|
PrintableCallback(java.lang.String label,
Callback callback)
Constructs a new PrintableCallback.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel()
Returns the component's label.
|
java.lang.String |
getText()
Returns the component's value to be displayed as text.
|
boolean |
hasContent()
Returns true if field has content.
|
void |
loadValue()
Loads the component's database stored value.
|
void |
setText(java.lang.String text)
Sets the component's text.
|
protected java.lang.String label
protected Callback callback
protected java.lang.String value
public PrintableCallback(java.lang.String label, Callback callback)
label
- the label of the new linecallback
- the callback interface to be called when values are set. Use setText() to set the new value inside callback method.public void loadValue()
PrintableColumn
loadValue
in interface PrintableColumn
public java.lang.String getLabel()
PrintableAttribute
getLabel
in interface PrintableAttribute
public void setText(java.lang.String text)
the
- component's new textpublic java.lang.String getText()
getText
in interface PrintableAttribute
public boolean hasContent()
PrintableAttribute
hasContent
in interface PrintableAttribute
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de