Package gov.nasa.arc.mct.components

Examples of gov.nasa.arc.mct.components.ExtendedProperties.addProperty()


   
  }
 
  private void persistSettings() {
    ExtendedProperties props = view.getViewProperties();
    props.addProperty("NonTimeIndependentMin", "" + independentBounds[0]);
    props.addProperty("NonTimeIndependentMax", "" + independentBounds[1]);
    props.addProperty("NonTimeDependentMin",   "" + dependentBounds  [0]);
    props.addProperty("NonTimeDependentMax",   "" + dependentBounds  [1]);
    props.addProperty("NonTimeDataPoints",     "" + dataPoints);
    view.getManifestedComponent().save();
View Full Code Here


  }
 
  private void persistSettings() {
    ExtendedProperties props = view.getViewProperties();
    props.addProperty("NonTimeIndependentMin", "" + independentBounds[0]);
    props.addProperty("NonTimeIndependentMax", "" + independentBounds[1]);
    props.addProperty("NonTimeDependentMin",   "" + dependentBounds  [0]);
    props.addProperty("NonTimeDependentMax",   "" + dependentBounds  [1]);
    props.addProperty("NonTimeDataPoints",     "" + dataPoints);
    view.getManifestedComponent().save();
  }
View Full Code Here

 
  private void persistSettings() {
    ExtendedProperties props = view.getViewProperties();
    props.addProperty("NonTimeIndependentMin", "" + independentBounds[0]);
    props.addProperty("NonTimeIndependentMax", "" + independentBounds[1]);
    props.addProperty("NonTimeDependentMin",   "" + dependentBounds  [0]);
    props.addProperty("NonTimeDependentMax",   "" + dependentBounds  [1]);
    props.addProperty("NonTimeDataPoints",     "" + dataPoints);
    view.getManifestedComponent().save();
  }
 
View Full Code Here

  private void persistSettings() {
    ExtendedProperties props = view.getViewProperties();
    props.addProperty("NonTimeIndependentMin", "" + independentBounds[0]);
    props.addProperty("NonTimeIndependentMax", "" + independentBounds[1]);
    props.addProperty("NonTimeDependentMin",   "" + dependentBounds  [0]);
    props.addProperty("NonTimeDependentMax",   "" + dependentBounds  [1]);
    props.addProperty("NonTimeDataPoints",     "" + dataPoints);
    view.getManifestedComponent().save();
  }
 
  private double read(String value, double current) {
View Full Code Here

    ExtendedProperties props = view.getViewProperties();
    props.addProperty("NonTimeIndependentMin", "" + independentBounds[0]);
    props.addProperty("NonTimeIndependentMax", "" + independentBounds[1]);
    props.addProperty("NonTimeDependentMin",   "" + dependentBounds  [0]);
    props.addProperty("NonTimeDependentMax",   "" + dependentBounds  [1]);
    props.addProperty("NonTimeDataPoints",     "" + dataPoints);
    view.getManifestedComponent().save();
  }
 
  private double read(String value, double current) {
    if (value == null) return current;
View Full Code Here

 
  @Test
  public void testViewStateLoading() {
    final TestAbstractComponent testComp = createAbstractComponent("test","0");
    ExtendedProperties ep = new ExtendedProperties();
    ep.addProperty("test", "abc");
    testComp.getCapability(ComponentInitializer.class).setViewRoleProperty("test", ep);
    serviceImpl.persist(Arrays.<AbstractComponent>asList(testComp));
    Map<String, ExtendedProperties> returnedEp = serviceImpl.getAllProperties(testComp.getComponentId());
    Assert.assertTrue(returnedEp.size() == 1);
    Assert.assertEquals(returnedEp.get("test").getProperty("test", String.class), "abc");
View Full Code Here

                viewManifestationInfo.setComponentId(comp.getComponentId());
                viewManifestationInfo.setStartPoint(dropPoint);
                viewManifestationInfo.setManifestedViewType(newViewInfo.getType());
                if (v.getInfo().equals(newViewInfo)) {
                    ExtendedProperties ep = v.getViewProperties().clone();
                    ep.addProperty(CanvasViewStrategy.OWNED_TYPE_PROPERTY_NAME, v.getInfo().getType());
                    viewManifestationInfo.getOwnedProperties().add(ep);
                }
                viewManifestationInfo.addInfoProperty(ControlAreaFormattingConstants.PANEL_ORDER, String.valueOf(nextPanelId));
                // use the viewComp here instead of the master component to retrieve the actual properties for the view
                View addManifestation = CanvasViewStrategy.CANVAS_OWNED.createViewFromManifestInfo(newViewInfo, comp, canvasManifestation.getManifestedComponent(), viewManifestationInfo);
View Full Code Here

                addManifestation.setNamingContext(panel);
                assert addManifestation.getNamingContext() == panel;
               
                // Add new panel info to the canvas content property list
                ExtendedProperties viewTypeProperties = containerManifestation.getViewProperties();
                viewTypeProperties.addProperty(CANVAS_CONTENT_PROPERTY, viewManifestationInfo);               
                containerManifestation.renderedPanels.put(
                                nextPanelId, panel);
                containerManifestation.canvasPanel.add(panel, new Rectangle(dropPoint, panel.getPreferredSize()));
                panels.add(panel);
                containerManifestation.changeOrder(panel, PANEL_ZORDER.FRONT);
View Full Code Here

 
  private void saveColumnVisibilityStates() {   
    ExtendedProperties viewProperties = multiColView.getViewProperties();
    Set<Object> p = viewProperties.getProperty(MultiColView.HIDDEN_COLUMNS_PROP);
    if (p == null) {
      viewProperties.addProperty(MultiColView.HIDDEN_COLUMNS_PROP, "");
      p = viewProperties.getProperty(MultiColView.HIDDEN_COLUMNS_PROP);
    }
    p.clear();
    for (String id : settings.getHiddenColumnIds())
      p.add(id);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.