Skip to content

Package: TableViewerComparator

TableViewerComparator

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2016 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * jonas - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emfforms.spi.swt.table;
15:
16: /**
17: * Comparator for the table viewer.
18: *
19: * @author jonas
20: *
21: */
22: public interface TableViewerComparator {
23:
24:         /**
25:          * Sets the current column.
26:          *
27:          * @param i the column index
28:          */
29:         void setColumn(int i);
30:
31:         /**
32:          * Returns the alignment direction.
33:          *
34:          * @return the alignment direction
35:          * @see org.eclipse.swt.SWT#UP
36:          * @see org.eclipse.swt.SWT#DOWN
37:          * @see org.eclipse.swt.SWT#NONE
38:          */
39:         int getDirection();
40:
41: }