Search in sources :

Example 1 with ShortcutListenerDelegate

use of com.haulmont.cuba.web.gui.components.util.ShortcutListenerDelegate in project cuba by cuba-platform.

the class WebAppWorkArea method createPreviousWindowTabShortcut.

protected ShortcutListener createPreviousWindowTabShortcut(RootWindow topLevelWindow) {
    Configuration configuration = beanLocator.get(Configuration.NAME);
    ClientConfig clientConfig = configuration.getConfig(ClientConfig.class);
    String previousTabShortcut = clientConfig.getPreviousTabShortcut();
    KeyCombination combination = KeyCombination.create(previousTabShortcut);
    return new ShortcutListenerDelegate("onPreviousTab", combination.getKey().getCode(), KeyCombination.Modifier.codes(combination.getModifiers())).withHandler((sender, target) -> {
        TabSheetBehaviour tabSheet = getTabbedWindowContainer().getTabSheetBehaviour();
        if (tabSheet != null && !hasModalWindow() && tabSheet.getComponentCount() > 1) {
            com.vaadin.ui.Component selectedTabComponent = tabSheet.getSelectedTab();
            String selectedTabId = tabSheet.getTab(selectedTabComponent);
            int tabPosition = tabSheet.getTabPosition(selectedTabId);
            int newTabPosition = (tabSheet.getComponentCount() + tabPosition - 1) % tabSheet.getComponentCount();
            String newTabId = tabSheet.getTab(newTabPosition);
            tabSheet.setSelectedTab(newTabId);
            moveFocus(tabSheet, newTabId);
        }
    });
}
Also used : Configuration(com.haulmont.cuba.core.global.Configuration) ShortcutListenerDelegate(com.haulmont.cuba.web.gui.components.util.ShortcutListenerDelegate) ClientConfig(com.haulmont.cuba.client.ClientConfig) Component(com.vaadin.ui.Component)

Example 2 with ShortcutListenerDelegate

use of com.haulmont.cuba.web.gui.components.util.ShortcutListenerDelegate in project cuba by cuba-platform.

the class CubaFoldersPane method createFoldersPaneLayout.

