01: /**
02: * Copyright 2002 Sun Microsystems, Inc. All
03: * rights reserved. Use of this product is subject
04: * to license terms. Federal Acquisitions:
05: * Commercial Software -- Government Users
06: * Subject to Standard License Terms and
07: * Conditions.
08: *
09: * Sun, Sun Microsystems, the Sun logo, and iPlanet
10: * are trademarks or registered trademarks of Sun Microsystems,
11: * Inc. in the United States and other countries.
12: */package com.sun.portal.wireless.taglibs.mail;
13:
14: import com.sun.portal.wireless.taglibs.base.BeanTag;
15:
16: /**
17: *
18: * @version 1.0
19: * @see com.sun.portal.wireless.taglibs.base.BeanTag
20: */
21:
22: public class VoiceViewTag extends BeanTag {
23: private String viewname = null;
24:
25: public Object newBean() throws Exception {
26: MailContext mc = MailContext.getContext(pageContext);
27: mc.setDefaultView(viewname);
28:
29: return (null);
30: }
31:
32: /**
33: * Set the view name attribute
34: *
35: * @param set the viewname attribute (can be one of "read", "unread" or "unreadAddrToMe")
36: */
37:
38: public void setViewname(String name) {
39: viewname = evalAttribute(name);
40: }
41:
42: /**
43: * Get view name
44: *
45: * @return the full name of the view
46: */
47:
48: public String getViewname() {
49: return viewname;
50: }
51: }
|