Tabnine Logo
AbstractEditor.validateAll
Code IndexAdd Tabnine to your IDE (free)

How to use
validateAll
method
in
com.haulmont.cuba.gui.components.AbstractEditor

Best Java code snippets using com.haulmont.cuba.gui.components.AbstractEditor.validateAll (Showing top 3 results out of 315)

origin: com.haulmont.reports/reports-gui

@Override
public boolean validateAll() {
  return super.validateAll() && validateInputOutputFormats();
}
origin: com.haulmont.cuba/cuba-gui

/**
 * Commit changes with optional validation.
 * <p>Don't override this method in subclasses, use hooks {@link #postValidate(ValidationErrors)}, {@link #preCommit()}
 * and {@link #postCommit(boolean, boolean)} instead.</p>
 *
 * @param validate false to avoid validation
 * @return true if commit was successful
 */
@Override
public boolean commit(boolean validate) {
  if (validate && !validateAll())
    return false;
  return commitInternal(false);
}
origin: com.haulmont.cuba/cuba-gui

/**
 * Tries to validate and commit data. If data committed successfully then closes the screen with
 * {@link #WINDOW_COMMIT_AND_CLOSE} action. May show validation errors or open an additional dialog before closing
 * the screen.
 *
 * @return result of close request
 */
public OperationResult closeWithCommit() {
  if (validateAll()) {
    boolean committed = commitInternal(true);
    if (committed) {
      return close(WINDOW_COMMIT_AND_CLOSE_ACTION);
    }
  }
  return OperationResult.fail();
}
com.haulmont.cuba.gui.componentsAbstractEditorvalidateAll

Popular methods of AbstractEditor

  • init
  • postInit
    Hook to be implemented in subclasses. Called by #setItem(com.haulmont.cuba.core.entity.Entity). At t
  • getItem
  • postCommit
    Hook to be implemented in subclasses. Called by the framework after committing datasources. The defa
  • preCommit
    Hook to be implemented in subclasses. Called by the framework when all validation is done and dataso
  • setItem
    Called by the framework to set an edited entity after creation of all components and datasources, an
  • addCloseListener
  • close
  • commit
    Commit changes with optional validation.Don't override this method in subclasses, use hooks #postVal
  • postValidate
  • addAfterCloseListener
  • addCloseWithCommitListener
  • addAfterCloseListener,
  • addCloseWithCommitListener,
  • addInitListener,
  • afterWindowApplyPostInit,
  • closeWithCommit,
  • commitAndClose,
  • commitInternal,
  • getBeanLocator,
  • getContext

Popular in Java

  • Reading from database using SQL prepared statement
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now