protected CubaVerticalActionsLayout createFoldersPaneLayout(Component foldersPane, Label foldersLabel) {
    CubaVerticalActionsLayout layout = new CubaVerticalActionsLayout();
    layout.setMargin(true);
    layout.setSpacing(true);
    layout.setSizeFull();
    if (foldersLabel != null)
        addFoldersLabel(layout, foldersLabel);
    layout.addComponent(foldersPane);
    layout.setExpandRatio(foldersPane, 1);
    layout.addShortcutListener(new ShortcutListenerDelegate("apply" + foldersPane.getCubaId(), ShortcutAction.KeyCode.ENTER, null).withHandler((sender, target) -> {
        if (sender == layout) {
            handleFoldersPaneShortcutAction(foldersPane);
        }
    }));
    return layout;
}
Also used : EnhancedTreeDataProvider(com.haulmont.cuba.web.widgets.tree.EnhancedTreeDataProvider) MenuItem(com.vaadin.ui.MenuBar.MenuItem) UserSettingsTools(com.haulmont.cuba.web.app.UserSettingsTools) StringUtils(org.apache.commons.lang3.StringUtils) AppUI(com.haulmont.cuba.web.AppUI) FileUploadDialog(com.haulmont.cuba.gui.app.core.file.FileUploadDialog) TreeDataProvider(com.vaadin.data.provider.TreeDataProvider) ContextClickEvent(com.vaadin.event.ContextClickEvent) ShortcutAction(com.vaadin.event.ShortcutAction) Method(java.lang.reflect.Method) OpenType(com.haulmont.cuba.gui.WindowManager.OpenType) CubaTree(com.haulmont.cuba.web.widgets.CubaTree) MouseEventDetails(com.vaadin.shared.MouseEventDetails) TaskLifeCycle(com.haulmont.cuba.gui.executors.TaskLifeCycle) COMMIT_ACTION_ID(com.haulmont.cuba.gui.components.Window.COMMIT_ACTION_ID) Frame(com.haulmont.cuba.gui.components.Frame) Action(com.vaadin.event.Action) WindowInfo(com.haulmont.cuba.gui.config.WindowInfo) Status(com.haulmont.cuba.gui.components.Action.Status) App(com.haulmont.cuba.web.App) Collectors(java.util.stream.Collectors) CubaSingleSelectionModel(com.haulmont.cuba.web.widgets.grid.CubaSingleSelectionModel) MarginInfo(com.vaadin.shared.ui.MarginInfo) BackgroundTask(com.haulmont.cuba.gui.executors.BackgroundTask) BackgroundTaskWrapper(com.haulmont.cuba.gui.executors.BackgroundTaskWrapper) Stream(java.util.stream.Stream) Folder(com.haulmont.cuba.core.entity.Folder) WebConfig(com.haulmont.cuba.web.WebConfig) CubaGridContextMenu(com.haulmont.cuba.web.widgets.grid.CubaGridContextMenu) ComponentsHelper(com.haulmont.cuba.gui.ComponentsHelper) SerializableFunction(com.vaadin.server.SerializableFunction) java.util(java.util) WindowManager(com.haulmont.cuba.gui.WindowManager) FoldersService(com.haulmont.cuba.core.app.FoldersService) CubaVerticalActionsLayout(com.haulmont.cuba.web.widgets.CubaVerticalActionsLayout) Supplier(java.util.function.Supplier) AppFolder(com.haulmont.cuba.core.entity.AppFolder) com.haulmont.cuba.core.global(com.haulmont.cuba.core.global) ReflectTools(com.vaadin.util.ReflectTools) ExportFormat(com.haulmont.cuba.gui.export.ExportFormat) CubaTimer(com.haulmont.cuba.web.widgets.CubaTimer) DataService(com.haulmont.cuba.core.app.DataService) Nullable(javax.annotation.Nullable) AbstractSearchFolder(com.haulmont.cuba.core.entity.AbstractSearchFolder) TreeData(com.vaadin.data.TreeData) UserSettingService(com.haulmont.cuba.security.app.UserSettingService) Command(com.vaadin.ui.MenuBar.Command) Type(com.haulmont.cuba.gui.components.DialogAction.Type) FileUtils(org.apache.commons.io.FileUtils) IOException(java.io.IOException) SearchFolder(com.haulmont.cuba.security.entity.SearchFolder) Consumer(java.util.function.Consumer) WindowConfig(com.haulmont.cuba.gui.config.WindowConfig) ByteArrayDataProvider(com.haulmont.cuba.gui.export.ByteArrayDataProvider) WebExportDisplay(com.haulmont.cuba.web.filestorage.WebExportDisplay) FileUploadingAPI(com.haulmont.cuba.gui.upload.FileUploadingAPI) ShortcutListenerDelegate(com.haulmont.cuba.web.gui.components.util.ShortcutListenerDelegate) HierarchicalQuery(com.vaadin.data.provider.HierarchicalQuery) DialogAction(com.haulmont.cuba.gui.components.DialogAction) SerializableEventListener(com.vaadin.event.SerializableEventListener) Entity(com.haulmont.cuba.core.entity.Entity) com.vaadin.ui(com.vaadin.ui) CubaVerticalActionsLayout(com.haulmont.cuba.web.widgets.CubaVerticalActionsLayout) ShortcutListenerDelegate(com.haulmont.cuba.web.gui.components.util.ShortcutListenerDelegate)

Example 3 with ShortcutListenerDelegate

use of com.haulmont.cuba.web.gui.components.util.ShortcutListenerDelegate in project cuba by cuba-platform.

the class WebAbstractTable method initComponent.

