/*******************************************************************************
 * Mission Control Technologies, Copyright (c) 2009-2012, United States Government
 * as represented by the Administrator of the National Aeronautics and Space 
 * Administration. All rights reserved.
 *
 * The MCT platform is licensed under the Apache License, Version 2.0 (the 
 * "License"); you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * http://www.apache.org/licenses/LICENSE-2.0.
 *
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 
 * License for the specific language governing permissions and limitations under 
 * the License.
 *
 * MCT includes source code licensed under additional open source licenses. See 
 * the MCT Open Source Licenses file included with this distribution or the About 
 * MCT Licenses dialog available at runtime from the MCT Help menu for additional 
 * information. 
 *******************************************************************************/
package gov.nasa.arc.mct.scenario.component;

import gov.nasa.arc.mct.gui.CustomVisualControl;

public class ActivityTypeVisualControl extends CustomVisualControl {
	private static final long serialVersionUID = 3538827305917390749L;	
	
	@Override
	public void setValue(Object value) {
		
	}

	@Override
	public Object getValue() {
		return null;
	}

	@Override
	public void setMutable(boolean mutable) {
		
	}
}

@@ -1302,200 +1302,761 @@
 ol;%0A
-%0Apublic class ActivityTypeVisualControl extends CustomVisualControl %7B%0A%09private static final long serialVersionUID = 3538827305917390749L;%09%0A%09%0A%09@Override%0A%09public void setValue(Object value) %7B%0A%09%09
+import gov.nasa.arc.mct.util.MCTIcons;%0A%0Aimport java.awt.BorderLayout;%0Aimport java.awt.Color;%0A%0Aimport javax.swing.JLabel;%0Aimport javax.swing.JTextField;%0A%0Apublic class ActivityTypeVisualControl extends CustomVisualControl %7B%0A%09private static final long serialVersionUID = 3538827305917390749L;%09%0A%09private JLabel label = new JLabel();%0A%09private JTextField field = new JTextField();%0A%09private JLabel icon = new JLabel(MCTIcons.generateIcon(0, 12, Color.GRAY));%0A%09private boolean mutable = false;%0A%09%0A%09public ActivityTypeVisualControl() %7B%0A%09%09setLayout(new BorderLayout());%0A%09%09add(icon, BorderLayout.LINE_END);%0A%09%09add(label, BorderLayout.CENTER);%0A%09%7D%0A%09%0A%09@Override%0A%09public void setValue(Object value) %7B%0A%09%09field.setText(value.toString());%0A%09%09label.setText(value.toString());
 %0A%09%7D%0A
@@ -2108,12 +2108,51 @@
 urn 
-null
+mutable ? field.getText() : label.getText()
 ;%0A%09%7D
@@ -2207,16 +2207,129 @@
 able) %7B%0A
+%09%09remove(mutable ? field : label);%0A%09%09this.mutable = mutable;%0A%09%09add(mutable ? field : label, BorderLayout.CENTER);
 %09%09%0A%09%7D%0A%7D%0A

Add field/icon for custom control