public class PrintableText extends java.lang.Object implements PrintableColumn
Modifier and Type | Field and Description |
---|---|
protected DataObject |
assignedDataObject |
protected java.lang.String |
columnName |
protected boolean |
extendedWidth |
protected java.lang.String |
label |
protected java.lang.String |
value |
Constructor and Description |
---|
PrintableText(DataObject dO,
java.lang.String columnName,
java.lang.String label)
Constructs a new printable text.
|
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.
|
boolean |
isExtendeWith()
Returns true if text should be presented under the label with more width.
|
void |
loadValue()
Loads the component's database stored value.
|
void |
setExtendedWidth(boolean extendedWidth)
Sets the extend width flag.
|
void |
setText(java.lang.String text)
Sets the component's text.
|
protected DataObject assignedDataObject
protected java.lang.String columnName
protected java.lang.String label
protected java.lang.String value
protected boolean extendedWidth
public PrintableText(DataObject dO, java.lang.String columnName, java.lang.String label)
dO
- the assigned data objectcolumnName
- the name of the column to connect tolabel
- the label of the new linepublic void setExtendedWidth(boolean extendedWidth)
extendedWidth
- public boolean isExtendeWith()
public void loadValue()
loadValue
in interface PrintableColumn
public java.lang.String getLabel()
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