Examples of createRegion()


Examples of net.rim.device.api.ui.component.table.DataTemplate.createRegion()

                        + _style.getBorder().getBottom())
                + (_style.getMargin() == null ? 0 : _style.getMargin().top
                        + _style.getMargin().bottom)));

        for (int i = 0; i < NUM_ROWS; i++) {
            dataTemplate.createRegion(new XYRect(1, i, 1, 1), _style);
            dataTemplate.setRowProperties(i, new TemplateRowProperties(Font
                    .getDefault().getHeight()
                    + (_style.getBorder() == null ? 0 : _style.getBorder()
                            .getTop()
                            + _style.getBorder().getBottom())
View Full Code Here

Examples of net.rim.device.api.ui.component.table.DataTemplate.createRegion()

                        { new LabelField(text, Field.NON_FOCUSABLE) };

                return fields;
            }
        };
        dataTemplate.createRegion(new XYRect(0, 0, 1, 1));
        dataTemplate.setColumnProperties(0, new TemplateColumnProperties(
                Display.getWidth()));
        dataTemplate.setRowProperties(0, new TemplateRowProperties(32));
        _view.setDataTemplate(dataTemplate);
        dataTemplate.useFixedHeight(true);
View Full Code Here

Examples of net.rim.device.api.ui.component.table.DataTemplate.createRegion()

                return fields;
            }
        };

        // Define the regions of the data template and column/row size
        dataTemplate.createRegion(new XYRect(0, 0, 1, 1));
        dataTemplate.setColumnProperties(0, new TemplateColumnProperties(
                Display.getWidth()));
        dataTemplate.setRowProperties(0, new TemplateRowProperties(24));

        _view.setDataTemplate(dataTemplate);
View Full Code Here

Examples of net.rim.device.api.ui.component.table.DataTemplate.createRegion()

                        { new LabelField(contact.getFirst() + " "
                                + contact.getLast(), Field.NON_FOCUSABLE) };
                return fields;
            }
        };
        dataTemplate.createRegion(new XYRect(0, 0, 1, 1));
        dataTemplate.setColumnProperties(0, new TemplateColumnProperties(
                Display.getWidth()));
        dataTemplate.setRowProperties(0, new TemplateRowProperties(32));
        _view.setDataTemplate(dataTemplate);
        dataTemplate.useFixedHeight(true);
View Full Code Here

Examples of org.eclipse.equinox.region.RegionDigraph.createRegion()

            .getType() + ';' + Long.toString(id);
    Region region = digraph.getRegion(name);
    // TODO New regions need to be cleaned up if this subsystem fails to
    // install, but there's no access to the coordination here.
    if (region == null)
      return digraph.createRegion(name);
    return region;
  }
 
  private ResolveContext createResolveContext() {
    return new ResolveContext() {
View Full Code Here

Examples of org.eclipse.equinox.region.RegionDigraph.createRegion()

      Region head = copyHead(copy);
      Set<Long> bundleIds = copyBundleIds(tail);
      Map<String, RegionFilterBuilder> heads = copyHeadRegions(tail, copy);
      Map<String, RegionFilterBuilder> tails = copyTailRegions(tail, copy);
      copy.removeRegion(tail);
      tail = copy.createRegion(tail.getName());
      addBundleIds(bundleIds, tail);
      addRequirements(requirements, heads.get(head.getName()));
      addHeadRegions(heads, tail, copy);
      addTailRegions(tails, tail, copy);
      // Replace the current digraph.
View Full Code Here

Examples of org.eclipse.equinox.region.RegionDigraph.createRegion()

        for (Region region : temp.getRegions()) {
            temp.removeRegion(region);
        }
        // Re-create regions
        for (String name : policies.keySet()) {
            temp.createRegion(name);
        }
        // Dispatch bundles
        for (Map.Entry<String, Set<Long>> entry : bundles.entrySet()) {
            Region region = temp.getRegion(entry.getKey());
            for (long bundleId : entry.getValue()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.