1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * ident	"%Z%%M%	%I%	%E% SMI"
24  *
25  * Copyright (c) 1999 by Sun Microsystems, Inc.
26  * All rights reserved.
27  */
28 package com.sun.dhcpmgr.client;
29 
30 import java.awt.Component;
31 import java.util.Enumeration;
32 import javax.swing.*;
33 
34 import com.sun.dhcpmgr.ui.*;
35 
36 /**
37  * The view displayed when we're in relay mode.
38  */
39 public class RelayView implements View {
40     private Component display;
41 
RelayView()42     public RelayView() {
43 	display = Wizard.createTextArea(
44 	    ResourceStrings.getString("relay_view_text"), 4, 45);
45     }
46 
getName()47     public String getName() {
48 	return ResourceStrings.getString("relay_view_name");
49     }
50 
menus()51     public Enumeration menus() {
52 	return null;
53     }
54 
menuItems(int menu)55     public Enumeration menuItems(int menu) {
56 	return null;
57     }
58 
getDisplay()59     public Component getDisplay() {
60 	return display;
61     }
62 
find(String s)63     public void find(String s) {
64 	// nothing to search
65     }
66 
setActive(boolean state)67     public void setActive(boolean state) {
68 	// Nothing to do
69     }
70 
handleCreate()71     public void handleCreate() {
72 	// Nothing to do
73     }
74 
handleDelete()75     public void handleDelete() {
76 	// Nothing to do
77     }
78 
handleDuplicate()79     public void handleDuplicate() {
80 	// Nothing to do
81     }
82 
handleProperties()83     public void handleProperties() {
84 	// Nothing to do
85     }
86 
handleUpdate()87     public void handleUpdate() {
88 	// Nothing to do
89     }
90 
addSelectionListener(SelectionListener listener)91     public void addSelectionListener(SelectionListener listener) {
92 	// Nothing to do
93     }
94 
removeSelectionListener(SelectionListener listener)95     public void removeSelectionListener(SelectionListener listener) {
96 	// Nothing to do
97     }
98 
isSelectionEmpty()99     public boolean isSelectionEmpty() {
100 	return true; // Nothing to select
101     }
102 
isSelectionMultiple()103     public boolean isSelectionMultiple() {
104 	return false; // Nothing to select
105     }
106 }
107