1 19 20 package org.netbeans.modules.welcome.content; 21 22 import java.awt.Component ; 23 import java.awt.GridBagConstraints ; 24 25 29 abstract class ComponentDescriptor { 30 31 private String id; 32 private GridBagConstraints constraints; 33 private String className; 34 35 private String method; 36 37 38 public ComponentDescriptor( String id ) { 39 this.id = id; 40 } 41 42 public void setConstraints( GridBagConstraints constraints ) { 43 this.constraints = constraints; 44 } 45 46 public GridBagConstraints getConstraints() { 47 return constraints; 48 } 49 50 void setClassName( String className ) { 51 this.className = className; 52 } 53 54 String getClassName() { 55 return className; 56 } 57 58 void setMethod (String method) { 59 this.method = method; 60 } 61 62 String getMethod() { 63 return method; 64 } 65 66 public abstract Component construct(); 67 68 public String getId() { 69 return id; 70 } 71 } 72 | Popular Tags |