Package printplugin

Source Code of printplugin.EmptyQueueAction

package printplugin;

import java.awt.event.ActionEvent;

import util.ui.TVBrowserIcons;
import devplugin.ButtonAction;
import devplugin.PluginTreeNode;


public class EmptyQueueAction extends ButtonAction {
    /** The localizer for this class. */
    private static final util.ui.Localizer mLocalizer
        = util.ui.Localizer.getLocalizerFor(EmptyQueueAction.class);

    public EmptyQueueAction() {
      super.setText(mLocalizer.msg("emptyQueue" ,"Druckerwarteschlange leeren"));
      super.setSmallIcon(TVBrowserIcons.delete(TVBrowserIcons.SIZE_SMALL));
    }

    public void actionPerformed(ActionEvent e) {
      PluginTreeNode root = PrintPlugin.getInstance().getRootNode();
      root.removeAllChildren();
      root.update();
    }
  }
TOP

Related Classes of printplugin.EmptyQueueAction

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.