Package java.beans

Examples of java.beans.PropertyChangeListener


   public CommitAction(IApplication app)
   {
      super(app);

      _propertyListener = new PropertyChangeListener()
      {
         public void propertyChange(PropertyChangeEvent evt)
         {
            if (SessionProperties.IPropertyNames.AUTO_COMMIT.equals(evt.getPropertyName()))
            {
View Full Code Here


   {
      super(app);

      _toogleComponentHolder = new ToggleComponentHolder();

      _propertyListener = new PropertyChangeListener()
      {
         public void propertyChange(PropertyChangeEvent evt)
         {
            if (SessionProperties.IPropertyNames.AUTO_COMMIT.equals(evt.getPropertyName()))
            {
View Full Code Here

    _resources = new SquirrelResources(SquirrelResources.BUNDLE_BASE_NAME);
    _prefs = SquirrelPreferences.load();
      _desktopStyle = new DesktopStyle(_prefs);
    Locale.setDefault(constructPreferredLocale(_prefs));
    preferencesHaveChanged(null);
    _prefs.addPropertyChangeListener(new PropertyChangeListener()
    {
      public void propertyChange(PropertyChangeEvent evt)
      {
        preferencesHaveChanged(evt);
      }
View Full Code Here

    protected synchronized void initialize() {
  children     = new HashMap(serializable + 1);
  bcmListeners = new ArrayList(1);

  childPCL = new PropertyChangeListener() {

      /*
       * this adaptor is used by the BeanContextSupport class to forward
       * property changes from a child to the BeanContext, avoiding
       * accidential serialization of the BeanContext by a badly
View Full Code Here

   {

      _model = model;
      _session = session;

      _session.getProperties().addPropertyChangeListener(new PropertyChangeListener()
      {
         public void propertyChange(PropertyChangeEvent evt)
         {
            onPropertyChanged(evt);
         }
View Full Code Here

  public void addNotify()
  {
    super.addNotify();
    if (_propsListener == null)
    {
      _propsListener = new PropertyChangeListener()
      {
        public void propertyChange(PropertyChangeEvent evt)
        {
          propertiesHaveChanged(evt);
        }
View Full Code Here

       
        //
        // Listen for the child changing its preferred size to the size of the
        // video stream.
        //
        renderComponent.addPropertyChangeListener("preferredSize", new PropertyChangeListener() {

            public void propertyChange(PropertyChangeEvent evt) {
                setPreferredSize(renderComponent.getPreferredSize());
                scaleVideoOutput();
            }
View Full Code Here

    initializeToolkit();
    initialize();
   
    restoreLayout();
   
    PropertyChangeListener disconnector = new PropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent evt) {
        if (connection != null) {
          try {
            connection.quit();
          }
          catch (Exception e) {
            logger.debug("Error closing connection", e);
          }
          connection = null;
        }
      }     
    };
    Settings.HOSTNAME.addPropertyChangeListener(disconnector);
    Settings.PORT.addPropertyChangeListener(disconnector);
    Settings.USE_PASSIVE.addPropertyChangeListener(disconnector);
    Settings.USERNAME.addPropertyChangeListener(disconnector);
   
    Settings.LOCALE.addPropertyChangeListener(new PropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent evt) {
        updateResourceBundle();
      }
    });
   
View Full Code Here

        final JDialog dialog = new JDialog(panel.frame(), "Overwrite Value",
                true);
        dialog.setContentPane(optionPane);
        dialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);

        optionPane.addPropertyChangeListener(new PropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent e) {
                String prop = e.getPropertyName();

                if (dialog.isVisible() && (e.getSource() == optionPane)
                        && (prop.equals(JOptionPane.VALUE_PROPERTY))) {
View Full Code Here

    public void projectOpened() {
        final Runnable runnable = new Runnable() {
            public void run() {
                MavenPluginsManager.getInstance(project).addPropertyChangeListener(
                        "plugins",
                        new PropertyChangeListener() {
                            public void propertyChange(final PropertyChangeEvent pEvent) {
                                refresh();
                            }
                        });
View Full Code Here

TOP

Related Classes of java.beans.PropertyChangeListener

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.