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

« back to all changes in this revision

Viewing changes to src/bindings/org/gnome/gtk/RadioButton.java

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2010-04-11 21:28:43 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100411212843-g18x13q4fn02ox4a
Tags: 4.0.15-1
* Team upload
* New upstream release
* Change maintainers into Maintainers.
* Remove Thomas from Uploaders.
* Switch to source format 3.0.
* Update Standards-Version: 3.8.4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * RadioButton.java
3
 
 *
4
 
 * Copyright (c) 2007-2008 Operational Dynamics Consulting Pty Ltd
5
 
 * Copyright (c) 2008      Vreixo Formoso
6
 
 *
7
 
 * The code in this file, and the library it is a part of, are made available
8
 
 * to you by the authors under the terms of the "GNU General Public Licence,
9
 
 * version 2" plus the "Classpath Exception" (you may link to this code as a
10
 
 * library into other programs provided you don't make a derivation of it).
11
 
 * See the LICENCE file for the terms governing usage and redistribution.
 
2
 * java-gnome, a UI library for writing GTK and GNOME programs from Java!
 
3
 *
 
4
 * Copyright © 2007-2010 Operational Dynamics Consulting, Pty Ltd
 
5
 * Copyright © 2008      Vreixo Formoso
 
6
 *
 
7
 * The code in this file, and the program it is a part of, is made available
 
8
 * to you by its authors as open source software: you can redistribute it
 
9
 * and/or modify it under the terms of the GNU General Public License version
 
10
 * 2 ("GPL") as published by the Free Software Foundation.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful, but WITHOUT
 
13
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
14
 * FITNESS FOR A PARTICULAR PURPOSE. See the GPL for more details.
 
15
 *
 
16
 * You should have received a copy of the GPL along with this program. If not,
 
17
 * see http://www.gnu.org/licenses/. The authors of this program may be
 
18
 * contacted through http://java-gnome.sourceforge.net/.
 
19
 *
 
20
 * Linking this library statically or dynamically with other modules is making
 
21
 * a combined work based on this library. Thus, the terms and conditions of
 
22
 * the GPL cover the whole combination. As a special exception (the
 
23
 * "Claspath Exception"), the copyright holders of this library give you
 
24
 * permission to link this library with independent modules to produce an
 
25
 * executable, regardless of the license terms of these independent modules,
 
26
 * and to copy and distribute the resulting executable under terms of your
 
27
 * choice, provided that you also meet, for each linked independent module,
 
28
 * the terms and conditions of the license of that module. An independent
 
29
 * module is a module which is not derived from or based on this library. If
 
30
 * you modify this library, you may extend the Classpath Exception to your
 
31
 * version of the library, but you are not obligated to do so. If you do not
 
32
 * wish to do so, delete this exception statement from your version.
12
33
 */
13
34
package org.gnome.gtk;
14
35
 
95
116
    /*
96
117
     * Reference keeps our group mechanism in scope, and powers getGroup()
97
118
     */
98
 
    private RadioButtonGroup enclosingGroup;
 
119
    private RadioGroup enclosingGroup;
99
120
 
100
121
    protected RadioButton(long pointer) {
101
122
        super(pointer);
112
133
     *            to be the mnemonic for the Widget.
113
134
     * @since 4.0.7
114
135
     */
115
 
    public RadioButton(RadioButtonGroup group, String label) {
116
 
        super(GtkRadioButton.createRadioButtonWithLabelFromWidget(group.getMember(), label));
 
136
    public RadioButton(RadioGroup group, String label) {
 
137
        super(
 
138
                GtkRadioButton.createRadioButtonWithLabelFromWidget((RadioButton) group.getMember(),
 
139
                        label));
117
140
        group.setMember(this);
118
141
        enclosingGroup = group;
119
142
    }
120
143
 
121
144
    /**
122
 
     * Get the RadioButtonGroup that encloses this RadioButton and the others
123
 
     * that belonging to the same mutual exclusion group.
 
145
     * Get the RadioGroup that encloses this RadioButton and the others that
 
146
     * belonging to the same mutual exclusion group.
124
147
     * 
125
148
     * @since 4.0.7
126
149
     */
127
 
    public RadioButtonGroup getGroup() {
 
150
    public RadioGroup getGroup() {
128
151
        return enclosingGroup;
129
152
    }
130
153
}