@Override
    public void AttribChanged (AbstractEntity entity, ConditionTypes attrib) {
        int conditionValue = (Integer) entity.getAttribute (attrib).getValue ();
        JPanel targetPanel = nodePanels.get (entity);
        int idx = panels.indexOf (targetPanel);
        Integer count = panelCount.get (idx);
        if (conditionValue == 0)
            count-- ;
        else count++ ;
        panelCount.set (idx, count);

        for (AbstractNodePanel p : panels) {
            Container container = p.getParent ();
            for (Component c : container.getComponents ()) {
                if (p != targetPanel) {
                    c.setEnabled (conditionValue == 0 && count == 0);
                    // c.setVisible (conditionValue == 0 && count == 0);
                    for (Component co : ((Container) c).getComponents ())
                        if (co instanceof JRadioButton) {
                            ((JRadioButton) co).setEnabled (false);
                        }
                }
                else {
                    for (Component co : ((Container) c).getComponents ())
                        if (co instanceof JRadioButton) {
                            ((JRadioButton) co).setSelected (count > 0);
                            ((JRadioButton) co).setEnabled (false);
                        }
                }
            }
        }
    }