Codota Logo
com.haulmont.cuba.gui.components
Code IndexAdd Codota to your IDE (free)

How to use com.haulmont.cuba.gui.components

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: com.haulmont.cuba/cuba-gui

protected void enableControls() {
  loggedEntityTable.setEnabled(false);
  entityNameField.setEditable(false);
  autoCheckBox.setEditable(true);
  manualCheckBox.setEditable(true);
  for (Component c : attributesBoxScroll.getComponents())
    ((CheckBox) c).setEditable(true);
  actionsPaneLayout.setVisible(true);
}
origin: com.haulmont.cuba/cuba-gui

/**
 * Adds ESCAPE shortcut that invokes cancel() method.
 */
protected void initShortcuts() {
  ComponentContainer editBox = getEditBox();
  if (editBox instanceof ShortcutNotifier) {
    ((ShortcutNotifier) editBox).addShortcutAction(
        new ShortcutAction(new KeyCombination(KeyCombination.Key.ESCAPE),
            shortcutTriggeredEvent -> cancel()));
  }
}
origin: com.haulmont.reports/reports-gui

  public void clearFilter() {
    nameFilter.setValue(null);
    codeFilter.setValue(null);
    updatedDateFilter.setValue(null);
    groupFilter.setValue(null);
  }
}
origin: com.haulmont.cuba/cuba-gui

@SuppressWarnings("unchecked")
protected <T> T getValue(Component component) {
  if (component instanceof HasValue) {
    return (T) ((HasValue) component).getValue();
  } else if (component instanceof ListComponent) {
    ListComponent list = (ListComponent) component;
    //noinspection unchecked
    return list.isMultiSelect() ? (T)list.getSelected() : (T)list.getSingleSelected();
  } else {
    return null;
  }
}
origin: com.haulmont.cuba/cuba-gui

public void setControlVisible(boolean visible) {
  controlVisible = visible;
  operationLabel.setVisible(visible);
  allowChecker.setVisible(visible);
  allowChecker.setDescription(operationLabel.getValue());
  denyChecker.setVisible(visible);
  denyChecker.setDescription(operationLabel.getValue());
}
origin: com.haulmont.cuba/cuba-gui

  public void setCategoryFieldEditable(boolean editable) {
    categoryField.setEditable(editable);
    FieldGroup newRuntime = (FieldGroup) getComponent("runtime");
    if (newRuntime != null) {
      newRuntime.setEditable(editable);
    }
  }
}
origin: com.haulmont.cuba/cuba-web

public ContainerShortcutActionWrapper(ShortcutAction action, ComponentContainer container, KeyCombination keyCombination) {
  super(null, keyCombination.getKey().getCode(), KeyCombination.Modifier.codes(keyCombination.getModifiers()));
  this.action = action;
  this.keyCombination = keyCombination;
  this.container = container;
}
origin: com.haulmont.cuba/cuba-gui

protected void applyPermissions(boolean editable) {
  if (!editable) {
    hideCheckBox.setEditable(false);
    showCheckBox.setEditable(false);
    readOnlyCheckBox.setEditable(false);
    addPermissionBtn.setEnabled(false);
  }
}
origin: com.haulmont.cuba/cuba-gui

/**
 * Enables or disables margins on all sides simultaneously.
 *
 * @param enable if true, enables margins on all sides. If false, disables margins on all sides.
 */
default void setOuterMargin(boolean enable) {
  setOuterMargin(new MarginInfo(enable, enable, enable, enable));
}
origin: com.haulmont.cuba/cuba-web

protected void attachAction(Action action) {
  if (action instanceof Action.HasTarget) {
    ((Action.HasTarget) action).setTarget(this);
  }
  action.refreshState();
}
origin: com.haulmont.cuba/cuba-gui

@SuppressWarnings("unchecked")
@Override
public <X> X unwrap(Class<X> internalComponentClass) {
  if (getComponent() instanceof Component.Wrapper) {
    return (X) ((Component.Wrapper) frame).getComponent();
  }
  return (X) frame;
}
origin: com.haulmont.cuba/cuba-gui

protected void hideComponent(AbstractFrame parentFrame, String componentId) {
  Component component = parentFrame.getComponent(componentId);
  if (component != null)
    component.setVisible(false);
}
origin: com.haulmont.cuba/cuba-gui

  @Override
  public void accept(PickerField.FieldValueChangeEvent<E> event) {
    listener.actionPerformed(event.getText(), event.getPrevValue());
  }
}
origin: com.haulmont.cuba/cuba-gui

@Override
public void collectionChanged(CollectionDatasource.CollectionChangeEvent e) {
  for (Action action : actionsHolder.getActions()) {
    action.refreshState();
  }
}
origin: com.haulmont.cuba/cuba-gui

protected void setCopyButtonVisible() {
  Component copyBtn = buttonsHbox.getComponent("copy");
  if (copyBtn != null) {
    copyBtn.setVisible(true);
  }
}
origin: com.haulmont.cuba/cuba-gui

@SuppressWarnings("unchecked")
@Override
public <X> X unwrapComposition(Class<X> internalCompositionClass) {
  if (getComposition() instanceof Component.Wrapper) {
    return (X) ((Component.Wrapper) frame).getComposition();
  }
  return (X) frame;
}
origin: com.haulmont.cuba/cuba-gui

  @Override
  public void accept(Table.CellClickEvent<E> cellClickEvent) {
    listener.onClick(cellClickEvent.getItem(), cellClickEvent.getColumnId());
  }
}
origin: com.haulmont.cuba/cuba-gui

  @Override
  public void accept(Table.ColumnCollapseEvent event) {
    listener.columnCollapsed(event.getColumn(), event.isCollapsed());
  }
}
origin: com.haulmont.cuba/cuba-gui

  @Override
  public void accept(Timer.TimerStopEvent timerStopEvent) {
    listener.timerStopped(timerStopEvent.getSource());
  }
}
origin: com.haulmont.cuba/cuba-gui

protected void disableControls() {
  entityNameField.setEditable(false);
  loggedEntityTable.setEnabled(true);
  autoCheckBox.setEditable(false);
  manualCheckBox.setEditable(false);
  for (Component c : attributesBoxScroll.getComponents())
    ((CheckBox) c).setEditable(false);
  actionsPaneLayout.setVisible(false);
}
com.haulmont.cuba.gui.components

Most used classes

  • Button
  • Component
    Root of the GenericUI components hierarchy.
  • ListComponent
  • LookupField
  • TextField
  • AbstractEditor,
  • AbstractWindow,
  • DialogAction,
  • FieldGroup,
  • Frame,
  • Label,
  • Window,
  • AbstractFrame,
  • AbstractLookup,
  • BoxLayout,
  • CheckBox,
  • Component$ValueChangeEvent,
  • DateField,
  • Field
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