Examples of publishSelection()


Examples of org.dyno.visual.swing.designer.VisualDesigner.publishSelection()

      Component comp = cloneAdapter.getWidget();
      comp.setSize(child.getSize());
      cloneAdapter.setHotspotPoint(new Point(child.getWidth()/2, child.getHeight()/2));
      designer.getClipboard().add(cloneAdapter);
    }
    designer.publishSelection();
  }
  @Override
  public ActionFactory getActionFactory() {
    return ActionFactory.COPY;
  }
View Full Code Here

Examples of org.dyno.visual.swing.designer.VisualDesigner.publishSelection()

      return;
    CompositeAdapter rootAdapter = (CompositeAdapter) WidgetAdapter.getWidgetAdapter(designer.getRoot());
    rootAdapter.setSelected(false);
    rootAdapter.selectChildren();
    fireWidgetSelected(rootAdapter);
    designer.publishSelection();
    designer.repaint();
  }
 
  private void fireWidgetSelected(CompositeAdapter rootAdapter) {
    List<Component>components=rootAdapter.getSelection();
View Full Code Here

Examples of org.dyno.visual.swing.designer.VisualDesigner.publishSelection()

    } catch (ExecutionException e) {
      VisualSwingPlugin.getLogger().error(e);
    }
    rootAdapter.doLayout();
    designer.getRoot().validate();
    designer.publishSelection();
    designer.repaint();
  }
  @Override
  public ActionFactory getActionFactory() {
    return ActionFactory.CUT;
View Full Code Here

Examples of org.dyno.visual.swing.designer.VisualDesigner.publishSelection()

    Component child = designer.getSelectedComponents().get(0);
    WidgetAdapter childAdapter = WidgetAdapter.getWidgetAdapter(child);
    CompositeAdapter parentAdapter = (CompositeAdapter) childAdapter
        .getParentAdapter();
    parentAdapter.doAlignment(getId());
    designer.publishSelection();
    designer.repaint();
  }

  public void setEditor(VisualSwingEditor editor) {
    this.editor = editor;
View Full Code Here

Examples of org.dyno.visual.swing.designer.VisualDesigner.publishSelection()

  }

  public void addNotify() {
    VisualDesigner d = getDesigner();
    if (d != null) {
      d.publishSelection();
    }
  }

  public VisualDesigner getDesigner() {
    Component w = getRootPane();
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.