1 26 27 package org.objectweb.util.explorer.swing.gui.lib; 28 29 import javax.swing.Box ; 30 import javax.swing.BoxLayout ; 31 32 import org.objectweb.util.explorer.swing.gui.api.ElementBox; 33 import org.objectweb.util.explorer.swing.gui.api.ValidateReport; 34 35 36 43 44 public abstract class AbstractElementBox 45 extends Box 46 implements ElementBox 47 { 48 49 55 56 protected boolean isMandatory_; 57 58 64 67 public AbstractElementBox(){ 68 this(true); 69 } 70 71 75 public AbstractElementBox(boolean isMandatory){ 76 super(BoxLayout.X_AXIS); 77 isMandatory_ = isMandatory; 78 } 79 80 86 92 95 public abstract ValidateReport validateBox(); 96 97 100 public Box getBox() { 101 return this; 102 } 103 104 107 public void preInitialize() { 108 } 110 111 114 public void postInitialize() { 115 } 117 118 } | Popular Tags |