0

What is the ZK8 equivalent specification for SimpleForm?

asked 2019-01-03 13:58:01 +0800

abhi2008 gravatar image abhi2008
61 1 1 4

updated 2019-01-04 13:43:51 +0800

Hi All,

What is the ZK8 equivalent specification for SimpleForm class? I have custom class which extends FormImpl.

How to migrate the below class in ZK8?

public class NotifiableSimpleForm extends FormImpl {

private initCount = 0;

public OXNotifiableSimpleForm() {
    super();
}

@Override
public void addSaveFieldName(String fieldName) {
    super(fieldName);
    initCount++;
}

@Override
public void setField(String field, Object value) {
    super.setField(field, value);

if (initCount > 0) {
    if (isDirty()) {
        // Do what you have to do

        System.out.println("isDirty");
     } else {
         // The other case
         System.out.println("is not Dirty");
     }
} else {
    initCount--;
}

}

Thanks

Abhi2008

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2019-01-03 13:58:01 +0800

Seen: 4 times

Last updated: Jan 04

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More