Add all the screen listeners.
974517
public void addListeners()
    {
        super.addListeners();
        this.setEnabled(true);
        this.getRecord(Resource.RESOURCE_FILE).getField(Resource.CODE).setEnabled(false);
    }
921572
public void addMasterListeners()
    {
        super.addMasterListeners();
        this.getField(ProgramControl.LAST_PACKAGE_UPDATE).setEnabled(false);
        
        this.addListener(new FileListener()
        {
            public void doNewRecord(boolean bDisplayOption)
            {
                super.doNewRecord(bDisplayOption);
                
                PropertiesStringField field = (PropertiesStringField)this.getOwner().getField(ProgramControl.BASE_DIRECTORY);
                field.enableConversion = false;
                if (!field.isModified())
                    if (field.getDefault().equals(field.getData()))
                {
                    try {
                        String home = System.getProperty("user.home");
                        String current = System.getProperty("user.dir");
                        if (!home.equals(current))
                            if (current.startsWith(home))
                        {   // Set the base directory to the current directories' home
                            current = Utility.addToPath((String)field.getDefault(), current.substring(home.length()));
                            int lastPathSeparator = current.lastIndexOf(File.separator);
                            if (lastPathSeparator == -1)
                                lastPathSeparator = current.lastIndexOf('/');
                            if (lastPathSeparator != -1)
                            {
                                ((InitOnceFieldHandler)field.getListener(InitOnceFieldHandler.class)).setFirstTime(true);
                                field.setString(current.substring(0, lastPathSeparator), DBConstants.DISPLAY, DBConstants.INIT_MOVE);
                            }
                        }
                    } catch (SecurityException e) {
                        // Ignore (default is fine)
                    }
                }
                field.enableConversion = true;
            }
        });
    }
915126
private function populateListeners()
    {
        if (isset($GLOBALS['TL_EVENTS']) && is_array($GLOBALS['TL_EVENTS'])) {
            $this->addListeners($GLOBALS['TL_EVENTS']);
        }

        foreach ($this->listenerFiles as $file) {
            // @codeCoverageIgnoreStart
            $events = (array) include $file;
            $this->addListeners($events);
            // @codeCoverageIgnoreEnd
        }
    }
312968
def add_listener(self, listener):
        
        self.logger.debug('installing listener %r', listener)
        if not isinstance(listener, SessionListener):
            raise SessionError("Listener must be a SessionListener type")
        with self._lock:
            self._listeners.add(listener)
986976
synchronized void addInterestedByClass(Class<?> clazz, Collection<ProbeListener> newListeners) {
        Set<ProbeListener> currentListeners = listenersByClass.get(clazz);
        if (currentListeners == null) {
            currentListeners = new HashSet<ProbeListener>();
            listenersByClass.put(clazz, currentListeners);
        }
        currentListeners.addAll(newListeners);
    }
229819
function _addListeners() {
        if (_automaticSort && _currentSort && _currentSort.getEvents()) {
            MainViewManager
                .on(_currentSort.getEvents(), function () {
                    _currentSort.sort();
                })
                .on("_workingSetDisableAutoSort.sort", function () {
                    setAutomatic(false);
                });
        }
    }
1119734
def add_listener(self, evt_name, fn):
        
        self._listeners.setdefault(evt_name, [])
        listeners = self.__get_listeners(evt_name)
        listeners.append(fn)
