1 26 27 package org.objectweb.util.browser.gui.lib; 28 29 import javax.swing.Box ; 30 import javax.swing.BoxLayout ; 31 32 import org.objectweb.util.browser.gui.api.ElementBox; 33 import org.objectweb.util.browser.gui.api.ValidateReport; 34 35 42 43 public abstract class AbstractElementBox 44 extends Box 45 implements ElementBox { 46 47 53 54 protected boolean isMandatory_; 55 56 62 65 public AbstractElementBox(){ 66 this(true); 67 } 68 69 73 public AbstractElementBox(boolean isMandatory){ 74 super(BoxLayout.X_AXIS); 75 isMandatory_ = isMandatory; 76 } 77 78 84 90 93 public abstract ValidateReport validateBox(); 94 95 99 public Box getBox() { 100 return this; 101 } 102 103 107 public void preInitialize() { 108 } 110 111 115 public void postInitialize() { 116 } 118 119 } | Popular Tags |