org.eclipse.swt.widgets.Button.removeSelectionListener()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(13.0k)|赞(0)|评价(0)|浏览(139)

本文整理了Java中org.eclipse.swt.widgets.Button.removeSelectionListener()方法的一些代码示例,展示了Button.removeSelectionListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.removeSelectionListener()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Button
类名称:Button
方法名:removeSelectionListener

Button.removeSelectionListener介绍

[英]Removes the listener from the collection of listeners who will be notified when the control is selected by the user.
[中]

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

wCheckBox.removeSelectionListener( (SelectionListener) l );

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.m2e.core.ui

/** Removes the selection listener from the "browse" button. */
public void removeBrowseButtonListener(SelectionListener listener) {
 if(parentBrowseButton != null) {
  parentBrowseButton.removeSelectionListener(listener);
 }
}

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

public void removeSelectionListener(SelectionListener listener) {
  if (fUpdateRefsCheck != null) {
    fUpdateRefsCheck.removeSelectionListener(listener);
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.m2e.core.ui

/** Removes the listener watching the project name field. */
public void removeArchetypeSelectionListener(SelectionListener selectionListener) {
 simpleProject.removeSelectionListener(selectionListener);
}

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

@Override
  public void widgetSelected(SelectionEvent e) {
    initializeJarSigningInputFields(settings);
    // after first initialization and loading of information
    // repeated initialization (on selection) would overwrite
    // user entered changes -> remove listener
    fButton.removeSelectionListener(this);
  }
});

代码示例来源:origin: org.apache.directory.studio/ldapbrowser.common

/**
 * Removes listeners for the Rdn line.
 *
 * @param rdnLine the Rdn line
 */
private void removeRdnLineListeners( RdnLine rdnLine )
{
  if ( rdnLine != null )
  {
    rdnLine.rdnAddButton.removeSelectionListener( rdnAddButtonSelectionListener );
    rdnLine.rdnDeleteButton.removeSelectionListener( rdnDeleteButtonSelectionListener );
    rdnLine.rdnTypeCombo.removeModifyListener( this );
    rdnLine.rdnValueText.removeModifyListener( this );
  }
}

代码示例来源:origin: org.apache.directory.studio/apacheds.configuration

/**
 * Removes listeners to UI fields.
 */
private void removeListeners()
{
  idText.removeModifyListener( textModifyListener );
  cacheSizeText.removeModifyListener( textModifyListener );
  suffixText.removeModifyListener( textModifyListener );
  enableOptimizerCheckbox.removeSelectionListener( checkboxSelectionListener );
  synchOnWriteCheckbox.removeSelectionListener( checkboxSelectionListener );
  indexedAttributesTableViewer.removeSelectionChangedListener( indexedAttributesTableViewerListener );
  indexedAttributesTableViewer.removeDoubleClickListener( indexedAttributesTableViewerDoubleClickListener );
  indexedAttributeAddButton.removeSelectionListener( indexedAttributeAddButtonListener );
  indexedAttributeEditButton.removeSelectionListener( indexedAttributeEditButtonListener );
  indexedAttributeDeleteButton.removeSelectionListener( indexedAttributeDeleteButtonListener );
}

代码示例来源:origin: org.apache.directory.studio/apacheds.configuration

/**
 * Removes listeners to UI fields.
 */
private void removeListeners()
{
  idText.removeModifyListener( textModifyListener );
  cacheSizeText.removeModifyListener( textModifyListener );
  suffixText.removeModifyListener( textModifyListener );
  enableOptimizerCheckbox.removeSelectionListener( checkboxSelectionListener );
  synchOnWriteCheckbox.removeSelectionListener( checkboxSelectionListener );
  indexedAttributesTableViewer.removeSelectionChangedListener( indexedAttributesTableViewerListener );
  indexedAttributesTableViewer.removeDoubleClickListener( indexedAttributesTableViewerDoubleClickListener );
  indexedAttributeAddButton.removeSelectionListener( indexedAttributeAddButtonListener );
  indexedAttributeEditButton.removeSelectionListener( indexedAttributeEditButtonListener );
  indexedAttributeDeleteButton.removeSelectionListener( indexedAttributeDeleteButtonListener );
}

代码示例来源:origin: org.apache.directory.studio/apacheds.configuration

/**
 * Removes listeners to UI fields.
 */
private void removeListeners()
{
  idText.removeModifyListener( textModifyListener );
  cacheSizeText.removeModifyListener( textModifyListener );
  suffixText.removeModifyListener( textModifyListener );
  enableOptimizerCheckbox.removeSelectionListener( checkboxSelectionListener );
  synchOnWriteCheckbox.removeSelectionListener( checkboxSelectionListener );
  indexedAttributesTableViewer.removeSelectionChangedListener( indexedAttributesTableViewerListener );
  indexedAttributesTableViewer.removeDoubleClickListener( indexedAttributesTableViewerDoubleClickListener );
  indexedAttributeAddButton.removeSelectionListener( indexedAttributeAddButtonListener );
  indexedAttributeEditButton.removeSelectionListener( indexedAttributeEditButtonListener );
  indexedAttributeDeleteButton.removeSelectionListener( indexedAttributeDeleteButtonListener );
}

