コード例 #1
0
 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);
   }
 }
コード例 #2
0
 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);
   }
 }
コード例 #3
0
 public void selected(DraggableComponentEvent event) {
   doSelectComponent(event.getSource());
 }