1 19 package org.openharmonise.him.actions.messages; 20 21 import java.awt.event.ActionEvent ; 22 23 import javax.swing.Icon ; 24 25 import org.openharmonise.him.actions.*; 26 import org.openharmonise.him.window.messages.*; 27 import org.openharmonise.vfs.*; 28 import org.openharmonise.vfs.gui.*; 29 30 31 38 public class ActionClear extends AbstractHIMAction implements HIMAction { 39 40 43 private MessageWindow m_msgWindow = null; 44 45 48 public ActionClear(MessageWindow msgWindow) { 49 super(); 50 this.m_msgWindow = msgWindow; 51 } 52 53 56 private ActionClear(VirtualFile vfFile) { 57 super(vfFile); 58 } 59 60 63 public void actionPerformed(ActionEvent arg0) { 64 this.m_msgWindow.clear(); 65 } 66 67 70 public String getText() { 71 return "Clear"; 72 } 73 74 77 public String getToolTip() { 78 return "Clears the previous messages"; 79 } 80 81 84 public Icon getIcon() { 85 return IconManager.getInstance().getIcon("16-command-exit.gif"); 86 } 87 88 91 public String getMnemonic() { 92 return "C"; 93 } 94 95 98 public String getDescription() { 99 return "Clears the previous messages"; 100 } 101 102 105 public int getAcceleratorKeycode() { 106 return 0; 107 } 108 109 112 public int getAcceleratorMask() { 113 return 0; 114 } 115 116 } 117 | Popular Tags |