本文整理了Java中org.eclipse.swt.widgets.ScrollBar.removeListener()
方法的一些代码示例,展示了ScrollBar.removeListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ScrollBar.removeListener()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.ScrollBar
类名称:ScrollBar
方法名:removeListener
暂无
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
/**
* Removes the listener from the collection of listeners who will
* be notified when the receiver's value changes.
*
* @param listener the listener which should no longer be notified
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
* </ul>
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @see SelectionListener
* @see #addSelectionListener
*/
public void removeSelectionListener( SelectionListener listener ) {
checkWidget();
if( listener == null ) {
SWT.error( SWT.ERROR_NULL_ARGUMENT );
}
removeListener( SWT.Selection, listener );
removeListener( SWT.DefaultSelection, listener );
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
/**
* Removes all associations between the Editor and the underlying composite. The
* composite and the editor Control are <b>not</b> disposed.
*/
public void dispose () {
if (parent != null && !parent.isDisposed()) {
for (int i=0; i<EVENTS.length; i++) {
parent.removeListener (EVENTS [i], controlListener);
}
ScrollBar hBar = parent.getHorizontalBar ();
if (hBar != null) hBar.removeListener (SWT.Selection, scrollbarListener);
ScrollBar vBar = parent.getVerticalBar ();
if (vBar != null) vBar.removeListener (SWT.Selection, scrollbarListener);
}
parent = null;
editor = null;
hadFocus = false;
controlListener = null;
scrollbarListener = null;
}
/**
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
/**
* Removes all associations between the Editor and the underlying composite. The
* composite and the editor Control are <b>not</b> disposed.
*/
public void dispose () {
if (parent != null && !parent.isDisposed()) {
for (int i=0; i<EVENTS.length; i++) {
parent.removeListener (EVENTS [i], controlListener);
}
ScrollBar hBar = parent.getHorizontalBar ();
if (hBar != null) hBar.removeListener (SWT.Selection, scrollbarListener);
ScrollBar vBar = parent.getVerticalBar ();
if (vBar != null) vBar.removeListener (SWT.Selection, scrollbarListener);
}
parent = null;
editor = null;
hadFocus = false;
controlListener = null;
scrollbarListener = null;
}
/**
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
/**
* Removes all associations between the Editor and the underlying composite. The
* composite and the editor Control are <b>not</b> disposed.
*/
public void dispose () {
if (parent != null && !parent.isDisposed()) {
for (int i=0; i<EVENTS.length; i++) {
parent.removeListener (EVENTS [i], controlListener);
}
ScrollBar hBar = parent.getHorizontalBar ();
if (hBar != null) hBar.removeListener (SWT.Selection, scrollbarListener);
ScrollBar vBar = parent.getVerticalBar ();
if (vBar != null) vBar.removeListener (SWT.Selection, scrollbarListener);
}
parent = null;
editor = null;
hadFocus = false;
controlListener = null;
scrollbarListener = null;
}
/**
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
/**
* Removes all associations between the Editor and the underlying composite. The
* composite and the editor Control are <b>not</b> disposed.
*/
public void dispose () {
if (parent != null && !parent.isDisposed()) {
for (int i=0; i<EVENTS.length; i++) {
parent.removeListener (EVENTS [i], controlListener);
}
ScrollBar hBar = parent.getHorizontalBar ();
if (hBar != null) hBar.removeListener (SWT.Selection, scrollbarListener);
ScrollBar vBar = parent.getVerticalBar ();
if (vBar != null) vBar.removeListener (SWT.Selection, scrollbarListener);
}
parent = null;
editor = null;
hadFocus = false;
controlListener = null;
scrollbarListener = null;
}
/**
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
/**
* Removes all associations between the Editor and the underlying composite. The
* composite and the editor Control are <b>not</b> disposed.
*/
public void dispose () {
if (parent != null && !parent.isDisposed()) {
for (int i=0; i<EVENTS.length; i++) {
parent.removeListener (EVENTS [i], controlListener);
}
ScrollBar hBar = parent.getHorizontalBar ();
if (hBar != null) hBar.removeListener (SWT.Selection, scrollbarListener);
ScrollBar vBar = parent.getVerticalBar ();
if (vBar != null) vBar.removeListener (SWT.Selection, scrollbarListener);
}
parent = null;
editor = null;
hadFocus = false;
controlListener = null;
scrollbarListener = null;
}
/**
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
/**
* Removes all associations between the Editor and the underlying composite.
* The composite and the editor Control are <b>not</b> disposed.
*/
public void dispose() {
if( parent != null && !parent.isDisposed() ) {
for( int i = 0; i < EVENTS.length; i++ ) {
parent.removeListener( EVENTS[ i ], controlListener );
}
ScrollBar hBar = parent.getHorizontalBar();
ScrollBar vBar = parent.getVerticalBar();
if( hBar != null ) {
hBar.removeListener( SWT.Selection, scrollbarListener );
}
if( vBar != null ) {
vBar.removeListener( SWT.Selection, scrollbarListener );
}
}
parent = null;
editor = null;
hadFocus = false;
controlListener = null;
scrollbarListener = null;
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
void onDispose(Event event) {
removeListener(SWT.Dispose, listener);
notifyListeners(SWT.Dispose, event);
event.type = SWT.None;
table.removeListener(SWT.FocusIn, tableListener);
table.removeListener(SWT.MouseDown, tableListener);
unhookRowColumnListeners();
ScrollBar hBar = table.getHorizontalBar();
if (hBar != null) {
hBar.removeListener(SWT.Selection, resizeListener);
}
ScrollBar vBar = table.getVerticalBar();
if (vBar != null) {
vBar.removeListener(SWT.Selection, resizeListener);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
void onDispose(Event event) {
removeListener(SWT.Dispose, listener);
notifyListeners(SWT.Dispose, event);
event.type = SWT.None;
table.removeListener(SWT.FocusIn, tableListener);
table.removeListener(SWT.MouseDown, tableListener);
unhookRowColumnListeners();
ScrollBar hBar = table.getHorizontalBar();
if (hBar != null) {
hBar.removeListener(SWT.Selection, resizeListener);
}
ScrollBar vBar = table.getVerticalBar();
if (vBar != null) {
vBar.removeListener(SWT.Selection, resizeListener);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
void onDispose(Event event) {
removeListener(SWT.Dispose, listener);
notifyListeners(SWT.Dispose, event);
event.type = SWT.None;
table.removeListener(SWT.FocusIn, tableListener);
table.removeListener(SWT.MouseDown, tableListener);
unhookRowColumnListeners();
ScrollBar hBar = table.getHorizontalBar();
if (hBar != null) {
hBar.removeListener(SWT.Selection, resizeListener);
}
ScrollBar vBar = table.getVerticalBar();
if (vBar != null) {
vBar.removeListener(SWT.Selection, resizeListener);
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
void onDispose(Event event) {
removeListener(SWT.Dispose, listener);
notifyListeners(SWT.Dispose, event);
event.type = SWT.None;
table.removeListener(SWT.FocusIn, tableListener);
table.removeListener(SWT.MouseDown, tableListener);
unhookRowColumnListeners();
ScrollBar hBar = table.getHorizontalBar();
if (hBar != null) {
hBar.removeListener(SWT.Selection, resizeListener);
}
ScrollBar vBar = table.getVerticalBar();
if (vBar != null) {
vBar.removeListener(SWT.Selection, resizeListener);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
void onDispose(Event event) {
removeListener(SWT.Dispose, listener);
notifyListeners(SWT.Dispose, event);
event.type = SWT.None;
table.removeListener(SWT.FocusIn, tableListener);
table.removeListener(SWT.MouseDown, tableListener);
unhookRowColumnListeners();
ScrollBar hBar = table.getHorizontalBar();
if (hBar != null) {
hBar.removeListener(SWT.Selection, resizeListener);
}
ScrollBar vBar = table.getVerticalBar();
if (vBar != null) {
vBar.removeListener(SWT.Selection, resizeListener);
}
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
void onDispose(Event event) {
removeListener(SWT.Dispose, listener);
notifyListeners(SWT.Dispose, event);
event.type = SWT.None;
tree.removeListener(SWT.Collapse, treeListener);
tree.removeListener(SWT.Expand, treeListener);
tree.removeListener(SWT.FocusIn, treeListener);
tree.removeListener(SWT.MouseDown, treeListener);
unhookRowColumnListeners();
ScrollBar hBar = tree.getHorizontalBar();
if (hBar != null) {
hBar.removeListener(SWT.Selection, resizeListener);
}
ScrollBar vBar = tree.getVerticalBar();
if (vBar != null) {
vBar.removeListener(SWT.Selection, resizeListener);
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
void onDispose(Event event) {
removeListener(SWT.Dispose, listener);
notifyListeners(SWT.Dispose, event);
event.type = SWT.None;
tree.removeListener(SWT.Collapse, treeListener);
tree.removeListener(SWT.Expand, treeListener);
tree.removeListener(SWT.FocusIn, treeListener);
tree.removeListener(SWT.MouseDown, treeListener);
unhookRowColumnListeners();
ScrollBar hBar = tree.getHorizontalBar();
if (hBar != null) {
hBar.removeListener(SWT.Selection, resizeListener);
}
ScrollBar vBar = tree.getVerticalBar();
if (vBar != null) {
vBar.removeListener(SWT.Selection, resizeListener);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
void onDispose(Event event) {
removeListener(SWT.Dispose, listener);
notifyListeners(SWT.Dispose, event);
event.type = SWT.None;
tree.removeListener(SWT.Collapse, treeListener);
tree.removeListener(SWT.Expand, treeListener);
tree.removeListener(SWT.FocusIn, treeListener);
tree.removeListener(SWT.MouseDown, treeListener);
unhookRowColumnListeners();
ScrollBar hBar = tree.getHorizontalBar();
if (hBar != null) {
hBar.removeListener(SWT.Selection, resizeListener);
}
ScrollBar vBar = tree.getVerticalBar();
if (vBar != null) {
vBar.removeListener(SWT.Selection, resizeListener);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
void onDispose(Event event) {
removeListener(SWT.Dispose, listener);
notifyListeners(SWT.Dispose, event);
event.type = SWT.None;
tree.removeListener(SWT.Collapse, treeListener);
tree.removeListener(SWT.Expand, treeListener);
tree.removeListener(SWT.FocusIn, treeListener);
tree.removeListener(SWT.MouseDown, treeListener);
unhookRowColumnListeners();
ScrollBar hBar = tree.getHorizontalBar();
if (hBar != null) {
hBar.removeListener(SWT.Selection, resizeListener);
}
ScrollBar vBar = tree.getVerticalBar();
if (vBar != null) {
vBar.removeListener(SWT.Selection, resizeListener);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
void onDispose(Event event) {
removeListener(SWT.Dispose, listener);
notifyListeners(SWT.Dispose, event);
event.type = SWT.None;
tree.removeListener(SWT.Collapse, treeListener);
tree.removeListener(SWT.Expand, treeListener);
tree.removeListener(SWT.FocusIn, treeListener);
tree.removeListener(SWT.MouseDown, treeListener);
unhookRowColumnListeners();
ScrollBar hBar = tree.getHorizontalBar();
if (hBar != null) {
hBar.removeListener(SWT.Selection, resizeListener);
}
ScrollBar vBar = tree.getVerticalBar();
if (vBar != null) {
vBar.removeListener(SWT.Selection, resizeListener);
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface
void removeListeners() {
if (isValid()) {
proposalTable.removeListener(SWT.FocusOut, this);
ScrollBar scrollbar = proposalTable.getVerticalBar();
if (scrollbar != null) {
scrollbar.removeListener(SWT.Selection, this);
}
getShell().removeListener(SWT.Deactivate, this);
getShell().removeListener(SWT.Close, this);
}
if (control != null && !control.isDisposed()) {
control.removeListener(SWT.MouseDoubleClick, this);
control.removeListener(SWT.MouseDown, this);
control.removeListener(SWT.Dispose, this);
control.removeListener(SWT.FocusOut, this);
Shell controlShell = control.getShell();
controlShell.removeListener(SWT.Move, this);
controlShell.removeListener(SWT.Resize, this);
}
}
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface
void removeListeners() {
if (isValid()) {
proposalTable.removeListener(SWT.FocusOut, this);
ScrollBar scrollbar = proposalTable.getVerticalBar();
if (scrollbar != null) {
scrollbar.removeListener(SWT.Selection, this);
}
getShell().removeListener(SWT.Deactivate, this);
getShell().removeListener(SWT.Close, this);
}
if (control != null && !control.isDisposed()) {
control.removeListener(SWT.MouseDoubleClick, this);
control.removeListener(SWT.MouseDown, this);
control.removeListener(SWT.Dispose, this);
control.removeListener(SWT.FocusOut, this);
Shell controlShell = control.getShell();
controlShell.removeListener(SWT.Move, this);
// RAP [if] Don't add a resize listener because of
// TextSizeDetermnation
// controlShell.removeListener(SWT.Resize, this);
// RAPEND [if]
}
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface
void removeListeners() {
if (isValid()) {
proposalTable.removeListener(SWT.FocusOut, this);
ScrollBar scrollbar = proposalTable.getVerticalBar();
if (scrollbar != null) {
scrollbar.removeListener(SWT.Selection, this);
}
getShell().removeListener(SWT.Deactivate, this);
getShell().removeListener(SWT.Close, this);
}
if (control != null && !control.isDisposed()) {
control.removeListener(SWT.MouseDoubleClick, this);
control.removeListener(SWT.MouseDown, this);
control.removeListener(SWT.Dispose, this);
control.removeListener(SWT.FocusOut, this);
Shell controlShell = control.getShell();
controlShell.removeListener(SWT.Move, this);
controlShell.removeListener(SWT.Resize, this);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!