PageRenderTime 112ms CodeModel.GetById 70ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

/src/mpv5/ui/dialogs/ControlApplet.java

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Java | 64 lines | 9 code | 8 blank | 47 comment | 0 complexity | 3a421e069a8aada0843dd7ddc44c6e39 MD5 | raw file
 1/*
 2 *  This file is part of YaBS.
 3 *
 4 *  YaBS is free software: you can redistribute it and/or modify
 5 *  it under the terms of the GNU General Public License as published by
 6 *  the Free Software Foundation, either version 3 of the License, or
 7 *  (at your option) any later version.
 8 *
 9 *  YaBS is distributed in the hope that it will be useful,
10 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 *  GNU General Public License for more details.
13 *
14 *  You should have received a copy of the GNU General Public License
15 *  along with YaBS.  If not, see <http://www.gnu.org/licenses/>.
16 */
17package mpv5.ui.dialogs;
18
19import java.awt.Component;
20import mpv5.data.PropertyStore;
21
22/**
23 *
24 * 
25 */
26public interface ControlApplet {
27
28    /**
29     * A panel containing the save, delete etc buttons
30     * @return
31     */
32    public Component getAndRemoveActionPanel();
33
34    /**
35     * Fills the view with data
36     * @param values
37     */
38    public void setValues(PropertyStore values);
39
40    /**
41     * Returns the unique name for this applet
42     * @return
43     */
44    public String getUname();
45
46    /**
47     * Reset the view
48     */
49    public void reset();
50
51
52//    /**
53//     * The local type for properties - gets stored in a local cockie
54//     */
55//    public final static int LOCAL = 0;
56//    /**
57//     * The user defined type - gets stored in the user's profile in db
58//     */
59//    public final static int USERDEFINED = 1;
60//    /**
61//     * The global type - changes to all users
62//     */
63//    public final static int GLOBAL = 2;
64}