public void addLongSelectionListener(SelectionListener listener){
  if (listener == null)   throw new IllegalArgumentException();
  if (!longSelectionListeners.contains(listener))   longSelectionListeners.add(listener);
}

public void addLongSelectionListener ( SelectionListener listener ) { if ( listener == null ) throw new IllegalArgumentException ( ) ; if ( ! longSelectionListeners . contains ( listener ) ) longSelectionListeners . add ( listener ) ; }
adds a long selection listener . events sent to the listener have long start and end points . the start point is formed by event . width as the most significant int and event . x as the least significant int . the end point is similarly formed by event . height and event . y a listener can obtain the long selection with this code : getlongselection ( selectionevent ) long start = ( ( long ) event . width ) < < 32 | ( event . x & 0x0ffffffffl ) similarly for the end point : long end = ( ( long ) event . height ) < < 32 | ( event . y & 0x0ffffffffl )
