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

de.knightsoftnet.mtwidgets.client.ui.widget.AdminNavigationSearchCriteria_AbstractBeanValidationEditorDelegate Maven / Gradle / Ivy

Go to download

A set of widgets and handlers using server calls for gwt applications using gwt-bean-validators-spring-gwtp.

There is a newer version: 2.3.2
Show newest version
package de.knightsoftnet.mtwidgets.client.ui.widget;

import de.knightsoftnet.gwtp.spring.shared.search.SearchCriteriaSearch;
import de.knightsoftnet.validators.client.editor.ValueBoxEditor_SearchFieldDefinition_AbstractBeanValidationEditorDelegate;
import de.knightsoftnet.validators.client.editor.ValueBoxEditor_SearchOperation_AbstractBeanValidationEditorDelegate;
import de.knightsoftnet.validators.client.editor.ValueBoxEditor_String_AbstractBeanValidationEditorDelegate;
import de.knightsoftnet.validators.client.editor.impl.AbstractBeanValidationEditorDelegate;
import java.lang.Object;
import java.lang.Override;
import org.gwtproject.editor.client.Editor;
import org.gwtproject.editor.client.EditorVisitor;

public class AdminNavigationSearchCriteria_AbstractBeanValidationEditorDelegate extends AbstractBeanValidationEditorDelegate {
  private AdminNavigationSearchCriteria editor;

  private SearchCriteriaSearch object;

  private AbstractBeanValidationEditorDelegate keyDelegate;

  private AbstractBeanValidationEditorDelegate keyDelegate0;

  private AbstractBeanValidationEditorDelegate operationDelegate;

  private AbstractBeanValidationEditorDelegate operationDelegate0;

  private AbstractBeanValidationEditorDelegate valueDelegate;

  private AbstractBeanValidationEditorDelegate valueDelegate0;

  @Override
  protected AdminNavigationSearchCriteria getEditor() {
    return editor;
  }

  @Override
  protected void setEditor(Editor editor) {
    this.editor = (AdminNavigationSearchCriteria) editor;
  }

  @Override
  public SearchCriteriaSearch getObject() {
    return object;
  }

  @Override
  protected void setObject(Object object) {
    this.object = (SearchCriteriaSearch) object;
  }

  @Override
  protected void initializeSubDelegates() {
    if (editor.key.asEditor() != null) {
      keyDelegate = new ValueBoxEditor_SearchFieldDefinition_AbstractBeanValidationEditorDelegate();
      addSubDelegate(keyDelegate, appendPath("key"), editor.key.asEditor());
    }
    if (editor.key != null) {
      keyDelegate0 = new SearchFieldListBox_AbstractBeanValidationEditorDelegate();
      addSubDelegate(keyDelegate0, appendPath("key"), editor.key);
    }
    if (editor.operation.asEditor() != null) {
      operationDelegate = new ValueBoxEditor_SearchOperation_AbstractBeanValidationEditorDelegate();
      addSubDelegate(operationDelegate, appendPath("operation"), editor.operation.asEditor());
    }
    if (editor.operation != null) {
      operationDelegate0 = new SearchOperationListBox_AbstractBeanValidationEditorDelegate();
      addSubDelegate(operationDelegate0, appendPath("operation"), editor.operation);
    }
    if (editor.value.asEditor() != null) {
      valueDelegate = new ValueBoxEditor_String_AbstractBeanValidationEditorDelegate();
      addSubDelegate(valueDelegate, appendPath("value"), editor.value.asEditor());
    }
    if (editor.value != null) {
      valueDelegate0 = new DynamicInputWidget_AbstractBeanValidationEditorDelegate();
      addSubDelegate(valueDelegate0, appendPath("value"), editor.value);
    }
  }

  @Override
  public void accept(EditorVisitor visitor) {
    if (keyDelegate != null) {
      AdminNavigationSearchCriteria_key_Context ctx = new AdminNavigationSearchCriteria_key_Context(getObject(), editor.key.asEditor(), appendPath("key"));
      ctx.setEditorDelegate(keyDelegate);
      ctx.traverse(visitor, keyDelegate);
    }
    if (keyDelegate0 != null) {
      AdminNavigationSearchCriteria_key_Context ctx = new AdminNavigationSearchCriteria_key_Context(getObject(), editor.key, appendPath("key"));
      ctx.setEditorDelegate(keyDelegate0);
      ctx.traverse(visitor, keyDelegate0);
    }
    if (operationDelegate != null) {
      AdminNavigationSearchCriteria_operation_Context ctx = new AdminNavigationSearchCriteria_operation_Context(getObject(), editor.operation.asEditor(), appendPath("operation"));
      ctx.setEditorDelegate(operationDelegate);
      ctx.traverse(visitor, operationDelegate);
    }
    if (operationDelegate0 != null) {
      AdminNavigationSearchCriteria_operation_Context ctx = new AdminNavigationSearchCriteria_operation_Context(getObject(), editor.operation, appendPath("operation"));
      ctx.setEditorDelegate(operationDelegate0);
      ctx.traverse(visitor, operationDelegate0);
    }
    if (valueDelegate != null) {
      AdminNavigationSearchCriteria_value_Context ctx = new AdminNavigationSearchCriteria_value_Context(getObject(), editor.value.asEditor(), appendPath("value"));
      ctx.setEditorDelegate(valueDelegate);
      ctx.traverse(visitor, valueDelegate);
    }
    if (valueDelegate0 != null) {
      AdminNavigationSearchCriteria_value_Context ctx = new AdminNavigationSearchCriteria_value_Context(getObject(), editor.value, appendPath("value"));
      ctx.setEditorDelegate(valueDelegate0);
      ctx.traverse(visitor, valueDelegate0);
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy