Java 类org.eclipse.swt.events.TreeListener 实例源码

项目:PDFReporter-Studio    文件:GalleryTreeViewer.java   
protected void addTreeListener(Control control, TreeListener listener) {
    ((Gallery) control).addTreeListener(listener);
}
项目:OpenSPIFe    文件:TreeTableViewer.java   
@Override
protected void addTreeListener(Control c, TreeListener listener) {
    ((Tree) c).addTreeListener(listener);
}
项目:translationstudio8    文件:GridTreeViewer.java   
/** {@inheritDoc} */
protected void addTreeListener(Control control, TreeListener listener) {
    ((Grid) control).addTreeListener(listener);
}
项目:gef-gwt    文件:TableTreeViewer.java   
protected void addTreeListener(Control c, TreeListener listener) {
    ((TableTree) c).addTreeListener(listener);
}
项目:gef-gwt    文件:TreeViewer.java   
protected void addTreeListener(Control c, TreeListener listener) {
    ((Tree) c).addTreeListener(listener);
}
项目:tmxeditor8    文件:GridTreeViewer.java   
/** {@inheritDoc} */
protected void addTreeListener(Control control, TreeListener listener) {
    ((Grid) control).addTreeListener(listener);
}
项目:PDFReporter-Studio    文件:Gallery.java   
/**
 * Adds the listener to the collection of listeners who will be notified
 * when an item in the receiver is expanded or collapsed by sending it one
 * of the messages defined in the TreeListener interface.
 * 
 * @param listener
 */
public void addTreeListener(TreeListener listener) {
    checkWidget();
    if (listener == null)
        SWT.error(SWT.ERROR_NULL_ARGUMENT);
    addListener(SWT.Expand, new TypedListener(listener));
}
项目:translationstudio8    文件:Grid.java   
/**
 * Adds the listener to the collection of listeners who will be notified
 * when the receiver's items changes, by sending it one of the messages
 * defined in the {@code TreeListener} interface.
 *
 * @param listener the listener which should be notified
 * @throws IllegalArgumentException
 * <ul>
 * <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
 * </ul>
 * @throws org.eclipse.swt.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 TreeListener
 * @see #removeTreeListener
 * @see org.eclipse.swt.events.TreeEvent
 */
public void addTreeListener(TreeListener listener)
{
    checkWidget();
    if (listener == null)
    {
        SWT.error(SWT.ERROR_NULL_ARGUMENT);
    }

    addListener(SWT.Expand, new TypedListener(listener));
    addListener(SWT.Collapse, new TypedListener(listener));
}
项目:translationstudio8    文件:Grid.java   
/**
 * Removes the listener from the collection of listeners who will be
 * notified when the receiver's items changes.
 *
 * @param listener the listener which should no longer be notified
 * @see TreeListener
 * @see #addTreeListener(TreeListener)
 * @throws org.eclipse.swt.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>
 */
public void removeTreeListener(TreeListener listener)
{
    checkWidget();
    removeListener(SWT.Expand, listener);
    removeListener(SWT.Collapse, listener);
}
项目:translationstudio8    文件:GridColumnGroup.java   
/**
 * Adds the listener to the collection of listeners who will
 * be notified when an item in the receiver is expanded or collapsed
 * by sending it one of the messages defined in the <code>TreeListener</code>
 * interface.
 *
 * @param listener the listener which should 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 TreeListener
 * @see #removeTreeListener
 */
