@Override public void actionPerform(Component component) { if (table.getSelected().size() == 1) { if (lockIfNeeded((Entity) table.getSelected().iterator().next())) { super.actionPerform(component); } } }
@Override public void actionPerform(Component component) { if (table.getSelected().size() == 1) { if (lockIfNeeded((Entity) table.getSelected().iterator().next())) { super.actionPerform(component); } } }