102995
public void addListeners()
    {
        super.addListeners();
        
        Record recIssue = this.getMainRecord();
        SortOrderHandler keyBehavior = new SortOrderHandler(this, true);
        this.getScreenRecord().getField(IssueScreenRecord.KEY_ORDER).setValue(1);
        this.getScreenRecord().getField(IssueScreenRecord.KEY_ORDER).addListener(keyBehavior);
        
        recIssue.addListener(new CompareFileFilter(Issue.PROJECT_ID, this.getScreenRecord().getField(IssueScreenRecord.PROJECT_ID), "=", null, true));
        recIssue.addListener(new CompareFileFilter(Issue.PROJECT_VERSION_ID, this.getScreenRecord().getField(IssueScreenRecord.PROJECT_VERSION_ID), "=", null, true));
        recIssue.addListener(new CompareFileFilter(Issue.ISSUE_TYPE_ID, this.getScreenRecord().getField(IssueScreenRecord.ISSUE_TYPE_ID), "=", null, true));
        recIssue.addListener(new CompareFileFilter(Issue.ISSUE_STATUS_ID, this.getScreenRecord().getField(IssueScreenRecord.ISSUE_STATUS_ID), "=", null, true));
        recIssue.addListener(new CompareFileFilter(Issue.ASSIGNED_USER_ID, this.getScreenRecord().getField(IssueScreenRecord.ASSIGNED_USER_ID), "=", null, true));
        recIssue.addListener(new CompareFileFilter(Issue.ISSUE_PRIORITY_ID, this.getScreenRecord().getField(IssueScreenRecord.ISSUE_PRIORITY_ID), "=", null, true));
        
        this.getScreenRecord().getField(IssueScreenRecord.PROJECT_ID).addListener(new FieldReSelectHandler(this));
        this.getScreenRecord().getField(IssueScreenRecord.PROJECT_VERSION_ID).addListener(new FieldReSelectHandler(this));
        this.getScreenRecord().getField(IssueScreenRecord.ISSUE_TYPE_ID).addListener(new FieldReSelectHandler(this));
        this.getScreenRecord().getField(IssueScreenRecord.ISSUE_STATUS_ID).addListener(new FieldReSelectHandler(this));
        this.getScreenRecord().getField(IssueScreenRecord.ASSIGNED_USER_ID).addListener(new FieldReSelectHandler(this));
        this.getScreenRecord().getField(IssueScreenRecord.ISSUE_PRIORITY_ID).addListener(new FieldReSelectHandler(this));
        this.getScreenRecord().getField(IssueScreenRecord.PROJECT_ID).addListener(new FieldReSelectHandler(this));
        
        this.getScreenRecord().getField(IssueScreenRecord.PROJECT_VERSION_ID).addListener(new RegisterValueHandler(null));
        this.getScreenRecord().getField(IssueScreenRecord.ISSUE_TYPE_ID).addListener(new RegisterValueHandler(null));
        this.getScreenRecord().getField(IssueScreenRecord.ISSUE_STATUS_ID).addListener(new RegisterValueHandler(null));
        this.getScreenRecord().getField(IssueScreenRecord.ASSIGNED_USER_ID).addListener(new RegisterValueHandler(null));
        this.getScreenRecord().getField(IssueScreenRecord.ISSUE_PRIORITY_ID).addListener(new RegisterValueHandler(null));
    }
1132167
public void addListeners()
    {
        super.addListeners();
        Record record = this.getMainRecord();
        Record recClassInfo = this.getRecord(ClassInfo.CLASS_INFO_FILE);
        if (recClassInfo != null)
        {
            record.setKeyArea(ClassFields.CLASS_INFO_CLASS_NAME_KEY);
            SubFileFilter listener = new SubFileFilter(recClassInfo.getField(ClassInfo.CLASS_NAME), ClassFields.CLASS_INFO_CLASS_NAME, null, null, null, null, true);
            record.addListener(listener);
            recClassInfo.getField(ClassInfo.CLASS_NAME).addListener(new FieldReSelectHandler(this));
        }
    }
910413
public void addListeners()
    {
        super.addListeners();
        this.setEditing(true);
        Record screenRecord = this.getScreenRecord();
        ReferenceField fldMessageInfoType = (ReferenceField)screenRecord.getField(MessageLogScreenRecord.MESSAGE_INFO_TYPE_ID);
    }
1199018
private void addListeners(ProjectReader reader)
   {
      if (m_projectListeners != null)
      {
         for (ProjectListener listener : m_projectListeners)
         {
            reader.addProjectListener(listener);
         }
      }
   }
975743
public void addProjectListeners(List<ProjectListener> listeners)
   {
      if (listeners != null)
      {
         for (ProjectListener listener : listeners)
         {
            addProjectListener(listener);
         }
      }
   }
1036789
public void addListeners()
    {
        super.addListeners();
        this.getMainRecord().addListener(new MessageDetailDefTransHandler(null));
        String strManualTransportID = Integer.toString(((ReferenceField)this.getMainRecord().getField(MessageDetail.MESSAGE_TRANSPORT_ID)).getIDFromCode(MessageTransport.MANUAL));
        this.getMainRecord().getField(MessageDetail.MESSAGE_TRANSPORT_ID).setDefault(strManualTransportID);
    }
110471
function _addListeners() {
        // Avoid adding duplicate listeners - e.g. if a 2nd search is run without closing the old results panel first
        _removeListeners();

        DocumentModule.on("documentChange", _documentChangeHandler);
        FileSystem.on("change", _debouncedFileSystemChangeHandler);
        DocumentManager.on("fileNameChange",  _fileNameChangeHandler);
    }
914371
private void addKeyListenerImpl(KeyListener listener) {
		if (keyListeners.contains(listener)) {
			return;
		}
		keyListeners.add(listener);
		allListeners.add(listener);
	}
1322719
protected function setupListeners()
    {
        $subscriber = $this->app->make(CommandSubscriber::class);

        $this->app->events->subscribe($subscriber);
    }
485077
protected void addListeners() {
        Editable text = getText();
        if (text != null) {
            text.setSpan(spanWatcher, 0, text.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);
            addTextChangedListener(textWatcher);
        }
    }