001 package nl.cwi.sen1.gui.plugin; 002 003 import aterm.ATerm; 004 005 public class ProgressCell { 006 private String label; 007 private ATerm id; 008 009 public ProgressCell(ATerm id, String label) { 010 this.label = label; 011 this.id = id; 012 } 013 014 public ProgressCell(String label) { 015 this.label=label; 016 this.id = null; 017 } 018 019 public String toString() { 020 return label; 021 } 022 023 public ATerm getId() { 024 if (id != null) { 025 return id; 026 } 027 throw new UnsupportedOperationException("this cell has no id"); 028 } 029 030 public String getLabel() { 031 return label; 032 } 033 }