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(); }
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); }
public void mouseClicked(MouseEvent e) { itemAdapter.getCell().getNode().changeFromCurrentNode(); }
public void actionPerformed(ActionEvent e) { itemAdapter.resetToB4ImageValue(); }