Package org.eclipse.wb.internal.core.xml.model.broadcast

Examples of org.eclipse.wb.internal.core.xml.model.broadcast.XmlObjectAddProperties


  ////////////////////////////////////////////////////////////////////////////
  /**
   * Contributes "TabText" property to each {@link WidgetInfo} child.
   */
  private void contributeTabTextProperty() {
    addBroadcastListener(new XmlObjectAddProperties() {
      public void invoke(XmlObjectInfo object, List<Property> properties) throws Exception {
        if (object instanceof WidgetInfo && getChildren().contains(object)) {
          Property property = getTabTextProperty(object);
          properties.add(property);
        }
View Full Code Here


  /**
   * Contributes <code>Direction</code> property for each child {@link WidgetInfo}.
   */
  private void contributeDirectionProperty() {
    addBroadcastListener(new XmlObjectAddProperties() {
      public void invoke(XmlObjectInfo object, List<Property> properties) throws Exception {
        if (object instanceof WidgetInfo && object.getParent() == DockPanelInfo.this) {
          WidgetInfo widget = (WidgetInfo) object;
          // prepare "Direction" property
          Property directionProperty = (Property) widget.getArbitraryValue(this);
View Full Code Here

  /**
   * Contributes "StackText" property to each {@link WidgetInfo} child.
   */
  private void contributeStackTextProperty() {
    addBroadcastListener(new XmlObjectAddProperties() {
      public void invoke(XmlObjectInfo object, List<Property> properties) throws Exception {
        if (object instanceof WidgetInfo && getChildren().contains(object)) {
          Property property = getStackTextProperty(object);
          properties.add(property);
        }
View Full Code Here

  /**
   * Contributes "HeaderText" and "HeaderSize" properties to each {@link WidgetInfo} child.
   */
  private void contributeHeaderProperties() {
    addBroadcastListener(new XmlObjectAddProperties() {
      public void invoke(XmlObjectInfo object, List<Property> properties) throws Exception {
        if (object instanceof WidgetInfo && getChildren().contains(object)) {
          WidgetInfo widget = (WidgetInfo) object;
          {
            Property textProperty = getHeaderTextProperty(widget);
View Full Code Here

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

  ////////////////////////////////////////////////////////////////////////////
  /**
   * Contributes "TabText" property to each {@link WidgetInfo} child.
   */
  private void contributeTabTextProperty() {
    addBroadcastListener(new XmlObjectAddProperties() {
      public void invoke(XmlObjectInfo object, List<Property> properties) throws Exception {
        if (object instanceof WidgetInfo && getChildren().contains(object)) {
          WidgetInfo widget = (WidgetInfo) object;
          Property textProperty = getTabTextProperty(widget);
          if (textProperty != null) {
View Full Code Here

  //
  ////////////////////////////////////////////////////////////////////////////
  public UiConstructorSupport(UiBinderContext context) throws Exception {
    m_context = context;
    // add properties
    m_context.getBroadcastSupport().addListener(null, new XmlObjectAddProperties() {
      public void invoke(XmlObjectInfo object, List<Property> properties) throws Exception {
        Property property = getProperty(object);
        if (property != null) {
          properties.add(property);
        }
View Full Code Here

    m_context.getBroadcastSupport().addListener(null, new ObjectInfoChildrenTree() {
      public void invoke(ObjectInfo parent, List<ObjectInfo> children) throws Exception {
        processTreeChildren(parent, children);
      }
    });
    m_context.getBroadcastSupport().addListener(null, new XmlObjectAddProperties() {
      public void invoke(XmlObjectInfo object, List<Property> properties) throws Exception {
        Property property = getProperty(object);
        if (property != null) {
          properties.add(property);
        }
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.xml.model.broadcast.XmlObjectAddProperties

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.