1 package org.columba.core.gui.action; 17 18 import javax.swing.AbstractAction ; 19 20 import org.columba.api.gui.IAbstractColumbaAction; 21 import org.columba.api.gui.frame.IFrameMediator; 22 import org.columba.api.plugin.IExtensionInterface; 23 24 25 36 37 public abstract class AbstractColumbaAction extends AbstractAction 38 implements IExtensionInterface, IAbstractColumbaAction { 39 42 protected boolean showToolbarText = true; 43 protected IFrameMediator frameMediator; 44 45 53 public AbstractColumbaAction(IFrameMediator frameMediator, String name) { 54 super(name); 55 this.frameMediator = frameMediator; 56 } 57 58 61 public IFrameMediator getFrameMediator() { 62 return frameMediator; 63 } 64 65 68 public void setFrameMediator(IFrameMediator frameController) { 69 this.frameMediator = frameController; 70 } 71 72 75 public boolean isShowToolBarText() { 76 return showToolbarText; 77 } 78 79 82 public void setShowToolBarText(boolean showToolbarText) { 83 if (this.showToolbarText != showToolbarText) { 84 Boolean oldValue = this.showToolbarText ? Boolean.TRUE : Boolean.FALSE; 85 this.showToolbarText = showToolbarText; 86 firePropertyChange("showToolBarText", oldValue, 87 showToolbarText ? Boolean.TRUE : Boolean.FALSE); 88 } 89 } 90 } 91 | Popular Tags |