JScrollBar.java 文件源码

java
阅读 18 收藏 0 点赞 0 评论 0

项目:javify 作者:
/**
 * Helper method for firing adjustment events that can have their
 * isAdjusting field modified.
 *
 * This is package private to avoid an accessor method.
 *
 * @param id the ID of the event
 * @param type the type of the event
 * @param value the value
 * @param isAdjusting if the scrollbar is adjusting or not
 */
void fireAdjustmentValueChanged(int id, int type, int value,
                                        boolean isAdjusting)
{
  Object[] adjustmentListeners = listenerList.getListenerList();
  AdjustmentEvent adjustmentEvent = new AdjustmentEvent(this, id, type,
                                                        value, isAdjusting);
  for (int i = adjustmentListeners.length - 2; i >= 0; i -= 2)
    {
      if (adjustmentListeners[i] == AdjustmentListener.class)
        ((AdjustmentListener) adjustmentListeners[i + 1]).adjustmentValueChanged(adjustmentEvent);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号