public void addConfigurations(Collection statements) { Iterator it = statements.iterator(); while (it.hasNext()) { Object obj = it.next(); if (obj instanceof StatementBundleConfiguration) { addConfiguration((StatementBundleConfiguration) obj); } } }
public boolean isComplete(StatementBundleConfiguration config) { if (configurations.containsKey(config)) { Vector statements = (Vector) configurations.get(config); Iterator it = statements.iterator(); int count = 0; while (it.hasNext()) { count++; if (!((StatementBundle) it.next()).isComplete()) return (false); } if (count > 0) return (true); else return (false); } else return (false); }
private JPanel getStringLevels(EnumLevelList ll) { JPanel levelPanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); levelPanel.setBackground(Color.white); levelPanel.setForeground(Color.black); Iterator i = ll.getLevelIterator(); JLabel levelLabel = null; EnumLevel level = null; while (i != null && i.hasNext()) { level = (EnumLevel) i.next(); levelLabel = new JLabel(level.toString() + " | "); levelLabel.setForeground(ARMY_GREEN); levelPanel.add(levelLabel); // levelPanel.add(new JSeparator(SwingConstants.HORIZONTAL)); } return levelPanel; }