All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anwiba.commons.swing.table.IObjectTableBuilder Maven / Gradle / Ivy

/*
 * #%L
 *
 * %%
 * Copyright (C) 2007 - 2017 Andreas W. Bartels ([email protected])
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 2.1 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 *
 * You should have received a copy of the GNU General Lesser Public
 * License along with this program.  If not, see
 * .
 * #L%
 */
package net.anwiba.commons.swing.table;

import java.util.List;

import net.anwiba.commons.lang.functional.IFunction;
import net.anwiba.commons.swing.table.action.ITableActionFactory;
import net.anwiba.commons.swing.table.filter.IColumToStringConverter;

public interface IObjectTableBuilder {

  IObjectTableBuilder setKeyListenerFactory(IKeyListenerFactory keyListenerFactory);

  IObjectTableBuilder setSelectionMode(int selectionMode);

  IObjectTableBuilder addColumnConfiguration(IObjectListColumnConfiguration columnConfiguration);

  IObjectTableBuilder addActionFactory(ITableActionFactory factory);

  IObjectTableBuilder setPreferredVisibleRowCount(int preferredVisibleRowCount);

  IObjectTableBuilder setMouseListenerFactory(IMouseListenerFactory mouseListenerFactory);

  IObjectTableBuilder addAddObjectAction(IColumnObjectFactory factory);

  IObjectTableBuilder addEditObjectAction(IColumnObjectFactory factory);

  IObjectTableBuilder addRemoveObjectsAction();

  IObjectTableBuilder addMoveObjectUpAction();

  IObjectTableBuilder addMoveObjectDownAction();

  IObjectTableBuilder setFilterToStringConverter(IColumToStringConverter columnToStringConverter);

  IObjectTableBuilder setValues(List values);

  IObjectTableBuilder addValue(T value);

  ObjectListTable build();

  IObjectTableBuilder setSingleSelectionMode();

  IObjectTableBuilder setAutoResizeModeOff();

  IObjectTableBuilder addSortableStringConfiguration(
      String title,
      IFunction provider,
      int size);

  IObjectTableBuilder addSortableDoubleConfiguration(
      String title,
      IFunction provider,
      int size);

  IObjectTableBuilder addSortableBooleanConfiguration(
      String title,
      IFunction provider,
      int size);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy