Package gov.nasa.arc.mct.components

Examples of gov.nasa.arc.mct.components.TextInitializer


    // Describe the field "dataDescription" in the business class MyData.
    // Here we specify an immutable field, whereby its initial value is specified using a convenience class TextInitializer.
    String labelText = "World Swimming Event";
    PropertyDescriptor swimmingEvent = new PropertyDescriptor(labelText,
        new TextInitializer(getModel().getData().getDataDescription()), VisualControlDescriptor.Label);

    // Describe MyData's field "doubleData".
    // We specify a mutable text field.  The control display's values are maintained in the business model
    // via the PropertyEditor object.  When a new value is to be set, the editor also validates the prospective value.
    PropertyDescriptor swimmingWorldRecord = new PropertyDescriptor("Men's World Record (Rome 2009 Phelps)",
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.components.TextInitializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.