1 19 20 package org.netbeans.modules.xml.multiview; 21 22 import org.netbeans.core.spi.multiview.*; 23 24 30 public abstract class DesignMultiViewDesc implements MultiViewDescription, java.io.Serializable { 31 32 static final long serialVersionUID = -3640713597058983397L; 33 34 private String name; 35 private XmlMultiViewDataObject dObj; 36 37 public DesignMultiViewDesc() { 38 } 39 40 public DesignMultiViewDesc(XmlMultiViewDataObject dObj, String name) { 41 this.name=name; 42 this.dObj=dObj; 43 } 44 45 public abstract MultiViewElement createElement(); 46 47 protected XmlMultiViewDataObject getDataObject() { 48 return dObj; 49 } 50 51 public String getDisplayName() { 52 return name; 53 } 54 55 public org.openide.util.HelpCtx getHelpCtx() { 56 return null; 57 } 58 59 public abstract java.awt.Image getIcon(); 60 61 public int getPersistenceType() { 62 return org.openide.windows.TopComponent.PERSISTENCE_NEVER; 63 } 64 65 public abstract String preferredID(); 66 67 } 68 | Popular Tags |