1 18 19 package org.objectweb.jac.aspects.gui; 20 21 import org.objectweb.jac.core.rtti.MemberItem; 22 23 24 27 public abstract class MemberItemView { 28 MemberItem member; 29 String name; 30 31 public MemberItemView(MemberItem member, String name) { 32 this.member = member; 33 this.name = name; 34 } 35 36 public String getName() { 37 return name; 38 } 39 40 41 boolean embedded; 42 public void setEmbedded(boolean embedded) { 43 this.embedded = embedded; 44 } 45 public boolean isEmbedded() { 46 return embedded; 47 } 48 49 Boolean embeddedEditor = null; 50 public void setEmbeddedEditor(boolean embeddedEditor) { 51 this.embeddedEditor = embeddedEditor ? Boolean.TRUE : Boolean.FALSE; 52 } 53 public boolean isEmbeddedEditor(boolean defaultValue) { 54 return embeddedEditor!=null ? embeddedEditor.booleanValue() : defaultValue; 55 } 56 57 String viewType; 58 public void setViewType(String viewType) { 59 this.viewType = viewType; 60 } 61 public String getViewType() { 62 return viewType; 63 } 64 } 65 | Popular Tags |