/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// ComponentPeer overrides
return minimumSize(4);
}
public boolean isFocusable() {
return true;
}
// ListPeer implementation
public int[] getSelectedIndexes() {
int len = l.countItems();
int nsel = 0;
for (int i = 0 ; i < len ; i++) {
if (isSelected(i)) {
}
}
return selected;
}
/* New method name for 1.1 */
}
/* New method name for 1.1 */
public void removeAll() {
clear();
}
/* New method name for 1.1 */
public void setMultipleMode (boolean b) {
}
/* New method name for 1.1 */
return preferredSize(rows);
}
/* New method name for 1.1 */
return minimumSize(rows);
}
}
public void clear() {
}
public native void setMultipleSelections(boolean v);
public native int getMaxWidth();
}
Dimension d = minimumSize(v);
return d;
}
}
// Toolkit & peer internals
super(target);
}
void initialize() {
// Fixed 6336384: setFont should be done before addItems
if (f != null) {
setFont(f);
}
// add any items that were already inserted in the target.
if (nitems > 0) {
int maxWidth = 0;
int width = 0;
for (int i = 0; i < nitems; i++) {
}
}
}
// set whether this list should allow multiple selections.
// select the item if necessary.
}
// make the visible position visible.
// fix for 4676536 by kdm@sparc.spb.su
// we should call makeVisible() after we call select()
// because of a bug in Windows which is manifested by
// incorrect scrolling of the selected item if the list
// height is less than an item height of the list.
}
if (index >= 0) {
}
super.initialize();
}
public boolean shouldClearRectBeforePaint() {
return false;
}
private native void updateMaxItemWidth();
// update the fontmetrics when the font changes
{
super._setFont( f );
}
// native callbacks
public void run() {
}
});
}
public void run() {
}
});
}
}