代码示例来源:origin: org.apache.directory.studio/apacheds.configuration

/**
 * Removes listeners to UI fields.
 */
private void removeListeners()
{
  idText.removeModifyListener( textModifyListener );
  cacheSizeText.removeModifyListener( textModifyListener );
  suffixText.removeModifyListener( textModifyListener );
  enableOptimizerCheckbox.removeSelectionListener( checkboxSelectionListener );
  synchOnWriteCheckbox.removeSelectionListener( checkboxSelectionListener );
  indexedAttributesTableViewer.removeSelectionChangedListener( indexedAttributesTableViewerListener );
  indexedAttributesTableViewer.removeDoubleClickListener( indexedAttributesTableViewerDoubleClickListener );
  indexedAttributeAddButton.removeSelectionListener( indexedAttributeAddButtonListener );
  indexedAttributeEditButton.removeSelectionListener( indexedAttributeEditButtonListener );
  indexedAttributeDeleteButton.removeSelectionListener( indexedAttributeDeleteButtonListener );
}

代码示例来源:origin: org.apache.directory.studio/apacheds.configuration

/**
 * Removes listeners to UI fields.
 */
private void removeListeners()
{
  idText.removeModifyListener( textModifyListener );
  cacheSizeText.removeModifyListener( textModifyListener );
  suffixText.removeModifyListener( textModifyListener );
  enableOptimizerCheckbox.removeSelectionListener( checkboxSelectionListener );
  synchOnWriteCheckbox.removeSelectionListener( checkboxSelectionListener );
  contextEntryTableViewer.removeDoubleClickListener( contextEntryTableViewerDoubleClickListener );
  contextEntryTableViewer.removeSelectionChangedListener( contextEntryTableViewerListener );
  contextEntryAddButton.removeSelectionListener( contextEntryAddButtonListener );
  contextEntryEditButton.removeSelectionListener( contextEntryEditButtonListener );
  contextEntryDeleteButton.removeSelectionListener( contextEntryDeleteButtonListener );
  indexedAttributesTableViewer.removeSelectionChangedListener( indexedAttributesTableViewerListener );
  indexedAttributesTableViewer.removeDoubleClickListener( indexedAttributesTableViewerDoubleClickListener );
  indexedAttributeAddButton.removeSelectionListener( indexedAttributeAddButtonListener );
  indexedAttributeEditButton.removeSelectionListener( indexedAttributeEditButtonListener );
  indexedAttributeDeleteButton.removeSelectionListener( indexedAttributeDeleteButtonListener );
}

代码示例来源:origin: org.apache.directory.studio/apacheds.configuration

/**
 * Removes listeners to UI fields.
 */
private void removeListeners()
{
  nameText.removeModifyListener( textModifyListener );
  cacheSizeText.removeModifyListener( textModifyListener );
  suffixText.removeModifyListener( textModifyListener );
  enableOptimizerCheckbox.removeSelectionListener( checkboxSelectionListener );
  synchOnWriteCheckbox.removeSelectionListener( checkboxSelectionListener );
  contextEntryTableViewer.removeDoubleClickListener( contextEntryTableViewerDoubleClickListener );
  contextEntryTableViewer.removeSelectionChangedListener( contextEntryTableViewerListener );
  contextEntryAddButton.removeSelectionListener( contextEntryAddButtonListener );
  contextEntryEditButton.removeSelectionListener( contextEntryEditButtonListener );
  contextEntryDeleteButton.removeSelectionListener( contextEntryDeleteButtonListener );
  indexedAttributesTableViewer.removeSelectionChangedListener( indexedAttributesTableViewerListener );
  indexedAttributesTableViewer.removeDoubleClickListener( indexedAttributesTableViewerDoubleClickListener );
  indexedAttributeAddButton.removeSelectionListener( indexedAttributeAddButtonListener );
  indexedAttributeEditButton.removeSelectionListener( indexedAttributeEditButtonListener );
  indexedAttributeDeleteButton.removeSelectionListener( indexedAttributeDeleteButtonListener );
}

代码示例来源:origin: org.apache.directory.studio/apacheds.configuration

/**
 * Removes listeners to UI fields.
 */
