Examples of ColumnConfiguration


Examples of com.github.dandelion.datatables.core.configuration.ColumnConfiguration

  public HtmlColumn(Boolean isHeader, String content, Map<String, String> dynamicAttributes) {
    setHeaderColumn(isHeader);
    enabledDisplayTypes.add(ReservedFormat.ALL);
    if(isHeader){
      this.columnConfiguration = new ColumnConfiguration();
    }
    if (content != null) {
      setContent(new StringBuilder(content));
    }
    this.dynamicAttributes = dynamicAttributes;
View Full Code Here

Examples of com.github.dandelion.datatables.core.configuration.ColumnConfiguration

  }

  public HtmlColumn(Boolean isHeader, String content, Map<String, String> dynamicAttributes, String displayTypes) {
    setHeaderColumn(isHeader);
    if(isHeader){
      this.columnConfiguration = new ColumnConfiguration();
    }
    if (content != null) {
      setContent(new StringBuilder(content));
    }
    this.dynamicAttributes = dynamicAttributes;
View Full Code Here

Examples of org.fusesource.ide.commons.ui.config.ColumnConfiguration

   *
   * @param item
   *            The item to move up
   */
  private void moveUp(ColumnConfiguration item) {
    ColumnConfiguration movedColumn = null;
    List<ColumnConfiguration> newColumns = new ArrayList<ColumnConfiguration>();
    for (ColumnConfiguration column : getColumns()) {
      if (!column.equals(item) || movedColumn == null) {
        newColumns.add(column);
        movedColumn = column;
View Full Code Here

Examples of org.fusesource.ide.commons.ui.config.ColumnConfiguration

   *
   * @param item
   *            The item to move down
   */
  private void moveDown(ColumnConfiguration item) {
    ColumnConfiguration movedColumn = null;
    List<ColumnConfiguration> newColumns = new ArrayList<ColumnConfiguration>();
    for (ColumnConfiguration column : getColumns()) {

      if (column.equals(item)) {
        movedColumn = item;
View Full Code Here

Examples of org.fusesource.ide.commons.ui.config.ColumnConfiguration

    .setLayoutData(new GridData(GridData.FILL_BOTH));
    columnsViewer.setLabelProvider(new LabelProvider() {
      @Override
      public String getText(Object element) {
        if (element instanceof ColumnConfiguration) {
          ColumnConfiguration config = (ColumnConfiguration) element;
          return config.getName();
        }
        return super.getText(element);
      }});
    columnsViewer.setContentProvider(new ArrayContentProvider());
  }
View Full Code Here

Examples of org.fusesource.ide.commons.ui.config.ColumnConfiguration

    System.out.println("Found columns: " + columns);

    assertTrue("Should have more than one column!", columns.size() > 0);

    ColumnConfiguration column = columns.get(0);

    System.out.println("Column " + column + " visible: " + column.isVisible() + " description: " + column.getDescription());

    List<String> sorted = tableConfig.sortDefaultColumnNames(defaultNames);
    List<String> expected = Arrays.asList("foo", "bar", "something", "another", "whatnot");

    assertEquals("Sorted list", expected, sorted);
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.