org.zkoss.bind.Phase Maven / Gradle / Ivy
/* Phase.java
Purpose:
Description:
History:
2011/10/25 Created by Dennis Chen
Copyright (C) 2011 Potix Corporation. All Rights Reserved.
*/
package org.zkoss.bind;
/**
* The Phase of PhaseListener when doing binding.
* There are currently seven phases that executed in that order:
* Command :
*
* - {@link #COMMAND}: do a command
* - {@link #VALIDATE}: do validate before a command or zk event
* - {@link #SAVE_BEFORE}: do save bindings before executing a command
* - {@link #LOAD_BEFORE}: do load bindings before executing a command
* - {@link #EXECUTE}: execute a command
* - {@link #SAVE_AFTER}: do save bindings after executing a command
* - {@link #LOAD_AFTER}: do load bindings after executing a command
* - {@link #SAVE_BINDING}: do a save binding
* - {@link #LOAD_BINDING}: do a load binding
*
*
* Global Command :
*
* - {@link #GLOBAL_COMMAND}: do a global command
* - {@link #EXECUTE}: execute a command
*
*
* @author dennis
* @since 6.0.0
*/
public enum Phase {
/**
* command phase.
*/
COMMAND,
/**
* global command phase.
*/
GLOBAL_COMMAND,
/**
* validate phase.
*/
VALIDATE,
/**
* save before command phase.
*/
SAVE_BEFORE,
/**
* load before command phase.
*/
LOAD_BEFORE,
/**
* command execution phase.
*/
EXECUTE,
/**
* save after command phase.
*/
SAVE_AFTER,
/**
* load after command phase.
*/
LOAD_AFTER,
/**
* save binding phase.
*/
SAVE_BINDING,
/**
* load binding phase.
*/
LOAD_BINDING,
/**
* initial binding phase
* @since 8.0.0
*/
INITIAL_BINDING
}