Package io.jmix.ui.component
Interface ColorPicker
- All Superinterfaces:
Buffered
,Component
,Component.BelongToFrame
,Component.Editable
,Component.Focusable
,Component.HasCaption
,Component.HasDescription
,Component.HasIcon
,Field<String>
,HasContextHelp
,HasHtmlCaption
,HasHtmlDescription
,HasHtmlSanitizer
,HasValidator<String>
,HasValue<String>
,HasValueSource<String>
,Requirable
,Validatable
- All Known Implementing Classes:
ColorPickerImpl
@StudioComponent(caption="ColorPicker",
category="Components",
xmlElement="colorPicker",
icon="io/jmix/ui/icon/component/colorPicker.svg",
canvasBehaviour=COLOR_PICKER,
unsupportedProperties="buffered",
documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/components/color-picker.html")
public interface ColorPicker
extends Field<String>, Component.Focusable, Buffered
-
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
Nested classes/interfaces inherited from interface io.jmix.ui.component.HasValue
HasValue.ValueChangeEvent<V>
-
Field Summary
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
-
Method Summary
Modifier and TypeMethodDescriptionReturns caption of the slider for blue color.Returns caption of color picker button.Returns caption of the cancel button.Returns caption of the confirm button.Returns caption of the slider for green color.Returns caption of the slider for HUE.Returns caption of the all colors in lookup.Returns caption of the blue colors in lookup.Returns caption of the green colors in lookup.Returns caption of the red colors in lookup.Returns caption of the popup window.Returns caption of the slider for red color.Returns caption of the slider for saturation.Returns caption of the swatches tab.Returns caption of the slider for value.boolean
boolean
boolean
boolean
boolean
void
setBlueSliderCaption
(String blueSliderCaption) Sets caption for the slider of blue color.void
setButtonCaption
(String buttonCaption) Sets caption for color picker button.void
setCancelButtonCaption
(String cancelButtonCaption) Sets caption for the cancel button.void
setConfirmButtonCaption
(String confirmButtonCaption) Sets caption for the confirm button.void
setDefaultCaptionEnabled
(boolean defaultCaptionEnabled) Sets HEX value as button caption.void
setGreenSliderCaption
(String greenSliderCaption) Sets caption for the slider of green color.void
setHistoryVisible
(boolean historyVisible) Sets visibility for history panevoid
setHSVVisible
(boolean hsvVisible) Sets visibility for HSV tabvoid
setHueSliderCaption
(String hueSliderCaption) Sets caption for the HUE slider.void
setLookupAllCaption
(String lookupAllCaption) Sets caption for the all colors in lookup.void
setLookupBlueCaption
(String lookupBlueCaption) Sets caption for the blue colors in lookup.void
setLookupGreenCaption
(String lookupGreenCaption) Sets caption for the green colors in lookup.void
setLookupRedCaption
(String lookupRedCaption) Sets caption for the red colors in lookup.void
setPopupCaption
(String popupCaption) Sets caption for the popup window.void
setRedSliderCaption
(String redSliderCaption) Sets caption for the slider of red color.void
setRGBVisible
(boolean rgbVisible) Sets visibility for RGB tabvoid
setSaturationSliderCaption
(String saturationSliderCaption) Sets caption for the saturation slider.void
setSwatchesTabCaption
(String swatchesTabCaption) Sets caption for the swatches tab.void
setSwatchesVisible
(boolean swatchesVisible) Sets visibility for swatches tabvoid
setValueSliderCaption
(String valueSliderCaption) Sets caption for the value slider.Methods inherited from interface io.jmix.ui.component.Buffered
commit, discard, isBuffered, isModified, setBuffered
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
Methods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrame
Methods inherited from interface io.jmix.ui.component.Component.Editable
isEditable, isEditableWithParent, setEditable
Methods inherited from interface io.jmix.ui.component.Component.Focusable
focus, getTabIndex, isFocusable, setFocusable, setTabIndex
Methods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaption
Methods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescription
Methods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSet
Methods inherited from interface io.jmix.ui.component.HasContextHelp
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
Methods inherited from interface io.jmix.ui.component.HasHtmlCaption
isCaptionAsHtml, setCaptionAsHtml
Methods inherited from interface io.jmix.ui.component.HasHtmlDescription
isDescriptionAsHtml, setDescriptionAsHtml
Methods inherited from interface io.jmix.ui.component.HasHtmlSanitizer
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
Methods inherited from interface io.jmix.ui.component.HasValidator
addValidator, addValidators, getValidators, removeValidator
Methods inherited from interface io.jmix.ui.component.HasValue
addValueChangeListener, clear, getEmptyValue, getValue, isEmpty, setValue
Methods inherited from interface io.jmix.ui.component.data.HasValueSource
getValueSource, setValueSource
Methods inherited from interface io.jmix.ui.component.Requirable
getRequiredMessage, isRequired, setRequired, setRequiredMessage
Methods inherited from interface io.jmix.ui.component.Validatable
isValid, isValidateOnCommit, validate
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
setPopupCaption
@StudioProperty(type=LOCALIZED_STRING, defaultValue="msg:///colorPicker.popupCaption") void setPopupCaption(@Nullable String popupCaption) Sets caption for the popup window.- Parameters:
popupCaption
- caption text.
-
getPopupCaption
Returns caption of the popup window.- Returns:
- caption text.
-
setConfirmButtonCaption
@StudioProperty(type=LOCALIZED_STRING, defaultValue="msg:///colorPicker.confirmButtonCaption") void setConfirmButtonCaption(@Nullable String confirmButtonCaption) Sets caption for the confirm button.- Parameters:
confirmButtonCaption
- caption text.
-
getConfirmButtonCaption
Returns caption of the confirm button.- Returns:
- caption text.
-
setCancelButtonCaption
@StudioProperty(type=LOCALIZED_STRING, defaultValue="msg:///colorPicker.cancelButtonCaption") void setCancelButtonCaption(@Nullable String cancelButtonCaption) Sets caption for the cancel button.- Parameters:
cancelButtonCaption
- caption text.
-
getCancelButtonCaption
Returns caption of the cancel button.- Returns:
- caption text.
-
setSwatchesTabCaption
@StudioProperty(type=LOCALIZED_STRING, defaultValue="msg:///colorPicker.swatchesTabCaption") void setSwatchesTabCaption(@Nullable String swatchesTabCaption) Sets caption for the swatches tab.- Parameters:
swatchesTabCaption
- caption text.
-
getSwatchesTabCaption
Returns caption of the swatches tab.- Returns:
- caption text.
-
setLookupAllCaption
@StudioProperty(type=LOCALIZED_STRING, defaultValue="msg:///colorPicker.lookupAll") void setLookupAllCaption(@Nullable String lookupAllCaption) Sets caption for the all colors in lookup.- Parameters:
lookupAllCaption
- caption text.
-
getLookupAllCaption
Returns caption of the all colors in lookup.- Returns:
- caption text.
-
setLookupRedCaption
@StudioProperty(type=LOCALIZED_STRING, defaultValue="msg:///colorPicker.lookupRed") void setLookupRedCaption(@Nullable String lookupRedCaption) Sets caption for the red colors in lookup.- Parameters:
lookupRedCaption
- caption text.
-
getLookupRedCaption
Returns caption of the red colors in lookup.- Returns:
- caption text.
-
setLookupGreenCaption
@StudioProperty(type=LOCALIZED_STRING, defaultValue="msg:///colorPicker.lookupGreen") void setLookupGreenCaption(@Nullable String lookupGreenCaption) Sets caption for the green colors in lookup.- Parameters:
lookupGreenCaption
- caption text.
-
getLookupGreenCaption
Returns caption of the green colors in lookup.- Returns:
- caption text.
-
setLookupBlueCaption
@StudioProperty(type=LOCALIZED_STRING, defaultValue="msg:///colorPicker.lookupBlue") void setLookupBlueCaption(@Nullable String lookupBlueCaption) Sets caption for the blue colors in lookup.- Parameters:
lookupBlueCaption
- caption text.
-
getLookupBlueCaption
Returns caption of the blue colors in lookup.- Returns:
- caption text.
-
setRedSliderCaption
@StudioProperty(type=LOCALIZED_STRING, defaultValue="msg:///colorPicker.redSliderCaption") void setRedSliderCaption(@Nullable String redSliderCaption) Sets caption for the slider of red color.- Parameters:
redSliderCaption
- caption text.
-
getRedSliderCaption
Returns caption of the slider for red color.- Returns:
- caption text.
-
setGreenSliderCaption
@StudioProperty(type=LOCALIZED_STRING, defaultValue="msg:///colorPicker.greenSliderCaption") void setGreenSliderCaption(@Nullable String greenSliderCaption) Sets caption for the slider of green color.- Parameters:
greenSliderCaption
- caption text.
-
getGreenSliderCaption
Returns caption of the slider for green color.- Returns:
- caption text.
-
setBlueSliderCaption
@StudioProperty(type=LOCALIZED_STRING, defaultValue="msg:///colorPicker.blueSliderCaption") void setBlueSliderCaption(@Nullable String blueSliderCaption) Sets caption for the slider of blue color.- Parameters:
blueSliderCaption
- caption text.
-
getBlueSliderCaption
Returns caption of the slider for blue color.- Returns:
- caption text.
-
setHueSliderCaption
@StudioProperty(type=LOCALIZED_STRING, defaultValue="msg:///colorPicker.hueSliderCaption") void setHueSliderCaption(@Nullable String hueSliderCaption) Sets caption for the HUE slider.- Parameters:
hueSliderCaption
- caption text.
-
getHueSliderCaption
Returns caption of the slider for HUE.- Returns:
- caption text.
-
setSaturationSliderCaption
@StudioProperty(type=LOCALIZED_STRING, defaultValue="msg:///colorPicker.saturationSliderCaption") void setSaturationSliderCaption(@Nullable String saturationSliderCaption) Sets caption for the saturation slider.- Parameters:
saturationSliderCaption
- caption text.
-
getSaturationSliderCaption
Returns caption of the slider for saturation.- Returns:
- caption text.
-
setValueSliderCaption
@StudioProperty(type=LOCALIZED_STRING, defaultValue="msg:///valueSliderCaption") void setValueSliderCaption(@Nullable String valueSliderCaption) Sets caption for the value slider.- Parameters:
valueSliderCaption
- caption text.
-
getValueSliderCaption
Returns caption of the slider for value.- Returns:
- caption text.
-
setHistoryVisible
Sets visibility for history pane- Parameters:
historyVisible
- pane visibility.
-
isHistoryVisible
boolean isHistoryVisible()- Returns:
- true if history pane is visible.
-
setSwatchesVisible
Sets visibility for swatches tab- Parameters:
swatchesVisible
- tab visibility.
-
isSwatchesVisible
boolean isSwatchesVisible()- Returns:
- true if swatches tab is visible.
-
setRGBVisible
Sets visibility for RGB tab- Parameters:
rgbVisible
- tab visibility.
-
isRGBVisible
boolean isRGBVisible()- Returns:
- true if RGB tab is visible.
-
setHSVVisible
Sets visibility for HSV tab- Parameters:
hsvVisible
- tab visibility.
-
isHSVVisible
boolean isHSVVisible()- Returns:
- true if HSV tab is visible.
-
setDefaultCaptionEnabled
Sets HEX value as button caption.- Parameters:
defaultCaptionEnabled
- true if HEX color is shown as button caption.
-
isDefaultCaptionEnabled
boolean isDefaultCaptionEnabled()- Returns:
- true if caption is shown as HTML.
-
setButtonCaption
Sets caption for color picker button.- Parameters:
buttonCaption
- caption text.
-
getButtonCaption
String getButtonCaption()Returns caption of color picker button.- Returns:
- caption text.
-