1 15 package swingwtx.swing; 16 17 import swingwt.awt.ItemSelectable; 18 import swingwt.awt.event.ActionListener; 19 import swingwt.awt.event.ItemListener; 20 import swingwtx.swing.event.ChangeListener; 21 22 30 public interface ButtonModel extends ItemSelectable { 31 boolean isArmed(); 32 boolean isSelected(); 33 boolean isEnabled(); 34 boolean isPressed(); 35 boolean isRollover(); 36 public void setArmed(boolean b); 37 public void setSelected(boolean b); 38 public void setEnabled(boolean b); 39 public void setPressed(boolean b); 40 public void setRollover(boolean b); 41 public void setMnemonic(int key); 42 public int getMnemonic(); 43 public void setActionCommand(String s); 44 public String getActionCommand(); 45 public void setGroup(ButtonGroup group); 46 void addActionListener(ActionListener l); 47 void removeActionListener(ActionListener l); 48 void addItemListener(ItemListener l); 49 void removeItemListener(ItemListener l); 50 void addChangeListener(ChangeListener l); 51 void removeChangeListener(ChangeListener l); 52 } 53 | Popular Tags |