~ubuntu-branches/ubuntu/oneiric/libspin-java/oneiric

« back to all changes in this revision

Viewing changes to src/main/java/spin/demo/prompt/PromptBean.java

  • Committer: Bazaar Package Importer
  • Author(s): gregor herrmann
  • Date: 2007-12-16 15:15:47 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071216151547-0xwxaqstui65ozpd
Tags: 1.5-1
* New upstream release:
  - doesn't use ant anymore but maven; using a workaround with
    maven-ant-helper and our own build.xml
  - doesn't need the patch against build.xml anymore; therefore removing
    ths patch and the dpatch framework
  - depends on libcglib2.1-java; adding the package to Build-Depends-Indep
    and moving libspin-java to contrib because of the dependency
  - the jar now has the version number in the filename; adding a symlink
* Fix debian/watch.
* Clean up debian/rules.
* Move upstream URL from the description to the new Homepage field.
* Change XS-Vcs-* fields to Vcs-*.
* Set Standards-Version to 3.7.3 (no further changes required).
* Add get-orig-source target in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Spin - transparent threading solution for non-freezing Swing applications.
 
3
 * Copyright (C) 2002 Sven Meier
 
4
 *
 
5
 * This library is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU Lesser General Public
 
7
 * License as published by the Free Software Foundation; either
 
8
 * version 2.1 of the License, or (at your option) any later version.
 
9
 *
 
10
 * This library is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
 * Lesser General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Lesser General Public
 
16
 * License along with this library; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
 */
 
19
package spin.demo.prompt;
 
20
 
 
21
/**
 
22
 * A common interface for a prompt.
 
23
 */
 
24
public interface PromptBean {
 
25
 
 
26
        /**
 
27
         * Size.
 
28
         * 
 
29
         * @return the size
 
30
         */
 
31
        public int size();
 
32
 
 
33
        /**
 
34
         * Get a value.
 
35
         * 
 
36
         * @param index
 
37
         *            index of value
 
38
         */
 
39
        public String get(int index);
 
40
 
 
41
        /**
 
42
         * Process.
 
43
         * 
 
44
         * @param index
 
45
         *            index of value to process
 
46
         */
 
47
        public void process(int index);
 
48
 
 
49
        /**
 
50
         * Process.
 
51
         * 
 
52
         * @param prompt
 
53
         *            the prompt to use for processing
 
54
         */
 
55
        public void process(Prompt prompt);
 
56
 
 
57
}