private void fireDroppedEvent(DraggableComponentEvent e) {
   if (listeners != null) {
     DraggableComponentBoxEvent event =
         new DraggableComponentBoxEvent(
             this,
             e.getSource(),
             e,
             SwingUtilities.convertPoint(
                 e.getSource().getComponent(), e.getMouseEvent().getPoint(), this));
     Object[] l = listeners.toArray();
     for (int i = 0; i < l.length; i++)
       ((DraggableComponentBoxListener) l[i]).componentDropped(event);
   }
 }
 private void fireChangedEvent(DraggableComponentEvent e) {
   if (listeners != null) {
     DraggableComponentBoxEvent event = new DraggableComponentBoxEvent(this, e.getSource(), e);
     Object[] l = listeners.toArray();
     for (int i = 0; i < l.length; i++) ((DraggableComponentBoxListener) l[i]).changed(event);
   }
 }
 public void selected(DraggableComponentEvent event) {
   doSelectComponent(event.getSource());
 }
 public void changed(DraggableComponentEvent event) {
   if (event.getType() == DraggableComponentEvent.TYPE_MOVED) {
     sortComponentList(!descendingSortOrder);
   }
   fireChangedEvent(event);
 }