Package org.beryl.gui.model

Examples of org.beryl.gui.model.TableDataModel


    for (int i = 1; i < 11; i++)
      listModel.addValue("MVC item " + i);

    /* Create a table data model for the table widget and add
     * some rows to it */
    tableModel = new TableDataModel();
    tableModel.addRow(
      new Person("Wenzel", "Jakob", "wazlaf@tigris.org", new GregorianCalendar(1983, 11, 04).getTime()));
    tableModel.addRow(new Person("Hans", "Mustermann", "asdf@asdf.com", new Date()));
    tableModel.addRow(new Person("Test", "Person", "test@test.de", new Date()));

View Full Code Here


  public WidgetUserObject(Element element, Widget widget, TreeItem treeNode) {
    this.element = element;
    this.widget = widget;
    this.treeNode = treeNode;
    tableModel = new TableDataModel();
    eventModel = new TableDataModel();
  }
View Full Code Here

    this.widgetTree = widgetTree;
    dataModel = new MapDataModel();
    frame = constructFrame("InternationalizationEditor", dataModel);
    propertyTable = (Table) frame.getWidget("PropertyTable");

    propertyModel = new TableDataModel();
    buildModel();
    propertyTable.setTableDataModel(propertyModel);
    frame.show();
  }
View Full Code Here

          }
        }

      }

      TableDataModel tableModel = new TableDataModel();
      for (Iterator i = info.getPropertyEntries().iterator(); i.hasNext();) {
        WidgetInfo.PropertyEntry entry = (WidgetInfo.PropertyEntry) i.next();

        if (!properties.contains(entry.propertyName)) {

          if (entry.propertyName.equals("anchor")) {
            if (info.getSupportsAnchor()) {
              tableModel.addRow(new PropertyEntryTableRow(entry));
            }
          } else {
            tableModel.addRow(new PropertyEntryTableRow(entry));
          }
        }
      }

      dataModel = new MapDataModel();
View Full Code Here

    dataModel = new MapDataModel();

    frame = constructFrame("WidgetTree", dataModel);
    treePopupMenu = (PopupMenu) constructWidget("WidgetPopup");
    propertyPopupMenu = (PopupMenu) constructWidget("PropertyPopup");
    emptyModel = new TableDataModel();

    widgetTree = (Tree) frame.getWidget("Tree");
    table = (Table) frame.getWidget("Table");
    rootNode = (TreeItem) frame.getWidget("RootNode");
    table.setTableDataModel(emptyModel);
View Full Code Here

    dataModel.setValue("rowweight", new Integer(0));
    dataModel.setValue("columnweight", new Integer(0));
    dataModel.setValue("row", new int[] { });
    dataModel.setValue("column", new int[] { });

    rowsTableModel = new TableDataModel();
    columnsTableModel = new TableDataModel();

    StringTokenizer mainTokenizer = new StringTokenizer(layoutNode.getAttribute("horiz"), ",");
    StringTokenizer weightTokenizer = new StringTokenizer(layoutNode.getAttribute("hweights"), ",");

    while (mainTokenizer.hasMoreTokens()) {
View Full Code Here

TOP

Related Classes of org.beryl.gui.model.TableDataModel

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.