protected void initComponent(T component) {
    component.setMultiSelect(false);
    component.setValidationVisible(false);
    component.setShowBufferedSourceException(false);
    component.setCustomCellValueFormatter(this::formatCellValue);
    component.addValueChangeListener(this::tableSelectionChanged);
    component.setSpecificVariablesHandler(this::handleSpecificVariables);
    component.setIconProvider(this::getItemIcon);
    component.setBeforePaintListener(this::beforeComponentPaint);
    component.setSortAscendingLabel(messages.getMainMessage("tableSort.ascending"));
    component.setSortResetLabel(messages.getMainMessage("tableSort.reset"));
    component.setSortDescendingLabel(messages.getMainMessage("tableSort.descending"));
    component.setSelectAllLabel(messages.getMainMessage("tableColumnSelector.selectAll"));
    component.setDeselectAllLabel(messages.getMainMessage("tableColumnSelector.deselectAll"));
    int defaultRowHeaderWidth = 16;
    ThemeConstantsManager themeConstantsManager = beanLocator.get(ThemeConstantsManager.NAME, ThemeConstantsManager.class);
    ThemeConstants theme = themeConstantsManager.getConstants();
    if (theme != null) {
        defaultRowHeaderWidth = theme.getInt("cuba.web.Table.defaultRowHeaderWidth", 16);
    }
    component.setColumnWidth(ROW_HEADER_PROPERTY_ID, defaultRowHeaderWidth);
    contextMenuPopup.setParent(component);
    component.setContextMenuPopup(contextMenuPopup);
    shortcutsDelegate.setAllowEnterShortcut(false);
    component.addShortcutListener(new ShortcutListenerDelegate("tableEnter", KeyCode.ENTER, null).withHandler((sender, target) -> {
        T tableImpl = WebAbstractTable.this.component;
        CubaUI ui = (CubaUI) tableImpl.getUI();
        if (!ui.isAccessibleForUser(tableImpl)) {
            LoggerFactory.getLogger(WebAbstractTable.class).debug("Ignore click attempt because Table is inaccessible for user");
            return;
        }
        if (target == this.component) {
            if (enterPressAction != null) {
                enterPressAction.actionPerform(this);
            } else {
                handleClickAction();
            }
        }
    }));
    component.addShortcutListener(new ShortcutListenerDelegate("tableSelectAll", KeyCode.A, new int[] { com.vaadin.event.ShortcutAction.ModifierKey.CTRL }).withHandler((sender, target) -> {
        if (target == this.component) {
            selectAll();
        }
    }));
    component.addItemClickListener(event -> {
        if (event.isDoubleClick() && event.getItem() != null) {
            T tableImpl = WebAbstractTable.this.component;
            CubaUI ui = (CubaUI) tableImpl.getUI();
            if (!ui.isAccessibleForUser(tableImpl)) {
                LoggerFactory.getLogger(WebAbstractTable.class).debug("Ignore click attempt because Table is inaccessible for user");
                return;
            }
            handleClickAction();
        }
    });
    component.setAfterUnregisterComponentHandler(this::onAfterUnregisterComponent);
    component.setBeforeRefreshRowCacheHandler(this::onBeforeRefreshRowCache);
    component.setSelectable(true);
    component.setTableFieldFactory(createFieldFactory());
    component.setColumnCollapsingAllowed(true);
    component.setColumnReorderingAllowed(true);
    setEditable(false);
    componentComposition = new TableComposition();
    componentComposition.setTable(component);
    componentComposition.setPrimaryStyleName("c-table-composition");
    componentComposition.addComponent(component);
    component.setCellStyleGenerator(createStyleGenerator());
    component.addColumnCollapseListener(this::handleColumnCollapsed);
    // force default sizes
    componentComposition.setHeightUndefined();
    componentComposition.setWidthUndefined();
    setClientCaching();
    initEmptyState();
}
Also used : com.haulmont.cuba.web.gui.components.table(com.haulmont.cuba.web.gui.components.table) AggregationContainer(com.haulmont.cuba.web.widgets.data.AggregationContainer) Datasource(com.haulmont.cuba.gui.data.Datasource) DynamicAttributesTools(com.haulmont.cuba.core.app.dynamicattributes.DynamicAttributesTools) DsBuilder(com.haulmont.cuba.gui.data.DsBuilder) PresentationsImpl(com.haulmont.cuba.gui.presentations.PresentationsImpl) BiFunction(java.util.function.BiFunction) LoggerFactory(org.slf4j.LoggerFactory) DatatypeRegistry(com.haulmont.chile.core.datatypes.DatatypeRegistry) InstallTargetHandler(com.haulmont.cuba.gui.screen.InstallTargetHandler) StringUtils(org.apache.commons.lang3.StringUtils) KeyValueMetaClass(com.haulmont.cuba.core.app.keyvalue.KeyValueMetaClass) DatasourceImplementation(com.haulmont.cuba.gui.data.impl.DatasourceImplementation) com.haulmont.cuba.gui.model(com.haulmont.cuba.gui.model) IconResolver(com.haulmont.cuba.web.gui.icons.IconResolver) HasValueSource(com.haulmont.cuba.gui.components.data.HasValueSource) ScreenContext(com.haulmont.cuba.gui.screen.ScreenContext) Window(com.haulmont.cuba.gui.components.Window) LocaleHelper(com.haulmont.cuba.core.entity.LocaleHelper) CategoryAttribute(com.haulmont.cuba.core.entity.CategoryAttribute) AppUI(com.haulmont.cuba.web.AppUI) BaseAction(com.haulmont.cuba.gui.components.actions.BaseAction) ParseException(java.text.ParseException) Preconditions.checkNotNullArgument(com.haulmont.bali.util.Preconditions.checkNotNullArgument) ColumnHeaderMode(com.vaadin.v7.ui.Table.ColumnHeaderMode) Method(java.lang.reflect.Method) com.haulmont.cuba.gui.components(com.haulmont.cuba.gui.components) Property(com.vaadin.v7.data.Property) Presentations(com.haulmont.cuba.gui.presentations.Presentations) ConverterUtil(com.vaadin.v7.data.util.converter.ConverterUtil) ThemeConstantsManager(com.haulmont.cuba.gui.theme.ThemeConstantsManager) ContainerDataUnit(com.haulmont.cuba.gui.components.data.meta.ContainerDataUnit) Presentation(com.haulmont.cuba.security.entity.Presentation) Collectors(java.util.stream.Collectors) InvocationTargetException(java.lang.reflect.InvocationTargetException) EntityOp(com.haulmont.cuba.security.entity.EntityOp) com.haulmont.chile.core.model(com.haulmont.chile.core.model) BindingState(com.haulmont.cuba.gui.components.data.BindingState) WebConfig(com.haulmont.cuba.web.WebConfig) ThemeConstants(com.haulmont.cuba.gui.theme.ThemeConstants) TablePresentations(com.haulmont.cuba.web.gui.components.presentations.TablePresentations) ClientConfig(com.haulmont.cuba.client.ClientConfig) AbstractSelect(com.vaadin.v7.ui.AbstractSelect) AggregationInputValueChangeContext(com.haulmont.cuba.web.widgets.CubaEnhancedTable.AggregationInputValueChangeContext) ShowInfoAction(com.haulmont.cuba.gui.components.sys.ShowInfoAction) UiTestIds(com.haulmont.cuba.gui.sys.UiTestIds) CubaButton(com.haulmont.cuba.web.widgets.CubaButton) Document(org.dom4j.Document) java.util(java.util) LookupSelectionChangeNotifier(com.haulmont.cuba.gui.components.LookupComponent.LookupSelectionChangeNotifier) KeyValueContainerImpl(com.haulmont.cuba.gui.model.impl.KeyValueContainerImpl) CubaValueChangeEvent(com.haulmont.cuba.web.widgets.compatibility.CubaValueChangeEvent) ValueConversionException(com.haulmont.chile.core.datatypes.ValueConversionException) DocumentHelper(org.dom4j.DocumentHelper) DynamicAttributesUtils(com.haulmont.cuba.core.app.dynamicattributes.DynamicAttributesUtils) DatasourceTableItems(com.haulmont.cuba.gui.components.data.table.DatasourceTableItems) BooleanUtils(org.apache.commons.lang3.BooleanUtils) Converter(com.vaadin.v7.data.util.converter.Converter) Function(java.util.function.Function) CollectionUtils(org.apache.commons.collections4.CollectionUtils) InitializingBean(org.springframework.beans.factory.InitializingBean) com.haulmont.cuba.core.global(com.haulmont.cuba.core.global) Inject(javax.inject.Inject) Strings(com.google.common.base.Strings) Datatype(com.haulmont.chile.core.datatypes.Datatype) Subscription(com.haulmont.bali.events.Subscription) Resource(com.vaadin.server.Resource) KeyCode(com.vaadin.event.ShortcutAction.KeyCode) Nullable(javax.annotation.Nullable) PersistenceManagerClient(com.haulmont.cuba.client.sys.PersistenceManagerClient) CubaEnhancedTable(com.haulmont.cuba.web.widgets.CubaEnhancedTable) Logger(org.slf4j.Logger) EntityTableItems(com.haulmont.cuba.gui.components.data.meta.EntityTableItems) FrameOwner(com.haulmont.cuba.gui.screen.FrameOwner) EmptyDataUnit(com.haulmont.cuba.gui.components.data.meta.EmptyDataUnit) Aggregation(com.haulmont.cuba.gui.data.aggregation.Aggregation) Sizeable(com.vaadin.server.Sizeable) Preconditions(com.haulmont.bali.util.Preconditions) Consumer(java.util.function.Consumer) ColumnManager(com.haulmont.cuba.gui.components.columnmanager.ColumnManager) VaadinSession(com.vaadin.server.VaadinSession) DatasourceDataUnit(com.haulmont.cuba.gui.components.data.meta.DatasourceDataUnit) ShortcutListenerDelegate(com.haulmont.cuba.web.gui.components.util.ShortcutListenerDelegate) AggregatableTableItems(com.haulmont.cuba.gui.components.data.AggregatableTableItems) TableItems(com.haulmont.cuba.gui.components.data.TableItems) Notifications(com.haulmont.cuba.gui.Notifications) Element(org.dom4j.Element) CubaUI(com.haulmont.cuba.web.widgets.CubaUI) CollectionDatasource(com.haulmont.cuba.gui.data.CollectionDatasource) Aggregations(com.haulmont.cuba.gui.data.aggregation.Aggregations) Entity(com.haulmont.cuba.core.entity.Entity) UiControllerUtils(com.haulmont.cuba.gui.screen.UiControllerUtils) Component(com.vaadin.ui.Component) com.vaadin.ui(com.vaadin.ui) ThemeConstants(com.haulmont.cuba.gui.theme.ThemeConstants) ThemeConstantsManager(com.haulmont.cuba.gui.theme.ThemeConstantsManager) ShortcutListenerDelegate(com.haulmont.cuba.web.gui.components.util.ShortcutListenerDelegate) CubaUI(com.haulmont.cuba.web.widgets.CubaUI)

