@Override protected void updateGUI() { super.updateGUI(); edu.cmu.cs.stage3.alice.authoringtool.util.PopupItemFactory pif = new edu.cmu.cs.stage3.alice.authoringtool.util.SetPropertyImmediatelyFactory(m_condition); conditionalInput = edu.cmu.cs.stage3.alice.authoringtool.util.GUIFactory.getPropertyViewController( m_condition, true, true, edu.cmu.cs.stage3.alice.authoringtool.AuthoringToolResources.shouldGUIOmitPropertyName( m_condition), pif); headerPanel.remove(glue); headerPanel.add( conditionalInput, new java.awt.GridBagConstraints( 3, 0, 1, 1, 0, 0, java.awt.GridBagConstraints.CENTER, java.awt.GridBagConstraints.NONE, new java.awt.Insets(0, 2, 0, 2), 0, 0)); headerPanel.add( endHeader, new java.awt.GridBagConstraints( 4, 0, 1, 1, 0, 0, java.awt.GridBagConstraints.CENTER, java.awt.GridBagConstraints.NONE, new java.awt.Insets(0, 2, 0, 2), 0, 0)); headerPanel.add( glue, new java.awt.GridBagConstraints( 5, 0, 1, 1, 1, 0, java.awt.GridBagConstraints.CENTER, java.awt.GridBagConstraints.BOTH, new java.awt.Insets(0, 0, 0, 0), 0, 0)); }
protected void updateGUI() { super.updateGUI(); edu.cmu.cs.stage3.alice.authoringtool.util.PopupItemFactory pif = new edu.cmu.cs.stage3.alice.authoringtool.util.SetPropertyImmediatelyFactory(m_list) { public void run(Object v) { edu.cmu.cs.stage3.alice.core.Element inputList; String name; if (v instanceof edu.cmu.cs.stage3.alice.core.List) { } else if (v instanceof edu.cmu.cs.stage3.alice.core.Variable) { if (!(((edu.cmu.cs.stage3.alice.core.Variable) v).value.get() instanceof edu.cmu.cs.stage3.alice.core.List)) { return; } } else { return; } super.run(v); } }; if (m_list.get() != null) { setVariable(); } variable = edu.cmu.cs.stage3.alice.authoringtool.util.GUIFactory.getVariableDnDPanel( (edu.cmu.cs.stage3.alice.core.Variable) m_each.get()); listInput = edu.cmu.cs.stage3.alice.authoringtool.util.GUIFactory.getPropertyViewController( m_list, false, true, edu.cmu.cs.stage3.alice.authoringtool.AuthoringToolResources.shouldGUIOmitPropertyName( m_list), pif); headerPanel.remove(glue); headerPanel.add( listInput, new java.awt.GridBagConstraints( 3, 0, 1, 1, 0, 0, java.awt.GridBagConstraints.CENTER, java.awt.GridBagConstraints.NONE, new java.awt.Insets(0, 2, 0, 2), 0, 0)); headerPanel.add( new javax.swing.JLabel(middleHeaderText), new java.awt.GridBagConstraints( 4, 0, 1, 1, 0, 0, java.awt.GridBagConstraints.CENTER, java.awt.GridBagConstraints.NONE, new java.awt.Insets(0, 2, 0, 2), 0, 0)); headerPanel.add( variable, new java.awt.GridBagConstraints( 5, 0, 1, 1, 0, 0, java.awt.GridBagConstraints.CENTER, java.awt.GridBagConstraints.NONE, new java.awt.Insets(0, 2, 0, 2), 0, 0)); headerPanel.add( endHeader, new java.awt.GridBagConstraints( 6, 0, 1, 1, 0, 0, java.awt.GridBagConstraints.CENTER, java.awt.GridBagConstraints.NONE, new java.awt.Insets(0, 2, 0, 2), 0, 0)); headerPanel.add( glue, new java.awt.GridBagConstraints( 7, 0, 1, 1, 1, 1, java.awt.GridBagConstraints.CENTER, java.awt.GridBagConstraints.BOTH, new java.awt.Insets(0, 0, 0, 0), 0, 0)); }