/** * @param random * true for random slider */ public void setRandom(boolean random) { randomSlider = random; if (random) { cons.addRandomGeo(this); } else { cons.removeRandomGeo(this); } }
@Override public void doRemove() { super.doRemove(); // if this was a random number, make sure it's removed cons.removeRandomGeo(this); if (intervalMin instanceof GeoNumeric) { ((GeoNumeric) intervalMin).unregisterMinMaxListener(this); } if (intervalMax instanceof GeoNumeric) { ((GeoNumeric) intervalMax).unregisterMinMaxListener(this); } }