1 package org.columba.core.gui.action; 17 18 import org.columba.api.gui.frame.IFrameMediator; 19 20 21 26 public abstract class AbstractSelectableAction extends AbstractColumbaAction { 27 protected boolean state = false; 28 29 32 public AbstractSelectableAction(IFrameMediator controller, String name) { 33 super(controller, name); 34 } 35 36 39 public boolean getState() { 40 return state; 41 } 42 43 46 public void setState(boolean state) { 47 if (this.state != state) { 48 Boolean oldValue = this.state ? Boolean.TRUE : Boolean.FALSE; 49 this.state = state; 50 firePropertyChange("selected", oldValue, 51 state ? Boolean.TRUE : Boolean.FALSE); 52 } 53 } 54 } 55 | Popular Tags |