@Override public void setModeSwitchVisible(boolean modeSwitchVisible) { this.modeSwitchVisible = modeSwitchVisible; if (ftsSwitch != null) { ftsSwitch.setVisible(modeSwitchVisible && isFtsModeEnabled() && isEntityAvailableForFts()); } }
public void build() { for (Map.Entry<String, List<String>> entry : components.entrySet()) { String componentName = entry.getKey(); Component component = getControlsLayoutComponent(componentName, entry.getValue()); if (component == null) { //in case of disabled FTS add-on, the missing fts_switch component is not an error if (!isFtsModeEnabled() && "fts_switch".equals(componentName)) { continue; } log.warn("Filter controls layout component {} not supported", componentName); continue; } controlsLayout.add(component); if (component == controlsLayoutGap) { controlsLayout.expand(component); } } }
@Override public void switchFilterMode(FilterMode filterMode) { if (filterMode == FilterMode.FTS_MODE && !isFtsModeEnabled() && !isEntityAvailableForFts()) { log.warn("Unable to switch to the FTS filter mode. FTS mode is not supported for the {} entity", adapter.getMetaClass().getName());
if (isFtsModeEnabled()) { createFtsSwitch(); ftsSwitch.setAlignment(Alignment.MIDDLE_RIGHT);