TextList.java revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* ident "%Z%%M% %I% %E% SMI"
*
* Copyright (c) 2000 by Sun Microsystems, Inc.
* All rights reserved.
*/
/*
* Copyright (C) 1996 Active Software, Inc.
* All rights reserved.
*
* @(#) TextList.java 1.15 - last change made 11/26/96
*/
/**
* An alternate to the regular AWT List widget.
*
* @version 1.15, 11/26/96
*/
public class TextList extends ScrollPanel {
private StringVector items;
public TextList() {
items = new StringVector();
}
//
// Methods that are forwarded to the view.
//
}
public StringVector items() {
return items;
}
public void updateView() {
view.updateView();
updateWindow();
}
public void setMinimumRows(int num) {
}
public int getMinimumRows() {
return view.getMinimumRows();
}
public void setMinimumColumns(int num) {
}
public int getMinimumColumns() {
return view.getMinimumColumns();
}
public int getRows() {
}
}
}
}
public void deselectAll() {
view.deselectAll();
}
public void setMultipleSelections(boolean v) {
}
public boolean allowsMultipleSelections() {
return view.allowsMultipleSelections();
}
public int getSelectedIndex() {
return view.getSelectedIndex();
}
public int[] getSelectedIndexes() {
return view.getSelectedIndexes();
}
public String getSelectedItem() {
}
public String[] getSelectedItems() {
return str;
}
updateView();
}
if (index == -1) {
} else {
}
} else {
}
updateView();
}
updateView();
}
}
public int countItems() {
}
public void clear() {
updateView();
}
updateView();
}
}
}
}
updateView();
}
} else return null;
}
public void makeVisible(int index) {
updateView();
super.makeVisible(index);
}
public int lineHeight() {
return view.lineHeight();
}
}
}