1 7 package javax.swing; 8 9 10 import java.awt.event.*; 11 import java.awt.*; 12 import javax.swing.event.*; 13 14 40 public interface ButtonModel extends ItemSelectable { 41 42 49 boolean isArmed(); 50 51 57 boolean isSelected(); 58 59 67 boolean isEnabled(); 68 69 74 boolean isPressed(); 75 76 81 boolean isRollover(); 82 83 91 public void setArmed(boolean b); 92 93 99 public void setSelected(boolean b); 100 101 107 public void setEnabled(boolean b); 108 109 115 public void setPressed(boolean b); 116 117 123 public void setRollover(boolean b); 124 125 131 public void setMnemonic(int key); 132 133 139 public int getMnemonic(); 140 141 147 public void setActionCommand(String s); 148 149 155 public String getActionCommand(); 156 157 164 public void setGroup(ButtonGroup group); 165 166 171 void addActionListener(ActionListener l); 172 173 178 void removeActionListener(ActionListener l); 179 180 185 void addItemListener(ItemListener l); 186 187 192 void removeItemListener(ItemListener l); 193 194 199 void addChangeListener(ChangeListener l); 200 201 206 void removeChangeListener(ChangeListener l); 207 208 } 209 | Popular Tags |