Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 262751d9d67b151eae192acb5f85a8eab0db225e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/*******************************************************************************
 * Copyright (c) 2011 Wind River Systems, Inc. and others. All rights reserved.
 * This program and the accompanying materials are made available under the terms
 * of the Eclipse Public License v1.0 which accompanies this distribution, and is
 * available at http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Wind River Systems - initial API and implementation
 *******************************************************************************/
package org.eclipse.tcf.te.ui.trees;

/**
 * The persistable column action used by TreeViewerState to save and restore the tree viewer's column
 * action.
 */
class ColumnState {
	// The column's id.
	private String columnId;
	// If the column is visible.
	private boolean visible;
	// The column's width.
	private int width;
	// The column's order in the tree header.
	private int order;

	/**
	 * Get the column's id.
	 * 
	 * @return The column's id.
	 */
	public String getColumnId() {
		return columnId;
	}

	/**
	 * Set the column's id.
	 * 
	 * @param columnId The new column Id.
	 */
	public void setColumnId(String columnId) {
		this.columnId = columnId;
	}

	/**
	 * Return if the column is visible.
	 * 
	 * @return true if the column is visible
	 */
	public boolean isVisible() {
		return visible;
	}

	/**
	 * Set the column's visible action.
	 * 
	 * @param visible The new visible action.
	 */
	public void setVisible(boolean visible) {
		this.visible = visible;
	}

	/**
	 * Get the column's width.
	 * 
	 * @return The column's width.
	 */
	public int getWidth() {
		return width;
	}

	/**
	 * Set the column's width.
	 * 
	 * @param width The column's width.
	 */
	public void setWidth(int width) {
		this.width = width;
	}

	/**
	 * Get the column's order.
	 * 
	 * @return the column's order.
	 */
	public int getOrder() {
		return order;
	}

	/**
	 * Set the column's order.
	 * 
	 * @param order The column's order.
	 */
	public void setOrder(int order) {
		this.order = order;
	}
}

Back to the top