public void setActions(Action add, Action remove, Action update) {
        if (addAction != null)
            addButton.removeActionListener(addAction);

        if (removeAction != null)
            removeButton.removeActionListener(removeAction);

        if (updateAction != null) {
            addButton.removeActionListener(updateAction);
            removeButton.removeActionListener(updateAction);
        }

        addAction = add;
        removeAction = remove;
        updateAction = update;

        if (addAction != null)
            addButton.addActionListener(addAction);

        if (removeAction != null)
            removeButton.addActionListener(removeAction);

        if (updateAction != null) {
            addButton.addActionListener(updateAction);
            removeButton.addActionListener(updateAction);

            updateAction.actionPerformed(new ActionEvent(this, 0, null));
        }
    }