Example 4 with ShortcutListenerDelegate

use of com.haulmont.cuba.web.gui.components.util.ShortcutListenerDelegate in project cuba by cuba-platform.

the class WebAbstractDataGrid method createShortcutsDelegate.

protected ShortcutsDelegate<ShortcutListener> createShortcutsDelegate() {
    return new ShortcutsDelegate<ShortcutListener>() {

        @Override
        protected ShortcutListener attachShortcut(String actionId, KeyCombination keyCombination) {
            ShortcutListener shortcut = new ShortcutListenerDelegate(actionId, keyCombination.getKey().getCode(), KeyCombination.Modifier.codes(keyCombination.getModifiers())).withHandler((sender, target) -> {
                if (sender == componentComposition) {
                    Action action = getAction(actionId);
                    if (action != null && action.isEnabled() && action.isVisible()) {
                        action.actionPerform(WebAbstractDataGrid.this);
                    }
                }
            });
            componentComposition.addShortcutListener(shortcut);
            return shortcut;
        }

        @Override
        protected void detachShortcut(Action action, ShortcutListener shortcutDescriptor) {
            componentComposition.removeShortcutListener(shortcutDescriptor);
        }

        @Override
        protected Collection<Action> getActions() {
            return WebAbstractDataGrid.this.getActions();
        }
    };
}
Also used : ShortcutListener(com.vaadin.event.ShortcutListener) BaseAction(com.haulmont.cuba.gui.components.actions.BaseAction) ShowInfoAction(com.haulmont.cuba.gui.components.sys.ShowInfoAction) ShortcutListenerDelegate(com.haulmont.cuba.web.gui.components.util.ShortcutListenerDelegate) ShortcutsDelegate(com.haulmont.cuba.gui.components.sys.ShortcutsDelegate)

