Examples of DisplayedValue


Examples of gov.nasa.arc.mct.table.view.DisplayedValue

    } else {
      String cellName = getObjectName(rowIndex, columnIndex);

      Object value = getValueForComponent(component);
      if (value instanceof DisplayedValue) {
        DisplayedValue dv = (DisplayedValue) value;
        TableCellSettings cellSettings = getCellSettings(getKey(component));
        dv.setLabel(cellName!=null ? cellName : "");
        dv.setAlignment(cellSettings.getAlignment());
        dv.setNumberOfDecimals(cellSettings.getNumberOfDecimals());
      }
      return value;
    }
  }
View Full Code Here

Examples of gov.nasa.arc.mct.table.view.DisplayedValue

  }
 
  private Object getValueForComponent(AbstractComponent component) {
    Object value = values.get(getKey(component));
    if (value == null) {
      DisplayedValue displayedValue = new DisplayedValue();
      if (component.getCapability(Placeholder.class) != null) {
          displayedValue.setValue(component.getCapability(Placeholder.class).getPlaceholderValue());
      } else {
        displayedValue.setValue(component.getDisplayName());
      }
      return displayedValue;
    } else {
      return value;
    }
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.