Statistics
| Revision:

gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.swing / org.gvsig.tools.swing.api / src / main / java / org / gvsig / tools / swing / api / TableColumnAdjuster.java @ 2188

History | View | Annotate | Download (2.02 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2020 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.tools.swing.api;
25

    
26

    
27
/**
28
 *
29
 * @author jjdelcerro
30
 */
31
public interface TableColumnAdjuster {
32

    
33
  /*
34
   *  Adjust the width of the specified column in the table
35
   */
36
  void adjustColumn(final int column);
37

    
38
  /*
39
   *  Adjust the widths of all the columns in the table
40
   */
41
  void adjustColumns();
42

    
43
  /*
44
   *  Restore the widths of the columns in the table to its previous width
45
   */
46
  void restoreColumns();
47

    
48
  /*
49
   *        Indicates whether to include the model data in the width calculation
50
   */
51
  TableColumnAdjuster setColumnDataIncluded(boolean isColumnDataIncluded);
52

    
53
  /*
54
   *        Indicates whether to include the header in the width calculation
55
   */
56
  TableColumnAdjuster setColumnHeaderIncluded(boolean isColumnHeaderIncluded);
57

    
58
  /*
59
   *  Indicate whether changes to the model should cause the width to be
60
   *  dynamically recalculated.
61
   */
62
  TableColumnAdjuster setDynamicAdjustment(boolean isDynamicAdjustment);
63

    
64
  /*
65
   *        Indicates whether columns can only be increased in size
66
   */
67
  TableColumnAdjuster setOnlyAdjustLarger(boolean isOnlyAdjustLarger);
68

    
69
  void uninstall();
70
  
71
}