1 23 24 package com.sun.enterprise.tools.guiframework.view.event; 25 26 import com.iplanet.jato.view.View; 27 28 import com.sun.enterprise.tools.guiframework.view.descriptors.ViewDescriptor; 29 30 import java.util.EventObject ; 31 32 33 40 public class AfterCreateEvent extends EventObject { 41 42 50 public AfterCreateEvent(View src, ViewDescriptor desc) { 51 super(src); 52 setViewDescriptor(desc); 53 } 54 55 56 61 protected void setViewDescriptor(ViewDescriptor viewDesc) { 62 if (viewDesc == null) { 63 throw new IllegalArgumentException ( 64 "You must specify a ViewDescriptor when creating a "+ 65 "AfterCreateEvent object!"); 66 } 67 _viewDesc = viewDesc; 68 } 69 70 71 78 public ViewDescriptor getViewDescriptor() { 79 return _viewDesc; 80 } 81 82 83 88 public String getName() { 89 return getViewDescriptor().getName(); 90 } 91 92 93 private ViewDescriptor _viewDesc = null; 94 } 95 | Popular Tags |