|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
jimm.datavision.Element
jimm.datavision.field.Field
jimm.datavision.field.TextField
public class TextField
A text field represents static text. The value of a text field holds the text.
| Field Summary |
|---|
| Fields inherited from class jimm.datavision.field.Field |
|---|
border, bounds, cache, DEFAULT_HEIGHT, DEFAULT_WIDTH, format, id, maxIdSeen, value |
| Fields inherited from class jimm.datavision.Element |
|---|
report, section, visible |
| Constructor Summary | |
|---|---|
TextField(java.lang.Long id,
Report report,
Section section,
java.lang.Object value,
boolean visible)
Constructs a text field with the specified id in the specified report section whose text value is value. |
|
| Method Summary | |
|---|---|
java.lang.String |
designLabel()
Returns a string representing the field in the GUI during report design. |
java.lang.String |
dragString()
Returns the string used to identify a field type when dragging. |
java.lang.String |
formulaString()
Returns a string representing the field as it appears in a formula. |
FieldWidget |
makeWidget(SectionWidget sw)
Returns a new widget of the appropriate FieldWidget
subclass for this field. |
void |
setValue(java.lang.Object newValue)
Sets the value. |
java.lang.String |
typeString()
Returns the string that specifies this field's type in the report XML. |
void |
writeXML(XMLWriter out)
Writes this field as an XML tag. |
| Methods inherited from class jimm.datavision.field.Field |
|---|
canBeAggregated, clone, create, createFromDragString, finalize, getBorder, getBorderOrDefault, getBounds, getFormat, getId, getOutputHeight, getValue, refersTo, refersTo, refersTo, refersTo, setBorder, setBounds, setFormat, toString, update, writeFieldGuts |
| Methods inherited from class jimm.datavision.Element |
|---|
getReport, getSection, isVisible, setSection, setVisible |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextField(java.lang.Long id,
Report report,
Section section,
java.lang.Object value,
boolean visible)
id - the new field's idreport - the report containing this elementsection - the report section in which the field residesvalue - the text stringvisible - show/hide flag| Method Detail |
|---|
public void setValue(java.lang.Object newValue)
Field
setValue in class FieldnewValue - the new valuepublic FieldWidget makeWidget(SectionWidget sw)
FieldFieldWidget
subclass for this field. Subclasses override this method to return
different types of widgets.
makeWidget in class Fieldsw - a field widgetpublic java.lang.String dragString()
FieldField.typeString() plus a value or an id.
dragString in interface DraggabledragString in class Fieldpublic java.lang.String typeString()
Field
typeString in class Fieldpublic java.lang.String designLabel()
Field
designLabel in class Fieldpublic java.lang.String formulaString()
formulaString in class Fieldpublic void writeXML(XMLWriter out)
Field
writeXML in interface WriteablewriteXML in class Fieldout - a writer that knows how to write XML
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||