Examples of JavaInfoAddProperties


Examples of org.eclipse.wb.core.model.broadcast.JavaInfoAddProperties

  /**
   * Adds this {@link LayoutInfo} properties to {@link ContainerInfo}.
   */
  private void addLayoutPropertySupport() {
    addBroadcastListener(new JavaInfoAddProperties() {
      public void invoke(JavaInfo javaInfo, List<Property> properties) throws Exception {
        // add layout properties to container properties
        if (isActiveOnContainer(javaInfo)) {
          addLayoutProperties(properties);
        }
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaInfoAddProperties

  /**
   * Contributes <code>"LayoutData"</code> property to host {@link WidgetInfo}.
   */
  private void addLayoutDataPropertySupport() {
    addBroadcastListener(new JavaInfoAddProperties() {
      public void invoke(JavaInfo javaInfo, List<Property> properties) throws Exception {
        if (isActiveForComponent(javaInfo)) {
          addLayoutDataProperty(properties);
        }
      }
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaInfoAddProperties

   * Contributes <code>"Cell"</code> complex property for each {@link WidgetInfo} child of this
   * {@link CellPanelInfo}.
   */
  private void contributeCellProperties() {
    final CellPanelInfo panel = this;
    addBroadcastListener(new JavaInfoAddProperties() {
      public void invoke(JavaInfo javaInfo, List<Property> properties) throws Exception {
        if (javaInfo instanceof WidgetInfo && javaInfo.getParent() == panel) {
          WidgetInfo component = (WidgetInfo) javaInfo;
          // prepare "Cell" property
          Property cellProperty = (Property) component.getArbitraryValue(this);
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaInfoAddProperties

  /**
   * Adds copy of "text" property of "header" widget as "HeaderText" property.
   */
  private void useHeaderWidgetProperty_asHeaderText() {
    addBroadcastListener(new JavaInfoAddProperties() {
      public void invoke(JavaInfo javaInfo, List<Property> properties) throws Exception {
        WidgetInfo header = getHeader(javaInfo);
        if (header != null) {
          for (Property property : header.getProperties()) {
            if (isTextProperty(property)) {
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaInfoAddProperties

  /**
   * Contributes <code>"Cell"</code> complex property for each {@link WidgetInfo} child of this
   * {@link CellPropertySupport}.
   */
  private void contributeCellProperties() {
    m_panel.addBroadcastListener(new JavaInfoAddProperties() {
      public void invoke(JavaInfo javaInfo, List<Property> properties) throws Exception {
        if (javaInfo instanceof WidgetInfo && javaInfo.getParent() == m_panel) {
          WidgetInfo widget = (WidgetInfo) javaInfo;
          // prepare "Cell" property
          Property cellProperty = (Property) widget.getArbitraryValue(this);
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaInfoAddProperties

  // Listeners
  //
  ////////////////////////////////////////////////////////////////////////////
  private void installListeners() {
    // properties
    addBroadcastListener(new JavaInfoAddProperties() {
      public void invoke(JavaInfo javaInfo, List<Property> properties) throws Exception {
        if (javaInfo == WidgetCanvasInfo.this) {
          // remove properties
          List<Property> propertiesToMove = Lists.newArrayList();
          for (Property property : properties) {
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaInfoAddProperties

        if (isActiveOnContainer(javaInfo)) {
          clipboardCopy_addContainerCommands(commands);
        }
      }
    });
    addBroadcastListener(new JavaInfoAddProperties() {
      public void invoke(JavaInfo javaInfo, List<Property> properties) throws Exception {
        // add layout properties to container properties
        if (isActiveOnContainer(javaInfo)) {
          addLayoutProperties(properties);
        }
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaInfoAddProperties

  /**
   * Contribute "LayoutData" complex property to our {@link WidgetInfo}.
   */
  private void contributeLayoutDataProperties_toWidget() {
    addBroadcastListener(new JavaInfoAddProperties() {
      public void invoke(JavaInfo javaInfo, List<Property> properties) throws Exception {
        if (isActiveForWidget(javaInfo)) {
          addLayoutDataProperties(properties);
        }
      }
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaInfoAddProperties

      public void invoke() throws Exception {
        processObjectReady();
      }
    });
    // add "bounds" property
    addBroadcastListener(new JavaInfoAddProperties() {
      public void invoke(JavaInfo javaInfo, List<Property> properties) throws Exception {
        if (javaInfo == m_this && javaInfo.getParent() instanceof DynamicFormInfo) {
          FormItemInfo item = (FormItemInfo) javaInfo;
          collectBoundsProperty(item, properties);
        }
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaInfoAddProperties

  //
  ////////////////////////////////////////////////////////////////////////////
  private void installListiners() {
    addBroadcastListener(new JavaInfoChildBeforeAssociation(this));
    // add bounds property for child widget
    addBroadcastListener(new JavaInfoAddProperties() {
      public void invoke(JavaInfo javaInfo, List<Property> properties) throws Exception {
        if (javaInfo instanceof CanvasInfo && javaInfo.getParent() == CanvasInfo.this) {
          CanvasInfo canvas = (CanvasInfo) javaInfo;
          properties.add(getBoundsProperty(canvas));
        }
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.