Examples of addBroadcastListener()


Examples of com.google.gdt.eclipse.designer.model.widgets.WidgetInfo.addBroadcastListener()

            "  com.google.gwt.user.client.ui.RootPanel __wbp_panel = com.google.gwt.user.client.ui.RootPanel.get();",
            "  __wbp_panel.setPixelSize(800, 600);",});
    // prepare component
    final WidgetInfo widget = createClone();
    // broadcast for set widget as "live"
    widget.addBroadcastListener(new JavaInfoSetObjectAfter() {
      public void invoke(JavaInfo target, Object o) throws Exception {
        if (target == widget) {
          widget.removeBroadcastListener(this);
          m_utils.setLiveWidget(o);
        }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.smart.model.form.DynamicFormInfo.addBroadcastListener()

    {
      // drop Canvas on RootPanel
      panel.command_CREATE2(parentCanvas, null);
      panel.command_BOUNDS(parentCanvas, new Point(10, 10), new Dimension(700, 500));
      // broadcast for set widget as "live"
      parentCanvas.addBroadcastListener(new JavaInfoSetObjectAfter() {
        public void invoke(JavaInfo target, Object o) throws Exception {
          if (target == parentCanvas) {
            parentCanvas.removeBroadcastListener(this);
            m_utils.setLiveWidget(o);
          }
View Full Code Here

Examples of org.eclipse.wb.core.model.JavaInfo.addBroadcastListener()

      faceProperty.setProperties(face.getProperties());
      faceProperty.setCategory(PropertyCategory.system(100 + m_faces.size()));
      m_faceProperties.add(faceProperty);
    }
    // when any face property is about to set, reset other properties
    face.addBroadcastListener(new GenericPropertySetValue() {
      public void invoke(GenericPropertyImpl property, Object[] value, boolean[] shouldSetValue)
          throws Exception {
        if (property.getJavaInfo() == face) {
          face.delete();
        }
View Full Code Here

Examples of org.eclipse.wb.core.model.ObjectInfo.addBroadcastListener()

    final ObjectInfo rootObject = object.getRoot();
    RuleAccessor accessor = m_instances.get(rootObject);
    if (accessor == null) {
      accessor = new RuleAccessor(rootObject);
      m_instances.put(rootObject, accessor);
      rootObject.addBroadcastListener(new ObjectEventListener() {
        @Override
        public void dispose() throws Exception {
          m_instances.remove(rootObject);
        }
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.