Package gov.nasa.arc.mct.table.model

Examples of gov.nasa.arc.mct.table.model.AbbreviatingTableLabelingAlgorithm


    };
   
    assert identifiers.length == 4;
    assert data.length == 4;

    AbbreviatingTableLabelingAlgorithm algorithm = new AbbreviatingTableLabelingAlgorithm();
    algorithm.setOrientation(TableOrientation.COLUMN_MAJOR);
    algorithm.setContextLabels("Ku_VBSP");

    LabeledTableModel model = new LabeledTableModel(algorithm, TableOrientation.COLUMN_MAJOR) {

      @Override
      public int getObjectCount() {
View Full Code Here


  };

  @BeforeMethod
  public void init() {
    MockitoAnnotations.initMocks(this);
    algorithm = new AbbreviatingTableLabelingAlgorithm();
    model = new MockTableModel(identifiers, algorithm);
    table = new LabeledTable(model);
  }
View Full Code Here

   * @param vi the view information for this view
   */
  public TableViewManifestation(AbstractComponent component, ViewInfo vi) {
    super(component,vi);

    labelingAlgorithm = new AbbreviatingTableLabelingAlgorithm();
    setLabelingContext(labelingAlgorithm, getNamingContext());
    TableStructure structure = TableViewPolicy
        .getTableStructure(getManifestedComponent());
    model = new ComponentTableModel(structure, labelingAlgorithm, this);
    model.updateLabels();
View Full Code Here

 
  @Test
  public void testNamingContext() throws Exception {
    Field f = TableViewManifestation.class.getDeclaredField("labelingAlgorithm");
    f.setAccessible(true);
    f.set(manifestation, new AbbreviatingTableLabelingAlgorithm() {
      @Override
      public void setContextLabels(String... s) { naming = s[0]; }
    });
   
    NamingContext nullContext = Mockito.mock(NamingContext.class);
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.table.model.AbbreviatingTableLabelingAlgorithm

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.