Codota Logo
AbstractEditor.init
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: com.haulmont.bpm/bpm-gui

@Override
public void init(Map<String, Object> params) {
  super.init(params);
  initTabSheet();
}
origin: com.haulmont.addon.dashboard/dashboard-web

  @Override
  public void init(Map<String, Object> params) {
    super.init(params);
    add.setWindowId("dashboard$WidgetTemplate.browse");
  }
}
origin: com.haulmont.cuba/cuba-gui

@Override
public void init(Map<String, Object> params) {
  super.init(params);
  getDialogOptions().setWidthAuto();
  this.showSaveNotification = false;
}
origin: com.haulmont.bpm/bpm-gui

@Override
public void init(Map<String, Object> params) {
  super.init(params);
  getDialogOptions().setWidthAuto();
}
origin: com.haulmont.reports/reports-gui

@Override
public void init(Map<String, Object> params) {
  super.init(params);
  type.setOptionsList(Arrays.asList(ParameterType.TEXT, ParameterType.NUMERIC, ParameterType.BOOLEAN, ParameterType.ENUMERATION,
      ParameterType.DATE, ParameterType.TIME, ParameterType.DATETIME, ParameterType.ENTITY, ParameterType.ENTITY_LIST));
  initMetaClassLookup();
  initEnumsLookup();
  initListeners();
}
origin: com.haulmont.reports/reports-gui

  @Override
  public void init(Map<String, Object> params) {
    super.init(params);

    getDialogOptions()
        .setResizable(false)
        .setWidth("400px");
  }
}
origin: com.haulmont.cuba/cuba-web

@Override
public void init(Map<String, Object> params) {
  super.init(params);
  getDialogOptions().setWidth(themeConstants.get("cuba.web.AttributeEditWindow.width"));
}
origin: com.haulmont.cuba/cuba-gui

@Override
public void init(Map<String, Object> params) {
  super.init(params);
  getDialogOptions().setWidthAuto();
  uploadField.setDropZone(new UploadField.DropZone(this));
}
origin: com.haulmont.cuba/cuba-web

@Override
public void init(Map<String, Object> params) {
  super.init(params);
  getDialogOptions().setWidth(themeConstants.get("cuba.web.JmxInstanceEditor.width"));
  jmxFieldGroup.addCustomField("password", new FieldGroup.CustomFieldGenerator() {
    @Override
    public Component generateField(Datasource datasource, String propertyId) {
      passwordField = factory.createComponent(PasswordField.class);
      passwordField.setDatasource(datasource, propertyId);
      passwordField.setRequired(true);
      passwordField.setRequiredMessage(getMessage("passwordRequiredMsg"));
      return passwordField;
    }
  });
}
origin: com.haulmont.reports/reports-gui

@Override
@SuppressWarnings({"serial", "unchecked"})
public void init(Map<String, Object> params) {
  super.init(params);
  getDialogOptions()
      .setWidthAuto()
      .setResizable(true);
  namePatternTextHelp.setAction(new AbstractAction("") {
    @Override
    public void actionPerform(Component component) {
      showMessageDialog(getMessage("template.namePatternText"), getMessage("template.namePatternTextHelp"),
          MessageType.CONFIRMATION_HTML
              .modal(false)
              .width(560f));
    }
  });
}
origin: com.haulmont.reports/reports-gui

@Override
public void init(Map<String, Object> params) {
  super.init(params);
  initGeneral();
  initTemplates();
  initParameters();
  initRoles();
  initScreens();
  initValuesFormats();
}
origin: com.haulmont.reports/reports-gui

