All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zkoss.bind.annotation.HistoryPopState Maven / Gradle / Ivy

The newest version!
package org.zkoss.bind.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.zkoss.zk.ui.event.HistoryPopStateEvent;

/**
 * 

Marker annotation to identify a HistoryPopState method in View Model.
* Only one (could be zero) HistoryPopState method is allowed in a particular class. * A HistoryPopState method could also use with {@link ContextParam} to get the {@link HistoryPopStateEvent}.
*

*

This annotation is for history state in ZK MVVM. *

*

Example:
* @HistoryPopState
* public void method(@ContextParam(ContextType.TRIGGER_EVENT) HistoryPopStateEvent event) * * @author rudyhuang * @since 8.5.0 */ @Documented @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface HistoryPopState { }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy