~ubuntu-branches/debian/sid/java-gnome/sid

« back to all changes in this revision

Viewing changes to src/bindings/org/gnome/unique/MessageData.java

  • Committer: Package Import Robot
  • Author(s): Guillaume Mazoyer
  • Date: 2014-05-19 17:39:50 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20140519173950-fnvrdx3b8fa94hj0
Tags: 4.1.3-1
* New upstream release.
* debian/control
  - Remove libunique dependency.
  - Remove DM-Upload-Allowed field.
  - Add dbus-x11 dependency to take doc screenshots.
  - Update Standards-Version to 3.9.4.
* debian/README.Maintainer
  - Add instructions for maintainers.
* debian/libjava-gnome-java.docs
  - Update documentation filenames.
* debian/libjava-gnome-java-doc.install
  - Fix HACKING file installation.
* debian/patches/02_unique_dependency.diff
  - Remove no longer needed patch (fixed upstream).
* debian/patches/02_build_python.diff
  - Add patch to fix build process (python2 env variable not found).
* debian/patches/03_build_doc_snapshots.diff (Closes: #748565)
  - Add patch to fix build process of the documentation (accessibilty bug).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * java-gnome, a UI library for writing GTK and GNOME programs from Java!
3
 
 *
4
 
 * Copyright © 2009-2010 Operational Dynamics Consulting, Pty Ltd
5
 
 *
6
 
 * The code in this file, and the program it is a part of, is made available
7
 
 * to you by its authors as open source software: you can redistribute it
8
 
 * and/or modify it under the terms of the GNU General Public License version
9
 
 * 2 ("GPL") as published by the Free Software Foundation.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful, but WITHOUT
12
 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
 
 * FITNESS FOR A PARTICULAR PURPOSE. See the GPL for more details.
14
 
 *
15
 
 * You should have received a copy of the GPL along with this program. If not,
16
 
 * see http://www.gnu.org/licenses/. The authors of this program may be
17
 
 * contacted through http://java-gnome.sourceforge.net/.
18
 
 *
19
 
 * Linking this library statically or dynamically with other modules is making
20
 
 * a combined work based on this library. Thus, the terms and conditions of
21
 
 * the GPL cover the whole combination. As a special exception (the
22
 
 * "Classpath Exception"), the copyright holders of this library give you
23
 
 * permission to link this library with independent modules to produce an
24
 
 * executable, regardless of the license terms of these independent modules,
25
 
 * and to copy and distribute the resulting executable under terms of your
26
 
 * choice, provided that you also meet, for each linked independent module,
27
 
 * the terms and conditions of the license of that module. An independent
28
 
 * module is a module which is not derived from or based on this library. If
29
 
 * you modify this library, you may extend the Classpath Exception to your
30
 
 * version of the library, but you are not obligated to do so. If you do not
31
 
 * wish to do so, delete this exception statement from your version.
32
 
 */
33
 
package org.gnome.unique;
34
 
 
35
 
import org.gnome.glib.Boxed;
36
 
 
37
 
/**
38
 
 * Wrapper around a payload you can send from one Application to another.
39
 
 * 
40
 
 * @author Andrew Cowie
41
 
 * @since 4.0.12
42
 
 * @deprecated
43
 
 */
44
 
public final class MessageData extends Boxed
45
 
{
46
 
    protected MessageData(long pointer) {
47
 
        super(pointer);
48
 
    }
49
 
 
50
 
    /**
51
 
     * Construct a carrier object.
52
 
     * 
53
 
     * @since 4.0.12
54
 
     */
55
 
    public MessageData() {
56
 
        super(UniqueMessageData.createMessageData());
57
 
    }
58
 
 
59
 
    protected final void release() {
60
 
        UniqueMessageData.free(this);
61
 
    }
62
 
 
63
 
    /**
64
 
     * Specify a String to be this MessageData's payload.
65
 
     * 
66
 
     * @since 4.0.12
67
 
     */
68
 
    public void setText(String text) {
69
 
        UniqueMessageData.setText(this, text, -1);
70
 
    }
71
 
 
72
 
    /**
73
 
     * If an application receiving a message with text as its payload, extract
74
 
     * that String.
75
 
     * 
76
 
     * @since 4.0.12
77
 
     */
78
 
    public String getText() {
79
 
        return UniqueMessageData.getText(this);
80
 
    }
81
 
 
82
 
}