コード例 #1
0
    public void actionPerformed(ActionEvent e) {
      /*
      Err.pr( "$$$$$$$      Action Listening: " + e);
      times++;
      Err.pr( "-----------> times " + times);
      if(times == 0)
      {
      Err.stack();
      }
      */
      // ((Component)e.getSource()).getName());
      if (itemAdapter.isInError()) {
        // Doesn't work
        // ((Component)e.getSource()).invalidate();
        // ((Component)e.getSource()).repaint();
        return;
      }

      itemAdapter.setOriginalAdapter(itemAdapter);
      // Too many messages
      // Err.pr( "TEMPORARILY DISABLED EntrySiteEnum.ACTION_LISTENER");
      if (itemAdapter.getMoveBlock() != null) {
        MoveTrackerI mManager = itemAdapter.getMoveBlock().getMoveTracker();
        mManager.enter(itemAdapter, EntrySiteEnum.ACTION_LISTENER);
        mManager.exitEnter();
      }
      // TO HERE BRING BACK
      // Doesn't work
      // ((Component)e.getSource()).invalidate();
      // ((Component)e.getSource()).repaint();
    }
コード例 #2
0
  void addRClickListener(Component comp, ItemAdapter itemAdapter) {
    String txt = "Restore to <" + itemAdapter.getB4ImageValue() + ">";
    RClickListener l = new RClickListener(itemAdapter);
    JPopupMenu popup = new JPopupMenu();
    JMenuItem menuItem = new JMenuItem(txt);
    menuItem.addActionListener(l);
    popup.add(menuItem);

    MouseListener popupListener = new PopupListener(popup);
    comp.addMouseListener(popupListener);
  }
コード例 #3
0
 public void mouseClicked(MouseEvent e) {
   itemAdapter.getCell().getNode().changeFromCurrentNode();
 }
コード例 #4
0
 public void actionPerformed(ActionEvent e) {
   itemAdapter.resetToB4ImageValue();
 }