private void removeListeners()
{
  idText.removeModifyListener( textModifyListener );
  cacheSizeText.removeModifyListener( textModifyListener );
  suffixText.removeModifyListener( textModifyListener );
  enableOptimizerCheckbox.removeSelectionListener( checkboxSelectionListener );
  synchOnWriteCheckbox.removeSelectionListener( checkboxSelectionListener );
  contextEntryTableViewer.removeDoubleClickListener( contextEntryTableViewerDoubleClickListener );
  contextEntryTableViewer.removeSelectionChangedListener( contextEntryTableViewerListener );
  contextEntryAddButton.removeSelectionListener( contextEntryAddButtonListener );
  contextEntryEditButton.removeSelectionListener( contextEntryEditButtonListener );
  contextEntryDeleteButton.removeSelectionListener( contextEntryDeleteButtonListener );
  indexedAttributesTableViewer.removeSelectionChangedListener( indexedAttributesTableViewerListener );
  indexedAttributesTableViewer.removeDoubleClickListener( indexedAttributesTableViewerDoubleClickListener );
  indexedAttributeAddButton.removeSelectionListener( indexedAttributeAddButtonListener );
  indexedAttributeEditButton.removeSelectionListener( indexedAttributeEditButtonListener );
  indexedAttributeDeleteButton.removeSelectionListener( indexedAttributeDeleteButtonListener );
}

代码示例来源:origin: org.apache.directory.studio/apacheds.configuration

/**
 * Removes listeners to UI fields.
 */
private void removeListeners()
{
  idText.removeModifyListener( textModifyListener );
  cacheSizeText.removeModifyListener( textModifyListener );
  suffixText.removeModifyListener( textModifyListener );
  enableOptimizerCheckbox.removeSelectionListener( checkboxSelectionListener );
  synchOnWriteCheckbox.removeSelectionListener( checkboxSelectionListener );
  contextEntryTableViewer.removeDoubleClickListener( contextEntryTableViewerDoubleClickListener );
  contextEntryTableViewer.removeSelectionChangedListener( contextEntryTableViewerListener );
  contextEntryAddButton.removeSelectionListener( contextEntryAddButtonListener );
  contextEntryEditButton.removeSelectionListener( contextEntryEditButtonListener );
  contextEntryDeleteButton.removeSelectionListener( contextEntryDeleteButtonListener );
  indexedAttributesTableViewer.removeSelectionChangedListener( indexedAttributesTableViewerListener );
  indexedAttributesTableViewer.removeDoubleClickListener( indexedAttributesTableViewerDoubleClickListener );
  indexedAttributeAddButton.removeSelectionListener( indexedAttributeAddButtonListener );
  indexedAttributeEditButton.removeSelectionListener( indexedAttributeEditButtonListener );
  indexedAttributeDeleteButton.removeSelectionListener( indexedAttributeDeleteButtonListener );
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui

@Override
public void dispose() {
  fAuto.removeSelectionListener(this);
  fManual.removeSelectionListener(this);
  fPageSize.setPropertyChangeListener(null);
  fPreBufferSize.setPropertyChangeListener(null);
  fPostBufferSize.setPropertyChangeListener(null);
  super.dispose();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.e4.ui.css.swt

@Override
public void dispose() {
  super.dispose();
  if (!dynamicEnabled) {
    return;
  }
  Button button = getButton();
  if (!button.isDisposed()) {
    button.removeSelectionListener(selectionListener);
  }
}

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

protected void dispose() {
    if (!fValuesCombo.isDisposed())
      fValuesCombo.removeModifyListener(this);
    if (!fClearButton.isDisposed())
      fClearButton.removeSelectionListener(this);
  }
}

代码示例来源:origin: org.eclipse.e4.ui.css/swt

public void dispose() {
  super.dispose();
  if (!dynamicEnabled) return; 
  
  Button button = getButton();
  if (!button.isDisposed()) {
    button.removeSelectionListener(selectionListener);
  }
}

代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui

public void dispose()
{
 if (titleFont != null && !titleFont.isDisposed())
  titleFont.dispose();
 titleFont = null;
 
 if (minimumInclusiveCheckbox != null && !minimumInclusiveCheckbox.isDisposed())
  minimumInclusiveCheckbox.removeSelectionListener(this);
 if (maximumInclusiveCheckbox != null && !maximumInclusiveCheckbox.isDisposed())
  maximumInclusiveCheckbox.removeSelectionListener(this);
 
 if (collapseWhitespaceButton != null && !collapseWhitespaceButton.isDisposed())
  collapseWhitespaceButton.removeSelectionListener(this);
 if (maxLengthText != null && !maxLengthText.isDisposed())
  removeListeners(maxLengthText);
 if (minLengthText != null && !minLengthText.isDisposed())
  removeListeners(minLengthText);
 
 super.dispose();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui

@Override
public boolean close() {
  fViewer.removeSelectionChangedListener(fSelectionChangedListener);
  memoryBlock.removeSelectionListener(fSelectionListener);
  addNew.removeSelectionListener(fAddNewSelectionAdapter);
  DebugPlugin.getDefault().getMemoryBlockManager().removeListener(fMemoryBlockListener);
  DebugUITools.getMemoryRenderingManager().removeListener(fBindingListener);
  return super.close();
}

相关文章

Button类方法