|
||||||||||
| 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.SpecialField
public class SpecialField
A SpecialField represents a special value such as the report name or current page number. The value of a SpecialField is a string that identifies which value to display.
| Field Summary | |
|---|---|
static java.lang.String |
TYPE_STRING
|
| 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 | |
|---|---|
SpecialField(java.lang.Long id,
Report report,
Section section,
java.lang.Object value,
boolean visible)
Constructs a special field with the specified id in the specified report section whose special 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. |
java.lang.Object |
getValue()
Returns the value of this field. |
protected static java.lang.Integer |
groupCount(Field f)
Returns the group count for the group in which this field resides. |
static java.util.HashMap |
specialFieldNames()
Returns an array of all of the special field names. |
java.lang.String |
typeString()
Returns the string that specifies this field's type in the report XML. |
static java.lang.Object |
value(Field f,
java.lang.String str,
Report report)
Returns the value associated with the given special field name string. |
| Methods inherited from class jimm.datavision.field.Field |
|---|
canBeAggregated, clone, create, createFromDragString, finalize, getBorder, getBorderOrDefault, getBounds, getFormat, getId, getOutputHeight, makeWidget, refersTo, refersTo, refersTo, refersTo, setBorder, setBounds, setFormat, setValue, toString, update, writeFieldGuts, writeXML |
| 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 |
| Field Detail |
|---|
public static final java.lang.String TYPE_STRING
| Constructor Detail |
|---|
public SpecialField(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 magic stringvisible - show/hide flag| Method Detail |
|---|
public static java.util.HashMap specialFieldNames()
public static java.lang.Object value(Field f,
java.lang.String str,
Report report)
str - the special field name stringreport - the report that is running
protected static java.lang.Integer groupCount(Field f)
null (for example, we are in the report
footer), returns the report.row value. If f is
null, return 0.
f - a field
public 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()
Field
formulaString in class Fieldpublic java.lang.Object getValue()
getValue in class Field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||