Package jimm.datavision.gui

Examples of jimm.datavision.gui.SectionWidget$PopupListener


}

public void paste(Designer designer) {
    Report pasteReport = designer.getReport();
    Report origReport = origSectionWidget.getReport();
    SectionWidget sw = null;

    if (pasteReport == origReport) {
  if (pasteReport.contains(origSectionWidget.getSection()))
      sw = origSectionWidget;
  else
View Full Code Here


    sectionResizeCommand.perform();
}

public void undo() {
    Field f = fw.getField();
    SectionWidget sw = fw.getSectionWidget();
    f.getBounds().setBounds(preMoveInfo.origBounds); // Move to original bounds
    fw.moveToSection(preMoveInfo.sectionWidget); // Move to original section
    sectionResizeCommand.undo();
    if (sw != preMoveInfo.sectionWidget)
  sw.repaint();
}
View Full Code Here

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

    // 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() {
    super.perform();

    // If this is a detail section and the field represents a database
    // column, add a title field whose name is the name of the column.
    SectionWidget sw = fw.getSectionWidget();
    Field f = fw.getField();
    if (sw.getSection().isDetail() && (f instanceof ColumnField)) {
  Column col = (Column)((ColumnField)f).getColumn();
  String name = col.getName();
  name = name.substring(0, 1).toUpperCase()
      + name.substring(1).toLowerCase();

  // The title section resize command may not be used.
  Section titleSection = f.getReport().pageHeaders().first();
  SectionWidget titleSectionWidget =
      sw.getDesigner().findSectionWidgetFor(titleSection);
  titleSectionResizeCommand =
      new SectionResizeCommand(titleSectionWidget);

  // Possible the title field. If no title field added, titleField
View Full Code Here

    swAbove = designer.findSectionWidgetFor(sectionAbove);
}

public void perform() {
    section = report.insertSectionBelow(sectionAbove);
    SectionWidget sw = new SectionWidget(designer, section, "");
    designer.insertSectionWidgetAfter(sw, swAbove);
}
View Full Code Here

TOP

Related Classes of jimm.datavision.gui.SectionWidget$PopupListener

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.