@Override
public void init(Map<String, Object> params) {
  super.init(params);
  getDialogOptions().setWidthAuto();
  // Add default format strings to combobox
  formatFields.addCustomField("formatString", new FieldGroup.CustomFieldGenerator() {
    @Override
    public Component generateField(Datasource datasource, String propertyId) {
      formatField = componentsFactory.createComponent(LookupField.class);
      Map<String, String> options = new HashMap<>();
      for (String format : defaultFormats) {
        options.put(format, format);
      }
      formatField.setDatasource(datasource, propertyId);
      formatField.setOptionsMap(options);
      formatField.setNewOptionAllowed(true);
      formatField.setNewOptionHandler(caption -> {
        addFormatItem(caption);
        formatField.setValue(caption);
      });
      formatField.setEditable(security.isEntityOpPermitted(ReportValueFormat.class, EntityOp.UPDATE));
      return formatField;
    }
  });
  //noinspection unchecked
  valuesFormatsDs.addItemPropertyChangeListener(e ->
      ((DatasourceImplementation) valuesFormatsDs).modified(e.getItem()));
}
origin: com.haulmont.reports/reports-gui

@Override
public void init(Map<String, Object> params) {
  super.init(params);
  updatePermission =  !Boolean.TRUE.equals(params.get("updateDisabled"));
  Companion companion = getCompanion();
  if (companion != null) {
    if (updatePermission) companion.addTreeTableDblClickListener(entityTree, reportRegionPropertiesTableDs);
    companion.initControlBtnsActions(addItem, propertiesTable);
    companion.initDragAndDrop(entityTree, propertiesTable, reportRegionPropertiesTableDs);
  }
  isTabulated = ((ReportRegion) WindowParams.ITEM.getEntity(params)).getIsTabulatedRegion();
  asViewEditor = BooleanUtils.isTrue((Boolean) params.get("asViewEditor"));
  params.put("component$reportPropertyName", reportPropertyName);
  reportEntityTreeNodeDs.refresh(params);
  //TODO add disallowing of classes selection in tree
  rootNode = (EntityTreeNode) params.get("rootEntity");
  if (!asViewEditor) {
    if (isTabulated) {
      setTabulatedRegionEditorCaption(((EntityTreeNode) (params.get("rootEntity"))).getName());
    } else {
      setSimpleRegionEditorCaption();
    }
  }
  tipLabel.setValue(
      formatMessage(isTabulated ? "selectEntityPropertiesForTableArea" : "selectEntityProperties", rootNode.getLocalizedName()));
  tipLabel.setHtmlEnabled(true);
  initComponents(params);
}
origin: com.haulmont.cuba/cuba-web

@Override
public void init(Map<String, Object> params) {
  super.init(params);
  attributesTable.unwrap(CubaTable.class)
      .setTextSelectionEnabled(true);
  attributesTable.setItemClickAction(editAttributeAction);
  attributesTable.addGeneratedColumn("type", entity -> {
    Label<String> label = uiComponents.create(Label.NAME);
    label.setValue(convertTypeToReadableName(entity.getType()));
    return label;
  });
  attrDs.addCollectionChangeListener(e -> {
    if (e.getDs().getItemIds().isEmpty()) {
      attributesTable.setHeight("80px"); // reduce its height if no attributes
    }
  });
  removeAction("windowCommit");
}
origin: com.haulmont.cuba/cuba-gui

@Override
public void init(Map<String, Object> params) {
  super.init(params);
com.haulmont.cuba.gui.componentsAbstractEditorinit

Javadoc

Hook to be implemented in subclasses. Called by #setItem(com.haulmont.cuba.core.entity.Entity) when the editor is opened for a new entity instance. Allows to additionally initialize the new entity instance before setting it into the datasource.

Popular methods of AbstractEditor

  • 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
  • validateAll
  • addAfterCloseListener
  • addCloseWithCommitListener
  • addAfterCloseListener,
  • addCloseWithCommitListener,
  • addInitListener,
  • afterWindowApplyPostInit,
  • closeWithCommit,
  • commitAndClose,
  • commitInternal,
  • getBeanLocator,
  • getContext

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • setContentView (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • BoxLayout (javax.swing)
  • JCheckBox (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now