@Override public Image getIconFor(RtcQueryAttributeValue value) throws IllegalArgumentException { if (value instanceof IterationValueImpl) { IterationImpl iter = ((IterationValueImpl) value).getRtcIteration(); if (iter.isArchived()) { return ImageUtilities.loadImage( "pl/edu/amu/wmi/kino/rtc/client/queries/model/internal/iteration_archived_obj.gif"); } else { return ImageUtilities.loadImage( "pl/edu/amu/wmi/kino/rtc/client/queries/model/internal/iteration_obj.gif"); } } else { if (value instanceof DevelopmentLineValueImpl) { return ImageUtilities.loadImage( "pl/edu/amu/wmi/kino/rtc/client/queries/model/internal/project_devline_obj.gif"); } } throw new IllegalArgumentException(); }
public IterationValueImpl(IterationImpl wi) { super(wi.getIIteration()); this.wi = wi; }