1 26 package org.objectweb.util.explorer.core.menu.lib; 27 28 import org.objectweb.util.explorer.core.common.api.Description; 29 import org.objectweb.util.explorer.core.menu.api.MnemonicDescription; 30 31 39 public class BasicMnemonicDescription 40 implements MnemonicDescription 41 { 42 43 49 protected char char_=0; 50 51 57 63 69 72 public String getDescriptionType() { 73 return Description.MNEMONIC_DESCRIPTION; 74 } 75 76 79 public boolean isEmpty() { 80 return char_==0; 81 } 82 83 89 92 public void setMnemonicCharacter(char car) { 93 char_ = car; 94 } 95 96 99 public char getMnemonicCharacter() { 100 return char_; 101 } 102 103 109 113 public boolean equals(Object o){ 114 if(o!=null && o instanceof BasicMnemonicDescription){ 115 return (char_==((BasicMnemonicDescription)o).char_); 116 } 117 return false; 118 } 119 120 124 public String toString(){ 125 return "BasicMnemonicDescription[char=" + char_ + "]"; 126 } 127 128 } 129 | Popular Tags |