1 30 package com.genimen.djeneric.tools.administrator.editors; 31 32 import javax.swing.JPanel ; 33 34 import com.genimen.djeneric.tools.administrator.helpers.AdminPanel; 35 import com.genimen.djeneric.ui.DjCloseable; 36 37 public class AdminEditor extends JPanel implements DjCloseable 38 { 39 private static final long serialVersionUID = 1L; 40 41 AdminPanel _adminPanel; 42 43 public AdminEditor() 44 { 45 } 46 47 public AdminEditor(AdminPanel adminPanel) 48 { 49 _adminPanel = adminPanel; 50 } 51 52 public void setStatusMessage(String msg) 53 { 54 setStatusMessage(msg, true); 55 } 56 57 public void setStatusMessage(String msg, boolean isInformative) 58 { 59 _adminPanel.setStatusMessage(msg, isInformative); 60 } 61 62 public void setStatusMessage(Throwable t) 63 { 64 _adminPanel.setStatusMessage(t); 65 } 66 67 public void requestFocus() 68 { 69 } 70 71 public String getID() 72 { 73 return null; 74 } 75 76 public boolean canClose() 77 { 78 return true; 79 } 80 81 public boolean close() 82 { 83 _adminPanel.closeEditor(this); 84 return true; 85 86 } 87 88 } | Popular Tags |