1 21 22 package org.opensubsystems.core.application; 23 24 import org.opensubsystems.core.error.OSSException; 25 import org.opensubsystems.core.util.ClassFactory; 26 27 35 public class ThickClientDialog 36 { 37 39 42 protected ThickClient m_client; 43 44 47 protected ThickClientDialog m_parentDialog; 48 49 52 protected String m_strTitle; 53 54 57 protected ThickClientDialogGui m_dialogGui; 58 59 61 71 public ThickClientDialog( 72 ThickClient client, 73 String strTitle, 74 Class clsDialogGui 75 ) throws OSSException 76 { 77 super(); 78 79 m_client = client; 80 m_strTitle = strTitle; 81 83 ClassFactory classFactory; 84 85 classFactory = new ThickClientDependentClassFactory(m_client); 86 m_dialogGui = (ThickClientDialogGui)classFactory.createInstance( 87 clsDialogGui); 88 } 89 90 100 public ThickClientDialog( 101 ThickClientDialog parentDialog, 102 String strTitle, 103 Class clsDialogGui 104 ) throws OSSException 105 { 106 this(parentDialog.getClient(), strTitle, clsDialogGui); 107 108 m_parentDialog = parentDialog; 109 } 110 111 118 public ThickClient getClient( 119 ) 120 { 121 return m_client; 122 } 123 124 132 public ThickClientDialog getParentDialog() 133 { 134 return m_parentDialog; 135 } 136 137 142 public ThickClientDialogGui getGui( 143 ) 144 { 145 return m_dialogGui; 146 } 147 148 153 public String getTitle() 154 { 155 return m_strTitle; 156 } 157 } 158 | Popular Tags |