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

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

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

origin: com.haulmont.cuba/cuba-gui

@Override
protected boolean postCommit(boolean committed, boolean close) {
  if (committed && needSave) {
    saveFile();
  }
  return super.postCommit(committed, close);
}
origin: com.haulmont.bpm/bpm-gui

@Override
protected boolean postCommit(boolean committed, boolean close) {
  boolean result = super.postCommit(committed, close);
  procAttachmentsFrame.putFilesIntoStorage();
  return result;
}
origin: com.haulmont.addon.dashboard/dashboard-web

@Override
protected boolean postCommit(boolean committed, boolean close) {
  if (committed) {
    events.publish(new DashboardUpdatedEvent(getDashboard()));
  }
  return super.postCommit(committed, close);
}
origin: com.haulmont.cuba/cuba-gui

protected boolean commitInternal(boolean close) {
  if (!preCommit())
    return false;
  boolean committed;
  DsContext context = getDsContext();
  if (context != null) {
    committed = context.commit();
  } else {
    DataSupplier supplier = getDataService();
    supplier.commit(getItem());
    committed = true;
  }
  return postCommit(committed, close);
}
origin: com.haulmont.bpm/bpm-gui

  @Override
  protected boolean postCommit(boolean committed, boolean close) {
    if (committed) {
      modelService.updateModel(getItem().getActModelId(), getItem().getName(), getItem().getDescription());
    }
    return super.postCommit(committed, close);
  }
}
com.haulmont.cuba.gui.componentsAbstractEditorpostCommit

Javadoc

Hook to be implemented in subclasses. Called by the framework after committing datasources. The default implementation notifies about commit and calls #postInit() if the window is not closing.

Popular methods of AbstractEditor

  • init
  • postInit
    Hook to be implemented in subclasses. Called by #setItem(com.haulmont.cuba.core.entity.Entity). At t
  • getItem
  • 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
  • validateAll
  • addAfterCloseListener
  • addCloseWithCommitListener
  • addAfterCloseListener,
  • addCloseWithCommitListener,
  • addInitListener,
  • afterWindowApplyPostInit,
  • closeWithCommit,
  • commitAndClose,
  • commitInternal,
  • getBeanLocator,
  • getContext

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
  • notifyDataSetChanged (ArrayAdapter)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • BoxLayout (javax.swing)
  • JCheckBox (javax.swing)
  • Best plugins for Eclipse
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