Package jimm.datavision.field

Examples of jimm.datavision.field.Field


* @return <code>true</code> if the specified formula is referenced within
* this section
*/
public boolean containsReferenceTo(Formula f) {
    for (Iterator iter = fields(); iter.hasNext(); ) {
  Field field = (Field)iter.next();
  if (field.refersTo(f))
      return true;
    }
    return suppressionProc.refersTo(f);
}
View Full Code Here


* @return <code>true</code> if the specified formula is referenced within
* this section
*/
public boolean containsReferenceTo(UserColumn uc) {
    for (Iterator iter = fields(); iter.hasNext(); ) {
  Field field = (Field)iter.next();
  if (field.refersTo(uc))
      return true;
    }
    return suppressionProc.refersTo(uc);
}
View Full Code Here

* @return <code>true</code> if the specified formula is referenced within
* this section
*/
public boolean containsReferenceTo(Parameter p) {
    for (Iterator iter = fields(); iter.hasNext(); ) {
  Field field = (Field)iter.next();
  if (field.refersTo(p))
      return true;
    }
    return suppressionProc.refersTo(p);
}
View Full Code Here

*
* @see jimm.datavision.layout.LayoutEngine#groupHeaders
*/
public void evaluateFormulas() {
    for (Iterator iter = fields(); iter.hasNext(); ) {
  Field field = (Field)iter.next();
  if (field instanceof FormulaField)
      field.getValue();
    }
}
View Full Code Here

/**
* Inserts a new section below the section containing the first selected
* field widget. Only called when at least one widget is selected.
*/
void insertSection() {
    Field f = firstSelectedFieldWidget().getField();
    if (f != null)
  insertSectionBelow(f.getSection());
}
View Full Code Here

*/
public FieldWidget addTitleField(int x, int width, String title) {
    Section s = report.getFirstSectionByArea(SectionArea.PAGE_HEADER);

    // Create the field.
    Field f = Field.create(null, report, s, "text", title, true);
    jimm.datavision.field.Rectangle b = f.getBounds();
    b.setBounds(x, 0, width, Field.DEFAULT_HEIGHT);

    // Make the field underlined and bold.
    f.getFormat().setBold(true);
    f.getFormat().setUnderline(true);

    // Add the field to the report section.
    s.addField(f);

    // Create widget and add to section widget.
View Full Code Here

  return;

    // Align the widgets based on the position of the first selected field.
    CompoundCommand cmd =
  new CompoundCommand(I18N.get("FieldAlignCommand.name"));
    Field first = firstSelectedFieldWidget().getField();
    for (Iterator iter = selectedFields.iterator(); iter.hasNext(); )
  cmd.add(new FieldAlignCommand((FieldWidget)iter.next(), which, first));

    commandHistory.perform(cmd);
}
View Full Code Here

  return;

    // Resize the widgets based on the position of the first selected field.
    CompoundCommand cmd =
  new CompoundCommand(I18N.get("FieldResizeCommand.name"));
    Field first = firstSelectedFieldWidget().getField();
    for (Iterator iter = selectedFields.iterator(); iter.hasNext(); )
  cmd.add(new FieldResizeCommand((FieldWidget)iter.next(), which,
               first));

    commandHistory.perform(cmd);
View Full Code Here

* @param sect a section
*/
protected void doOutputSection(Section sect) {
    // Output the fields in the section
    for (Iterator iter = sect.fields(); iter.hasNext(); ) {
  Field f = (Field)iter.next();
  if (f.isVisible()) {
      if (f instanceof ImageField)
    outputImage((ImageField)f);
      else
    outputField(f);
  }
View Full Code Here

  fields = buildSectionFields(sect);

    if (fields != null) {
  // Output the fields in the section
  for (int i = 0; i < fields.length; ++i) {
      Field f = (Field)fields[i];
      if (f.isVisible()) {
    if (f instanceof ImageField)
        outputImage((ImageField)f);
    else
        outputField(f);
      }
View Full Code Here

TOP

Related Classes of jimm.datavision.field.Field

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.