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.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEventNested classes/interfaces inherited from interface io.jmix.ui.component.HasValue
HasValue.ValueChangeEvent<V> -
Field Summary
FieldsFields 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.booleanbooleanbooleanbooleanbooleanvoidsetBlueSliderCaption(String blueSliderCaption) Sets caption for the slider of blue color.voidsetButtonCaption(String buttonCaption) Sets caption for color picker button.voidsetCancelButtonCaption(String cancelButtonCaption) Sets caption for the cancel button.voidsetConfirmButtonCaption(String confirmButtonCaption) Sets caption for the confirm button.voidsetDefaultCaptionEnabled(boolean defaultCaptionEnabled) Sets HEX value as button caption.voidsetGreenSliderCaption(String greenSliderCaption) Sets caption for the slider of green color.voidsetHistoryVisible(boolean historyVisible) Sets visibility for history panevoidsetHSVVisible(boolean hsvVisible) Sets visibility for HSV tabvoidsetHueSliderCaption(String hueSliderCaption) Sets caption for the HUE slider.voidsetLookupAllCaption(String lookupAllCaption) Sets caption for the all colors in lookup.voidsetLookupBlueCaption(String lookupBlueCaption) Sets caption for the blue colors in lookup.voidsetLookupGreenCaption(String lookupGreenCaption) Sets caption for the green colors in lookup.voidsetLookupRedCaption(String lookupRedCaption) Sets caption for the red colors in lookup.voidsetPopupCaption(String popupCaption) Sets caption for the popup window.voidsetRedSliderCaption(String redSliderCaption) Sets caption for the slider of red color.voidsetRGBVisible(boolean rgbVisible) Sets visibility for RGB tabvoidsetSaturationSliderCaption(String saturationSliderCaption) Sets caption for the saturation slider.voidsetSwatchesTabCaption(String swatchesTabCaption) Sets caption for the swatches tab.voidsetSwatchesVisible(boolean swatchesVisible) Sets visibility for swatches tabvoidsetValueSliderCaption(String valueSliderCaption) Sets caption for the value slider.Methods inherited from interface io.jmix.ui.component.Buffered
commit, discard, isBuffered, isModified, setBufferedMethods 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, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.Editable
isEditable, isEditableWithParent, setEditableMethods inherited from interface io.jmix.ui.component.Component.Focusable
focus, getTabIndex, isFocusable, setFocusable, setTabIndexMethods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSetMethods inherited from interface io.jmix.ui.component.HasContextHelp
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledMethods inherited from interface io.jmix.ui.component.HasHtmlCaption
isCaptionAsHtml, setCaptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlDescription
isDescriptionAsHtml, setDescriptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlSanitizer
isHtmlSanitizerEnabled, setHtmlSanitizerEnabledMethods inherited from interface io.jmix.ui.component.HasValidator
addValidator, addValidators, getValidators, removeValidatorMethods inherited from interface io.jmix.ui.component.HasValue
addValueChangeListener, clear, getEmptyValue, getValue, isEmpty, setValueMethods inherited from interface io.jmix.ui.component.data.HasValueSource
getValueSource, setValueSourceMethods inherited from interface io.jmix.ui.component.Requirable
getRequiredMessage, isRequired, setRequired, setRequiredMessageMethods 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.
-