|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.lens.AttributeFormLens
inetsoft.report.lens.DefaultFormLens
public class DefaultFormLens
The DefaultFormLens implements the FormLens interface, and provides a container that can be used to store the contents of a form. The form can be setup by calling the setter functions on the DefaultFormLens, which stores the values. Users of the DefaultFormLens does not need to implement another class to server as the form lens.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
DefaultFormLens()
Create an empty form. |
|
DefaultFormLens(int cnt)
Create a form with specified number of fields. |
|
DefaultFormLens(Object[] label_fields)
Create a form from the labels and field values. |
|
DefaultFormLens(Object[] labels,
Object[] fields)
Create a form from the labels and field values. |
|
| Method Summary | |
|---|---|
void |
setBackground(Color bg)
Set the background for all fields. |
void |
setBackground(int f,
Color background)
Set the field value background color. |
void |
setField(int f,
Object v)
Set the value of the field. |
void |
setFieldCount(int fields)
Set the number of fields in the form. |
void |
setFieldPerRow(int per)
Set the number of fields per row. |
void |
setFont(Font font)
Set the font for all fields. |
void |
setFont(int f,
Font font)
Set the font for the field value. |
void |
setForeground(Color fg)
Set the foreground for all fields. |
void |
setForeground(int f,
Color foreground)
Set the field value foreground color. |
void |
setLabel(int f,
Object lbl)
Set the label of the field. |
void |
setLabelBackground(Color bg)
Set the background for all labels. |
void |
setLabelBackground(int f,
Color background)
Set the field value background color. |
void |
setLabelFont(Font font)
Set the font for all labels. |
void |
setLabelFont(int f,
Font font)
Set the field label font. |
void |
setLabelForeground(Color fg)
Set the foreground for all labels. |
void |
setLabelForeground(int f,
Color foreground)
Set the field label foreground color. |
void |
setWidth(int col,
int w)
Set the width of the column (the column is different from field). |
| Methods inherited from class inetsoft.report.lens.AttributeFormLens |
|---|
clone, getBackground, getField, getFieldCount, getFieldPerRow, getFont, getForeground, getForm, getLabel, getLabelBackground, getLabelFont, getLabelForeground, getUnderline, getWidth, setForm, setUnderline |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFormLens()
public DefaultFormLens(int cnt)
cnt - number of fields.
public DefaultFormLens(Object[] labels,
Object[] fields)
labels - field labels.fields - field values.public DefaultFormLens(Object[] label_fields)
label_fields - label and field array, e.g. {label1, field1,
label2, field2}.| Method Detail |
|---|
public void setField(int f,
Object v)
f - field index.v - field value.public void setFieldCount(int fields)
fields - number of fields.
public void setLabel(int f,
Object lbl)
f - field index.lbl - field label.public void setFieldPerRow(int per)
setFieldPerRow in class AttributeFormLensper - number of fields per row.
public void setWidth(int col,
int w)
setWidth in class AttributeFormLenscol - column number.w - column width.public void setLabelFont(Font font)
setLabelFont in class AttributeFormLensfont - label font.
public void setLabelFont(int f,
Font font)
f - field index.font - field label font.public void setLabelForeground(Color fg)
setLabelForeground in class AttributeFormLensfg - global foreground color.
public void setLabelForeground(int f,
Color foreground)
f - field index.foreground - label foreground.public void setLabelBackground(Color bg)
setLabelBackground in class AttributeFormLensbg - global background color.
public void setLabelBackground(int f,
Color background)
f - field index.background - value background.public void setFont(Font font)
setFont in class AttributeFormLensfont - field font.
public void setFont(int f,
Font font)
f - field index.font - field value font.public void setForeground(Color fg)
setForeground in class AttributeFormLensfg - global foreground color.
public void setForeground(int f,
Color foreground)
f - field index.foreground - value foreground.public void setBackground(Color bg)
setBackground in class AttributeFormLensbg - global background color.
public void setBackground(int f,
Color background)
f - field index.background - value background.
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||