|
||||||||||
| 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.ParameterField
public class ParameterField
A parameter field represents a parameter. The value of a parameter field
holds a Parameter object. In the XML, the parameter field's value
is the id of the parameter.
| Field Summary | |
|---|---|
protected Parameter |
parameter
|
| 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 | |
|---|---|
ParameterField(java.lang.Long id,
Report report,
Section section,
java.lang.Object value,
boolean visible)
Constructs a parameter field with the specified id in the specified report section whose Parameter's id is value. |
|
| Method Summary | |
|---|---|
boolean |
canBeAggregated()
This override returns true if this parameter is in a detail
section and returns a number. |
java.lang.String |
designLabel()
Returns a string representing the field in the GUI during report design. |
java.lang.String |
dragString()
Not really used; we drag parameters, not parameter fields. |
protected void |
finalize()
|
java.lang.String |
formulaString()
Returns a string representing the field as it appears in a formula. |
Parameter |
getParameter()
Returns the parameter. |
java.lang.Object |
getValue()
Returns the value of this field. |
FieldWidget |
makeWidget(SectionWidget sw)
Returns a new widget of the appropriate FieldWidget
subclass for this field. |
boolean |
refersTo(Parameter p)
Returns true if this field contains a reference to the
specified parameter. |
void |
setParameter(Parameter newParameter)
Sets the parameter. |
java.lang.String |
typeString()
Returns the string that specifies this field's type in the report XML. |
void |
update(java.util.Observable o,
java.lang.Object arg)
|
| Methods inherited from class jimm.datavision.field.Field |
|---|
clone, create, createFromDragString, getBorder, getBorderOrDefault, getBounds, getFormat, getId, getOutputHeight, refersTo, refersTo, refersTo, setBorder, setBounds, setFormat, setValue, toString, 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 |
|---|
protected Parameter parameter
| Constructor Detail |
|---|
public ParameterField(java.lang.Long id,
Report report,
Section section,
java.lang.Object value,
boolean visible)
Parameter's id is value.
id - the new field's idreport - the report containing this elementsection - the report section in which the field residesvalue - the id of a parametervisible - show/hide flag| Method Detail |
|---|
protected void finalize()
throws java.lang.Throwable
finalize in class Fieldjava.lang.Throwable
public void update(java.util.Observable o,
java.lang.Object arg)
update in interface java.util.Observerupdate in class Fieldpublic 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()
dragString in interface DraggabledragString in class Fieldpublic Parameter getParameter()
public void setParameter(Parameter newParameter)
newParameter - the new parameterpublic 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 boolean refersTo(Parameter p)
Fieldtrue if this field contains a reference to the
specified parameter. Most fields return false; only a AggregateField or FormulaField would return true.
refersTo in class Fieldp - a parameter
true if this field contains a reference to the
specified fieldpublic boolean canBeAggregated()
true if this parameter is in a detail
section and returns a number.
canBeAggregated in class Fieldtrue if this field can be aggregatedpublic java.lang.Object getValue()
Parameter.
getValue in class Field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||