Java开发图文混排的编辑器

源代码在线查看: command.java

软件大小: 1326 K
上传用户: sinoarts
关键词: Java 编辑器
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*
				 * Created on 2004-7-18
				 * Author: Xuefeng, Copyright (C) 2004, Xuefeng.
				 */
				package jexi.core.command;
				
				/**
				 * Command interface.
				 * 
				 * @author Xuefeng
				 */
				public interface Command {
				
				    /**
				     * Execute this command. If succeeded (return TRUE), the 
				     * CommandManager will put this command into command list 
				     * if this command can support undo. 
				     * 
				     * @return True if the command executed succussfully.
				     */
				    boolean execute();
				
				    /**
				     * Undo this command. This is used to implement "Undo"
				     */
				    void unexecute();
				
				    /**
				     * If this command can support undo. Some commands not support 
				     * undo such as CopyCommand, PastCommand. 
				     * 
				     * @return True if this command can undo.
				     */
				    boolean canUndo();
				
				    /**
				     * Get the command detail. 
				     * 
				     * @return The command description.
				     */
				    String toString();
				}
							

相关资源