Package org.openbp.jaspira.plugins.propertybrowser

Examples of org.openbp.jaspira.plugins.propertybrowser.PropertyBrowserSetEvent


        {
          title = title + " (" + modelObjectTypeName + ")";
        }

        // Send the object to the OE
        modeler.fireEvent(new PropertyBrowserSetEvent(modeler, mo, originalObject, false, mo.getDescription(), title, null, false, true));

        // Show object description in info panel
        modeler.fireEvent(new JaspiraEvent(modeler, "plugin.infopanel.setinfotext", mo));
      }

      if (figure instanceof Colorizable)
      {
        // Make the color chooser display the color of the selected object if it has a custom color
        Colorizable colorizable = (Colorizable) figure;
        Color figureColor = colorizable.getFillColor();
        Color defaultColor = colorizable.getDefaultFillColor();
        if (figureColor != null && ! figureColor.equals(defaultColor))
        {
          modeler.fireEvent("colorchooser.setcolor", figureColor);
        }
      }
    }
    else
    {
      // More than one object selected, clear OE
      modeler.fireEvent(new PropertyBrowserSetEvent(modeler));
      modeler.fireEvent(new JaspiraEvent(modeler, "plugin.infopanel.clearinfotext"));
    }

    // Update the cut/copy/paste button status
    modeler.fireEvent("global.clipboard.updatestatus");
View Full Code Here


   * @param figure Figure to be removed
   */
  public void removeAndUpdate(Figure figure)
  {
    // Clear the PropertyBrowser.
    editor.fireEvent(new PropertyBrowserSetEvent(editor));

    // Update the cut/copy/paste button status
    editor.fireEvent("global.clipboard.updatestatus");

    // Update the modification flag
View Full Code Here

    else
    {
      readOnly = true;
    }

    PropertyBrowserSetEvent oee = new PropertyBrowserSetEvent(this, item, originalItem, false, desc, title, icon, readOnly, false);
    fireEvent(oee);

    // Show object description in info panel
    fireEvent(new JaspiraEvent(this, "plugin.infopanel.setinfotext", item));
  }
View Full Code Here

TOP

Related Classes of org.openbp.jaspira.plugins.propertybrowser.PropertyBrowserSetEvent

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.