Example 5 with ShortcutListenerDelegate

use of com.haulmont.cuba.web.gui.components.util.ShortcutListenerDelegate in project cuba by cuba-platform.

the class ServerLogWindow method init.

@Override
public void init(Map<String, Object> params) {
    initLoweredAttentionPatterns();
    localJmxField.setValue(jmxControlAPI.getLocalNodeName());
    localJmxInstance = jmxControlAPI.getLocalInstance();
    jmxInstancesDs.refresh();
    jmxConnectionField.setValue(localJmxInstance);
    jmxConnectionField.setRequired(true);
    jmxConnectionField.addValueChangeListener(e -> {
        JmxInstance jmxInstance = e.getValue();
        try {
            refreshHostInfo();
        } catch (JmxControlException ex) {
            showNotification(getMessage("exception.unableToConnectToInterface"), NotificationType.WARNING);
            if (jmxInstance != localJmxInstance) {
                jmxConnectionField.setValue(localJmxInstance);
            }
        }
    });
    autoRefreshCheck.addValueChangeListener(e -> {
        if (Boolean.TRUE.equals(e.getValue())) {
            updateLogTailTimer.start();
        } else {
            updateLogTailTimer.stop();
        }
    });
    jmxConnectionField.removeAllActions();
    LookupAction action = LookupAction.create(jmxConnectionField);
    action.setAfterLookupCloseHandler((window, actionId) -> {
        jmxInstancesDs.refresh();
    });
    jmxConnectionField.addAction(action);
    jmxConnectionField.addAction(new BaseAction("actions.Add").withIcon("icons/plus-btn.png").withHandler(event -> {
        JmxInstanceEditor instanceEditor = (JmxInstanceEditor) openEditor(metadata.create(JmxInstance.class), OpenType.DIALOG);
        instanceEditor.addCloseListener(actionId -> {
            if (COMMIT_ACTION_ID.equals(actionId)) {
                jmxInstancesDs.refresh();
                jmxConnectionField.setValue(instanceEditor.getItem());
            }
        });
    }));
    logTailLabel.setSizeAuto();
    logTailLabel.setHtmlEnabled(true);
    logTailLabel.setStyleName("c-log-content");
    loggerLevelField.setOptionsList(LoggingHelper.getLevels());
    appenderLevelField.setOptionsList(LoggingHelper.getLevels());
    refreshHostInfo();
    loggerNameField.addValueChangeListener(e -> {
        List<String> currentLoggers = new ArrayList<>(jmxRemoteLoggingAPI.getLoggerNames(getSelectedConnection()));
        currentLoggers.sort(null);
        currentLoggers.add(0, getMessage("logger.new"));
        if (e.getValue() != null && e.getValue().equals(currentLoggers.get(0))) {
            openAddLoggerDialog();
        }
    });
    downloadButton.setEnabled(security.isSpecificPermitted("cuba.gui.administration.downloadlogs"));
    logFileNameField.withUnwrapped(ComboBox.class, vComboBox -> {
        vComboBox.addShortcutListener(new ShortcutListenerDelegate("", KeyCode.D, new int[] { ModifierKey.CTRL, ModifierKey.SHIFT }).withHandler((sender, target) -> downloadLog()));
        vComboBox.addShortcutListener(new ShortcutListenerDelegate("", KeyCode.S, new int[] { ModifierKey.CTRL, ModifierKey.SHIFT }).withHandler((sender, target) -> showLogTail()));
    });
    downloadButton.setDescription("CTRL-SHIFT-D");
    showTailButton.setDescription("CTRL-SHIFT-S");
    logContainer.withUnwrappedComposition(CubaScrollBoxLayout.class, vScrollBox -> vScrollBox.setDelayed(true));
}
Also used : LookupAction(com.haulmont.cuba.gui.components.PickerField.LookupAction) java.util(java.util) LookupAction(com.haulmont.cuba.gui.components.PickerField.LookupAction) Security(com.haulmont.cuba.core.global.Security) ComboBox(com.vaadin.ui.ComboBox) LoggerFactory(org.slf4j.LoggerFactory) ParamsMap(com.haulmont.bali.util.ParamsMap) Settings(com.haulmont.cuba.gui.settings.Settings) Timer(com.haulmont.cuba.gui.components.Timer) StringUtils(org.apache.commons.lang3.StringUtils) Metadata(com.haulmont.cuba.core.global.Metadata) Inject(javax.inject.Inject) Matcher(java.util.regex.Matcher) JmxControlAPI(com.haulmont.cuba.web.jmx.JmxControlAPI) KeyCode(com.vaadin.event.ShortcutAction.KeyCode) BaseAction(com.haulmont.cuba.gui.components.actions.BaseAction) LogArchiver(com.haulmont.cuba.core.sys.logging.LogArchiver) com.haulmont.cuba.gui.components(com.haulmont.cuba.gui.components) OpenType(com.haulmont.cuba.gui.WindowManager.OpenType) JmxControlException(com.haulmont.cuba.web.jmx.JmxControlException) Logger(org.slf4j.Logger) LoggingHelper(com.haulmont.cuba.core.sys.logging.LoggingHelper) LogDataProvider(com.haulmont.cuba.web.export.LogDataProvider) ExportDisplay(com.haulmont.cuba.gui.export.ExportDisplay) StringEscapeUtils(org.apache.commons.text.StringEscapeUtils) IOException(java.io.IOException) JmxRemoteLoggingAPI(com.haulmont.cuba.web.jmx.JmxRemoteLoggingAPI) JmxInstance(com.haulmont.cuba.core.entity.JmxInstance) Level(ch.qos.logback.classic.Level) ModifierKey(com.vaadin.event.ShortcutAction.ModifierKey) StringReader(java.io.StringReader) WebConfig(com.haulmont.cuba.web.WebConfig) AppConfig(com.haulmont.cuba.gui.AppConfig) JmxInstanceEditor(com.haulmont.cuba.web.app.ui.jmxinstance.edit.JmxInstanceEditor) ShortcutListenerDelegate(com.haulmont.cuba.web.gui.components.util.ShortcutListenerDelegate) CubaScrollBoxLayout(com.haulmont.cuba.web.widgets.CubaScrollBoxLayout) LogControlException(com.haulmont.cuba.core.sys.logging.LogControlException) Element(org.dom4j.Element) BufferedReader(java.io.BufferedReader) Pattern(java.util.regex.Pattern) CollectionDatasource(com.haulmont.cuba.gui.data.CollectionDatasource) ExceptionUtils(org.apache.commons.lang3.exception.ExceptionUtils) ShortcutListenerDelegate(com.haulmont.cuba.web.gui.components.util.ShortcutListenerDelegate) JmxInstanceEditor(com.haulmont.cuba.web.app.ui.jmxinstance.edit.JmxInstanceEditor) BaseAction(com.haulmont.cuba.gui.components.actions.BaseAction) JmxControlException(com.haulmont.cuba.web.jmx.JmxControlException) JmxInstance(com.haulmont.cuba.core.entity.JmxInstance)

