~ubuntu-branches/ubuntu/natty/libswingx-java/natty

« back to all changes in this revision

Viewing changes to src/java/org/jdesktop/swingx/JXTaskPaneContainer.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2010-07-26 12:11:27 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100726121127-k0d3b21nhja0dn93
Tags: 1:1.6.1-1
* New upstream release.
* Switch to 3.0 (quilt) format.
* Bump Standards-Version to 3.9.1: no changes needed.
* Drop Depends on JRE: not requested anymore by new Java Policy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: JXTaskPaneContainer.java 3447 2009-08-19 07:33:23Z kleopatra $
 
2
 * $Id: JXTaskPaneContainer.java 3569 2009-12-21 16:25:42Z kleopatra $
3
3
 *
4
4
 * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle,
5
5
 * Santa Clara, California 95054, U.S.A. All rights reserved.
23
23
import java.awt.event.ContainerAdapter;
24
24
import java.awt.event.ContainerEvent;
25
25
 
26
 
import javax.swing.JViewport;
27
 
import javax.swing.Scrollable;
28
 
 
29
26
import org.jdesktop.swingx.plaf.LookAndFeelAddons;
30
27
import org.jdesktop.swingx.plaf.TaskPaneContainerAddon;
31
28
import org.jdesktop.swingx.plaf.TaskPaneContainerUI;
119
116
                repaint();
120
117
            }
121
118
        });
 
119
        setScrollableHeightHint(ScrollableSizeHint.VERTICAL_STRETCH);
122
120
    }
123
121
 
124
122
    /**
185
183
        super.remove(group);
186
184
    }
187
185
 
188
 
    /**
189
 
     * @see Scrollable#getScrollableTracksViewportHeight()
190
 
     */
191
 
    @Override
192
 
    public boolean getScrollableTracksViewportHeight() {
193
 
        if (getParent() instanceof JViewport) {
194
 
            return (((JViewport) getParent()).getHeight() > getPreferredSize().height);
195
 
        } else {
196
 
            return false;
197
 
        }
198
 
    }
199
 
  
200
 
    /**
201
 
     * @see Scrollable#getScrollableTracksViewportWidth()
202
 
     */
203
 
    @Override
204
 
    public boolean getScrollableTracksViewportWidth() {
205
 
        return true;
206
 
    }
 
186
//    /**
 
187
//     * @see Scrollable#getScrollableTracksViewportHeight()
 
188
//     */
 
189
//    @Override
 
190
//    public boolean getScrollableTracksViewportHeight() {
 
191
//        if (getParent() instanceof JViewport) {
 
192
//            return (((JViewport) getParent()).getHeight() > getPreferredSize().height);
 
193
//        } else {
 
194
//            return false;
 
195
//        }
 
196
//    }
 
197
//  
 
198
//    /**
 
199
//     * @see Scrollable#getScrollableTracksViewportWidth()
 
200
//     */
 
201
//    @Override
 
202
//    public boolean getScrollableTracksViewportWidth() {
 
203
//        return true;
 
204
//    }
207
205
}