1 /**
2 *
3 * Copyright (c) 2014, Openflexo
4 *
5 * This file is part of Gina-swing, a component of the software infrastructure
6 * developed at Openflexo.
7 *
8 *
9 * Openflexo is dual-licensed under the European Union Public License (EUPL, either
10 * version 1.1 of the License, or any later version ), which is available at
11 * https://joinup.ec.europa.eu/software/page/eupl/licence-eupl
12 * and the GNU General Public License (GPL, either version 3 of the License, or any
13 * later version), which is available at http://www.gnu.org/licenses/gpl.html .
14 *
15 * You can redistribute it and/or modify under the terms of either of these licenses
16 *
17 * If you choose to redistribute it and/or modify under the terms of the GNU GPL, you
18 * must include the following additional permission.
19 *
20 * Additional permission under GNU GPL version 3 section 7
21 *
22 * If you modify this Program, or any covered work, by linking or
23 * combining it with software containing parts covered by the terms
24 * of EPL 1.0, the licensors of this Program grant you additional permission
25 * to convey the resulting work. *
26 *
27 * This software is distributed in the hope that it will be useful, but WITHOUT ANY
28 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
29 * PARTICULAR PURPOSE.
30 *
31 * See http://www.openflexo.org/license.html for details.
32 *
33 *
34 * Please contact Openflexo (openflexo-contacts@openflexo.org)
35 * or visit www.openflexo.org if you need additional information.
36 *
37 */
38
39 package org.openflexo.gina.swing.utils;
40
41 import org.openflexo.connie.DataBinding;
42 import org.openflexo.swing.CustomPopup.ResizablePanel;
43
44 /**
45 * This is the common superclass for all panels representing a binding, in the context of BindingSelector
46 *
47 * @author sylvain
48 *
49 */
50 @SuppressWarnings("serial")
51 public abstract class AbstractBindingSelectorPanel extends ResizablePanel {
52
53 protected abstract void synchronizePanelWithTextFieldValue(String textValue);
54
55 protected abstract void init();
56
57 protected abstract void update();
58
59 // protected abstract void fireBindingDefinitionChanged();
60
61 protected abstract void fireBindableChanged();
62
63 protected abstract void processTabPressed();
64
65 protected abstract void processDownPressed();
66
67 protected abstract void processUpPressed();
68
69 // protected abstract void processLeftPressed();
70
71 // protected abstract void processRightPressed();
72
73 protected abstract void processEnterPressed();
74
75 protected abstract void processBackspace();
76
77 protected abstract void processDelete();
78
79 protected abstract void willApply();
80
81 protected abstract void delete();
82
83 protected abstract void updateStatus(DataBinding<?> binding);
84
85 }