Aggregations

ShortcutListenerDelegate (com.haulmont.cuba.web.gui.components.util.ShortcutListenerDelegate)9 ClientConfig (com.haulmont.cuba.client.ClientConfig)5 BaseAction (com.haulmont.cuba.gui.components.actions.BaseAction)4 Configuration (com.haulmont.cuba.core.global.Configuration)3 ShowInfoAction (com.haulmont.cuba.gui.components.sys.ShowInfoAction)3 WebConfig (com.haulmont.cuba.web.WebConfig)3 Component (com.vaadin.ui.Component)3 java.util (java.util)3 StringUtils (org.apache.commons.lang3.StringUtils)3 Entity (com.haulmont.cuba.core.entity.Entity)2 com.haulmont.cuba.core.global (com.haulmont.cuba.core.global)2 OpenType (com.haulmont.cuba.gui.WindowManager.OpenType)2 com.haulmont.cuba.gui.components (com.haulmont.cuba.gui.components)2 ShortcutsDelegate (com.haulmont.cuba.gui.components.sys.ShortcutsDelegate)2 CollectionDatasource (com.haulmont.cuba.gui.data.CollectionDatasource)2 AppUI (com.haulmont.cuba.web.AppUI)2 Action (com.vaadin.event.Action)2 ShortcutAction (com.vaadin.event.ShortcutAction)2 KeyCode (com.vaadin.event.ShortcutAction.KeyCode)2 ShortcutListener (com.vaadin.event.ShortcutListener)2