Package io.jmix.ui.component.impl
Class CapsLockIndicatorImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractComponent<JmixCapsLockIndicator>
io.jmix.ui.component.impl.CapsLockIndicatorImpl
- All Implemented Interfaces:
AttachNotifier
,CapsLockIndicator
,Component
,Component.BelongToFrame
,Component.HasCaption
,Component.HasDescription
,Component.HasIcon
,Component.HasXmlDescriptor
,Component.Wrapper
,HasContextHelp
,HasDebugId
,HasHtmlCaption
,HasHtmlDescription
,HasHtmlSanitizer
public class CapsLockIndicatorImpl
extends AbstractComponent<JmixCapsLockIndicator>
implements CapsLockIndicator
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
Nested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent
-
Field Summary
Fields inherited from class io.jmix.ui.component.impl.AbstractComponent
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
Fields inherited from interface io.jmix.ui.component.CapsLockIndicator
NAME
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected JmixCapsLockIndicator
void
setCapsLockOffMessage
(String capsLockOffMessage) Sets the message that will be shown when caps lock key is not active.void
setCapsLockOnMessage
(String capsLockOnMessage) Sets the message that will be shown when caps lock key is active.Methods inherited from class io.jmix.ui.component.impl.AbstractComponent
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
-
Constructor Details
-
CapsLockIndicatorImpl
public CapsLockIndicatorImpl()
-
-
Method Details
-
createComponent
-
setCapsLockOnMessage
Description copied from interface:CapsLockIndicator
Sets the message that will be shown when caps lock key is active.- Specified by:
setCapsLockOnMessage
in interfaceCapsLockIndicator
- Parameters:
capsLockOnMessage
- text message
-
getCapsLockOnMessage
- Specified by:
getCapsLockOnMessage
in interfaceCapsLockIndicator
- Returns:
- message that is shown when caps lock key is active
-
setCapsLockOffMessage
Description copied from interface:CapsLockIndicator
Sets the message that will be shown when caps lock key is not active.- Specified by:
setCapsLockOffMessage
in interfaceCapsLockIndicator
- Parameters:
capsLockOffMessage
- text message
-
getCapsLockOffMessage
- Specified by:
getCapsLockOffMessage
in interfaceCapsLockIndicator
- Returns:
- message that is shown when caps lock key is not active
-