/// <summary> /// Removes the specified adjustment listener so that it no longer /// receives adjustment events from this <code>ScrollPaneAdjustable</code>. /// If <code>l</code> is <code>null</code>, no exception is thrown /// and no action is performed. /// <para>Refer to <a href="doc-files/AWTThreadIssues.html#ListenersThreads" /// >AWT Threading Issues</a> for details on AWT's threading model. /// /// </para> /// </summary> /// <param name="l"> the adjustment listener. </param> /// <seealso cref= #addAdjustmentListener </seealso> /// <seealso cref= #getAdjustmentListeners </seealso> /// <seealso cref= java.awt.event.AdjustmentListener </seealso> /// <seealso cref= java.awt.event.AdjustmentEvent /// @since JDK1.1 </seealso> public virtual void RemoveAdjustmentListener(AdjustmentListener l) { lock (this) { if (l == null) { return; } AdjustmentListener = AWTEventMulticaster.Remove(AdjustmentListener, l); } }
/// <summary> /// Removes the old adjustment-listener from adjustment-listener-l and /// returns the resulting multicast listener. </summary> /// <param name="l"> adjustment-listener-l </param> /// <param name="oldl"> the adjustment-listener being removed </param> public static AdjustmentListener Remove(AdjustmentListener l, AdjustmentListener oldl) { return((AdjustmentListener)RemoveInternal(l, oldl)); }
/// <summary> /// Adds adjustment-listener-a with adjustment-listener-b and /// returns the resulting multicast listener. </summary> /// <param name="a"> adjustment-listener-a </param> /// <param name="b"> adjustment-listener-b </param> public static AdjustmentListener Add(AdjustmentListener a, AdjustmentListener b) { return((AdjustmentListener)AddInternal(a, b)); }
/// <summary> /// Adds an AdjustmentListener. /// </summary> public void addAdjustmentListener(AdjustmentListener @l) { }
/// <summary> /// Removes an AdjustmentEvent listener. /// </summary> public void removeAdjustmentListener(AdjustmentListener @l) { }
/// <summary> /// Constructs a new object to represent specified scrollabar /// of the specified <code>ScrollPane</code>. /// Only ScrollPane creates instances of this class. </summary> /// <param name="sp"> <code>ScrollPane</code> </param> /// <param name="l"> <code>AdjustmentListener</code> to add upon creation. </param> /// <param name="orientation"> specifies which scrollbar this object represents, /// can be either <code>Adjustable.HORIZONTAL</code> /// or <code>Adjustable.VERTICAL</code>. </param> internal ScrollPaneAdjustable(ScrollPane sp, AdjustmentListener l, int orientation) { this.Sp = sp; this.Orientation_Renamed = orientation; AddAdjustmentListener(l); }