|
||||||||||
| 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.ColumnField
public class ColumnField
A column field represents a data source column. The value of a column field
holds the Column object.
| Field Summary | |
|---|---|
protected Column |
column
|
| 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 | |
|---|---|
ColumnField(java.lang.Long id,
Report report,
Section section,
java.lang.Object value,
boolean visible)
Constructs a column field with the specified id in the specified report section whose database Column's id is value. |
|
| Method Summary | |
|---|---|
boolean |
canBeAggregated()
This override returns true if this column is in a detail
section and holds a numeric type. |
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. |
Column |
getColumn()
Returns the database column. |
java.lang.Object |
getValue()
Returns the value of this field. |
void |
setColumn(Column newColumn)
Sets the database column. |
java.lang.String |
typeString()
Returns the string that specifies this field's type in the report XML. |
| Methods inherited from class jimm.datavision.field.Field |
|---|
clone, create, createFromDragString, designLabel, 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 |
|---|
protected Column column
| Constructor Detail |
|---|
public ColumnField(java.lang.Long id,
Report report,
Section section,
java.lang.Object value,
boolean visible)
Column's id is value.
id - the new field's idreport - the report containing this elementsection - the report section in which the field residesvalue - the string id of a database columnvisible - show/hide flag| Method Detail |
|---|
public java.lang.String dragString()
FieldField.typeString() plus a value or an id.
dragString in interface DraggabledragString in class Fieldpublic Column getColumn()
public void setColumn(Column newColumn)
newColumn - the new database columnpublic java.lang.String typeString()
Field
typeString in class Fieldpublic java.lang.String formulaString()
Field
formulaString in class Fieldpublic java.lang.Object getValue()
getValue in class Fieldpublic boolean canBeAggregated()
true if this column is in a detail
section and holds a numeric type.
canBeAggregated in class Fieldtrue if this field can be aggregated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||