Package jimm.datavision.gui

Examples of jimm.datavision.gui.FieldWidget


protected Object initialFieldValue() {
    return subreport.getId();
}

protected FieldWidget createFieldWidget(Field f) {
    return new FieldWidget(null, f);
}
View Full Code Here


    // Create the widget and add it to the proper section widget.
    SectionWidget sectionWidget =
  Designer.findWindowFor(report).findSectionWidgetFor(s);

    aggregateWidget = new FieldWidget(null, aggregate);
    sectionWidget.addField(aggregateWidget);

    // For some reason we need to force a repaint of the section. Can't
    // just call invalidate.
    sectionWidget.repaint();
View Full Code Here

public void perform() {
    HashSet affectedSections = new HashSet();
    designer.deselectAll();

    for (Iterator iter = fieldWidgets.iterator(); iter.hasNext(); ) {
  FieldWidget fw = (FieldWidget)iter.next();
  fw.doDelete();    // Widget deletes itself and field from report
  affectedSections.add(fw.getSectionWidget());
    }

    for (Iterator iter = affectedSections.iterator(); iter.hasNext(); )
  ((SectionWidget)iter.next()).repaint();
View Full Code Here

    designer.enableMenuItems();
}

public void undo() {
    for (Iterator iter = fieldWidgets.iterator(); iter.hasNext(); ) {
  FieldWidget fw = (FieldWidget)iter.next();
  fw.moveToSection(fw.getSectionWidget());
  designer.select(fw, true, false);
    }
    // Don't need to call Designer.enableMenuItems because each call
    // to Designer.select already does that.
}
View Full Code Here

* different types of widgets.
*
* @param sw a field widget
*/
public FieldWidget makeWidget(SectionWidget sw) {
    return new FieldWidget(sw, this);
}
View Full Code Here

TOP

Related Classes of jimm.datavision.gui.FieldWidget

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.