DeleteAddressDialog.java revision 4300ced21cdd95ae6a526f1e29cac3146d92bd91
/*
* 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
*/
/*
* Copyright 1998-2002 by Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/**
* This dialog is used to delete one or more addresses from a network
*/
public class DeleteAddressDialog extends MultipleOperationDialog {
private DhcpClientRecord [] recs;
// Model for the list of addresses to be deleted
class AddressTableModel extends AbstractTableModel {
public int getRowCount() {
return 0;
} else {
}
}
public int getColumnCount() {
return 2;
}
if (column == 0) {
} else {
// Name returned is IP address, so there is no name
return "";
} else {
}
}
}
if (column == 0) {
return IPAddress.class;
} else {
return String.class;
}
}
if (column == 0) {
} else {
}
}
}
// Create the dialog without a reset button
super(f, false);
}
}
protected JPanel getMainPanel() {
// Place a message at the top of the display
// Now show the list of addresses to be deleted in a table in the middle
d.height = 100;
new ExtendedCellRenderer());
buttonPanel.setOkEnabled(true);
return mainPanel;
}
protected String getProgressMessage() {
}
protected int getProgressLength() {
}
protected String getErrorHeading() {
}
protected Class getErrorClass() {
return IPAddress.class;
}
protected Thread getOperationThread() {
// Create the thread we'll use
return new Thread() {
public void run() {
try {
} catch (InterruptedException e) {
// User asked us to stop
closeDialog();
return;
} catch (Throwable e) {
}
}
// Errors occurred, display them
if (errorsOccurred()) {
}
closeDialog();
}
};
}
protected String getHelpKey() {
return "delete_address";
}
protected void fireActionPerformed() {
}
}