public void addTreeListener(TreeListener listener) {
    checkWidget ();
    if (listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
    TypedListener typedListener = new TypedListener (listener);
    addListener (SWT.Expand, typedListener);
    addListener (SWT.Collapse, typedListener);
}
项目:translationstudio8    文件:GridColumnGroup.java   
/**
 * Removes the listener from the collection of listeners who will
 * be notified when items in the receiver are expanded or collapsed.
 *
 * @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 TreeListener
 * @see #addTreeListener
 */
public void removeTreeListener(TreeListener listener) {
    checkWidget ();
    if (listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
    removeListener (SWT.Expand, listener);
    removeListener (SWT.Collapse, listener);
}
项目:gef-gwt    文件:TableTree.java   
/**
 * Adds the listener to the collection of listeners who will be notified
 * when an item in the receiver is expanded or collapsed by sending it one
 * of the messages defined in the <code>TreeListener</code> interface.
 * 
 * @param listener
 *            the listener which should 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 TreeListener
 * @see #removeTreeListener
 */
public void addTreeListener(TreeListener listener) {
    checkWidget();
    if (listener == null)
        SWT.error(SWT.ERROR_NULL_ARGUMENT);
    TypedListener typedListener = new TypedListener(listener);
    addListener(SWT.Expand, typedListener);
    addListener(SWT.Collapse, typedListener);
}
项目:gef-gwt    文件:TableTree.java   
/**
 * Removes the listener from the collection of listeners who will be
 * notified when items in the receiver are expanded or collapsed.
 * 
 * @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 TreeListener
 * @see #addTreeListener
 */
public void removeTreeListener(TreeListener listener) {
    checkWidget();
    if (listener == null)
        SWT.error(SWT.ERROR_NULL_ARGUMENT);
    removeListener(SWT.Expand, listener);
    removeListener(SWT.Collapse, listener);
}
项目:gef-gwt    文件:Tree.java   
/**
 * Adds the listener to the collection of listeners who will be notified
 * when an item in the receiver is expanded or collapsed by sending it one
 * of the messages defined in the <code>TreeListener</code> interface.
 * 
 * @param listener
 *            the listener which should 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 TreeListener
 * @see #removeTreeListener
 */
public void addTreeListener(TreeListener listener) {
    checkWidget();
    if (listener == null)
        error(SWT.ERROR_NULL_ARGUMENT);
    TypedListener typedListener = new TypedListener(listener);
    addListener(SWT.Expand, typedListener);
    addListener(SWT.Collapse, typedListener);
}
项目:gef-gwt    文件:Tree.java   
/**
 * Removes the listener from the collection of listeners who will be
 * notified when items in the receiver are expanded or collapsed.
 * 
 * @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 TreeListener
 * @see #addTreeListener
 */
public void removeTreeListener(TreeListener listener) {
    checkWidget();
    if (listener == null)
        error(SWT.ERROR_NULL_ARGUMENT);
    if (eventTable == null)
        return;
    eventTable.unhook(SWT.Expand, listener);
    eventTable.unhook(SWT.Collapse, listener);
}
项目:tmxeditor8    文件:Grid.java   
/**
 * Adds the listener to the collection of listeners who will be notified
 * when the receiver's items changes, by sending it one of the messages
 * defined in the {@code TreeListener} interface.
 *
 * @param listener the listener which should be notified
 * @throws IllegalArgumentException
 * <ul>
 * <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
 * </ul>
 * @throws org.eclipse.swt.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 TreeListener
 * @see #removeTreeListener
 * @see org.eclipse.swt.events.TreeEvent
 */
public void addTreeListener(TreeListener listener)
{
    checkWidget();
    if (listener == null)
    {
        SWT.error(SWT.ERROR_NULL_ARGUMENT);
    }

    addListener(SWT.Expand, new TypedListener(listener));
    addListener(SWT.Collapse, new TypedListener(listener));
}
项目:tmxeditor8    文件:Grid.java   
/**
 * Removes the listener from the collection of listeners who will be
 * notified when the receiver's items changes.
 *
 * @param listener the listener which should no longer be notified
 * @see TreeListener
 * @see #addTreeListener(TreeListener)
 * @throws org.eclipse.swt.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>
 */
public void removeTreeListener(TreeListener listener)
{
    checkWidget();
    removeListener(SWT.Expand, listener);
    removeListener(SWT.Collapse, listener);
}
项目:tmxeditor8    文件:GridColumnGroup.java   
/**
 * Adds the listener to the collection of listeners who will
 * be notified when an item in the receiver is expanded or collapsed
 * by sending it one of the messages defined in the <code>TreeListener</code>
 * interface.
 *
 * @param listener the listener which should 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 TreeListener
 * @see #removeTreeListener
 */
public void addTreeListener(TreeListener listener) {
    checkWidget ();
    if (listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
    TypedListener typedListener = new TypedListener (listener);
    addListener (SWT.Expand, typedListener);
    addListener (SWT.Collapse, typedListener);
}
项目:tmxeditor8    文件:GridColumnGroup.java   
/**
 * Removes the listener from the collection of listeners who will
 * be notified when items in the receiver are expanded or collapsed.
 *
 * @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 TreeListener
 * @see #addTreeListener
 */
public void removeTreeListener(TreeListener listener) {
    checkWidget ();
    if (listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
    removeListener (SWT.Expand, listener);
    removeListener (SWT.Collapse, listener);
}
项目:Mailster    文件:MailBoxTableTree.java   
/**
 * Adds the listener to receive tree events.
 * <p>
 * 
 * @param listener
 *            the tree listener
 * 
 * @exception SWTError
 *                <ul>
 *                <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread <li>
 *                ERROR_WIDGET_DISPOSED when the widget has been disposed <li>
 *                ERROR_NULL_ARGUMENT when listener is null
 *                </ul>
 */
public void addTreeListener(TreeListener listener)
{
    if (listener == null)
        throw new SWTError(SWT.ERROR_NULL_ARGUMENT);
    TypedListener typedListener = new TypedListener(listener);
    addListener(SWT.Expand, typedListener);
    addListener(SWT.Collapse, typedListener);
}
项目:Mailster    文件:MailBoxTableTree.java   
/**
 * Removes the listener.
 * 
 * @param listener
 *            the listener
 * 
 * @exception SWTError
 *                <ul>
 *                <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
 *                <li>ERROR_WIDGET_DISPOSED when the widget has been disposed
 *                <li>ERROR_NULL_ARGUMENT when listener is null
 *                </ul>
 */
public void removeTreeListener(TreeListener listener)
{
    if (listener == null)
        throw new SWTError(SWT.ERROR_NULL_ARGUMENT);
    removeListener(SWT.Expand, listener);
    removeListener(SWT.Collapse, listener);
}
项目:convertigo-eclipse    文件:TreeWrapper.java   
public void addTreeListener(TreeListener listener) {

    tree.addTreeListener(listener);
}
项目:convertigo-eclipse    文件:TreeWrapper.java   
public void removeTreeListener(TreeListener listener) {

    tree.removeTreeListener(listener);
}
项目:gef-gwt    文件:AbstractTreeViewer.java   
/**
 * Adds the given SWT tree listener to the given SWT control.
 * 
 * @param control
 *            the SWT control
 * @param listener
 *            the SWT tree listener
 */
protected abstract void addTreeListener(Control control,
        TreeListener listener);