1 21 22 package org.opensubsystems.core.application; 23 24 import java.util.logging.Logger ; 25 26 import org.opensubsystems.core.error.OSSException; 27 import org.opensubsystems.core.util.Log; 28 29 38 public abstract class ThickClientModuleImpl implements ThickClientModule 39 { 40 42 45 protected ThickClient m_client; 46 47 50 protected boolean m_bInitialized; 51 52 54 57 private static Logger s_logger = Log.getInstance(ThickClientModuleImpl.class); 58 59 61 64 public ThickClientModuleImpl( 65 ) 66 { 67 m_bInitialized = false; 68 } 69 70 72 75 public ThickClient getClient( 76 ) 77 { 78 return m_client; 79 } 80 81 84 public void init( 85 ThickClient client 86 ) throws OSSException 87 { 88 s_logger.finer("Initializing module " + getName()); 89 m_client = client; 90 m_bInitialized = true; 91 } 92 93 96 public boolean activate( 97 boolean bReactivate 98 ) 99 { 100 return true; 102 } 103 104 107 public void pasivate() 108 { 109 } 111 112 115 public void refresh() 116 { 117 } 119 120 123 public void destroy() 124 { 125 s_logger.finer("Destroying module " + getName()); 127 m_bInitialized = false; 128 } 129 130 133 public Object displayMessage( 134 String strTitle, 135 String strMessage, 136 Object additionalInfo 137 ) 138 { 139 return m_client.getGui().displayMessage(strTitle, strMessage, additionalInfo); 142 } 143 } 144 | Popular Tags |