Package org.teamapps.ux.component.field
Class ColorPicker
- java.lang.Object
-
- org.teamapps.ux.component.AbstractComponent
-
- org.teamapps.ux.component.field.AbstractField<org.teamapps.common.format.Color>
-
- org.teamapps.ux.component.field.ColorPicker
-
- All Implemented Interfaces:
ClientObject,Component
public class ColorPicker extends AbstractField<org.teamapps.common.format.Color>
-
-
Field Summary
-
Fields inherited from class org.teamapps.ux.component.field.AbstractField
onBlur, onFocus, onValueChanged, onVisibilityChanged
-
Fields inherited from class org.teamapps.ux.component.AbstractComponent
DELETED_ATTRIBUTE, onRendered
-
-
Constructor Summary
Constructors Constructor Description ColorPicker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.teamapps.common.format.ColorconvertUiValueToUxValue(java.lang.Object value)java.lang.ObjectconvertUxValueToUiValue(org.teamapps.common.format.Color color)Converts a server-side value to a client-side field-specific value.org.teamapps.dto.UiFieldcreateUiComponent()java.lang.StringgetClearButtonCaption()org.teamapps.common.format.ColorgetDefaultColor()java.lang.StringgetSaveButtonCaption()voidsetClearButtonCaption(java.lang.String clearButtonCaption)voidsetDefaultColor(org.teamapps.common.format.Color defaultColor)voidsetSaveButtonCaption(java.lang.String saveButtonCaption)-
Methods inherited from class org.teamapps.ux.component.field.AbstractField
addCustomFieldMessage, addCustomFieldMessage, addValidator, applyValueFromUi, clearCustomFieldMessages, clearValidatorMessages, focus, getCustomFieldMessages, getDefaultMessagePosition, getDefaultMessageVisibility, getEditingMode, getFieldMessages, getMaxFieldMessageSeverity, getValidators, getValue, handleUiEvent, isEmpty, isEmptyValue, isRequired, isValid, isValueChangedByClient, isValueLocked, mapAbstractFieldAttributesToUiField, removeCustomFieldMessage, removeValidator, setAndLockValue, setCustomFieldMessages, setDefaultMessagePosition, setDefaultMessageVisibility, setEditingMode, setRequired, setRequiredIfVisibleAndEditable, setValue, setValueChangedByClient, setVisible, validate
-
Methods inherited from class org.teamapps.ux.component.AbstractComponent
createUiReference, getDebuggingId, getId, getParent, getSessionContext, isRendered, isVisible, mapAbstractUiComponentProperties, queueCommandIfRendered, render, reRenderIfRendered, setAttribute, setCssStyle, setDebuggingId, setParent, toggleCssClass, toString, unrender
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teamapps.ux.component.ClientObject
handleUiQuery
-
Methods inherited from interface org.teamapps.ux.component.Component
setAriaLabel, setAttribute, setCssStyle, setHtmlTitle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setShadow, toggleCssClass
-
-
-
-
Method Detail
-
createUiComponent
public org.teamapps.dto.UiField createUiComponent()
- Specified by:
createUiComponentin classAbstractComponent
-
convertUiValueToUxValue
public org.teamapps.common.format.Color convertUiValueToUxValue(java.lang.Object value)
- Overrides:
convertUiValueToUxValuein classAbstractField<org.teamapps.common.format.Color>
-
convertUxValueToUiValue
public java.lang.Object convertUxValueToUiValue(org.teamapps.common.format.Color color)
Description copied from class:AbstractFieldConverts a server-side value to a client-side field-specific value. Implementations must not have any side effects to the component!- Overrides:
convertUxValueToUiValuein classAbstractField<org.teamapps.common.format.Color>- Parameters:
color- the server-side value- Returns:
- the object to be sent to the ui
-
getDefaultColor
public org.teamapps.common.format.Color getDefaultColor()
-
setDefaultColor
public void setDefaultColor(org.teamapps.common.format.Color defaultColor)
-
getSaveButtonCaption
public java.lang.String getSaveButtonCaption()
-
setSaveButtonCaption
public void setSaveButtonCaption(java.lang.String saveButtonCaption)
-
getClearButtonCaption
public java.lang.String getClearButtonCaption()
-
setClearButtonCaption
public void setClearButtonCaption(java.lang.String clearButtonCaption)
-
-