1 26 package org.objectweb.util.explorer.core.panel.lib; 27 28 import org.objectweb.util.explorer.core.code.api.CodeDescription; 29 import org.objectweb.util.explorer.core.common.api.Description; 30 import org.objectweb.util.explorer.core.panel.api.PanelDescription; 31 32 40 public abstract class AbstractPanelDescription 41 implements PanelDescription 42 { 43 44 50 51 protected CodeDescription codeDescription_; 52 53 54 protected boolean inheritTypePanel_ = false; 55 56 62 68 74 77 public String getDescriptionType() { 78 return Description.PANEL_DESCRIPTION; 79 } 80 81 84 public boolean isEmpty() { 85 return codeDescription_ == null || codeDescription_.isEmpty(); 86 } 87 88 94 97 public abstract String getPanelType(); 98 99 102 public CodeDescription getCodeDescription() { 103 return codeDescription_; 104 } 105 106 109 public void setCodeDescription(CodeDescription codeDesc) { 110 codeDescription_ = codeDesc; 111 } 112 113 116 public void setInheritTypePanel(boolean inheritTypePanel) { 117 inheritTypePanel_ = inheritTypePanel; 118 } 119 120 123 public boolean inheritTypePanel() { 124 return inheritTypePanel_; 125 } 126 127 } 128 | Popular Tags |