-
Notifications
You must be signed in to change notification settings - Fork 96
/
PTWidget.java
65 lines (56 loc) · 1.63 KB
/
PTWidget.java
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
/*******************************************************************************
* Copyright (c) 2012-2022 Laurent CARON
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Laurent CARON (laurent.caron at gmail dot com) - initial API and implementation
*******************************************************************************/
package org.eclipse.nebula.widgets.opal.propertytable;
import org.eclipse.swt.widgets.Composite;
/**
* Classes which implement this interface are widgets that may compose a
* PropertyTable (Table for Flat List, TableTree for Category)
*
*/
public interface PTWidget {
/**
* Build the widget (Table or TreeTable)
*
* @return the built widget
*/
PTWidget build();
/**
* Dispose the previous widget and build a new one (when ones switch from
* Category View to Flat List view)
*
* @param table the PropertyTable to dispose
* @return the built widget
*/
PTWidget disposeAndBuild(PropertyTable table);
/**
* Inject the parent property table in the widget
*
* @param table table to inject
*/
void setParentPropertyTable(final PropertyTable table);
/**
* Clear all data and fill the widget
*/
void refillData();
/**
* @return the underlying widget (Table or TableTree)
*/
Composite getWidget();
/**
* Update the description panel (if it exists)
*
* @param selection selected property
*/
void updateDescriptionPanel(final Object selection);
}