public class JmixCurrencyField
extends com.vaadin.ui.CustomField<java.lang.String>
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
com.vaadin.server.Sizeable.Unit
Modifier and Type | Field and Description |
---|---|
protected com.vaadin.ui.CssLayout |
container |
protected java.lang.String |
currency |
protected static java.lang.String |
CURRENCY_STYLENAME |
protected static java.lang.String |
CURRENCY_VISIBLE |
protected static java.lang.String |
CURRENCYFIELD_LAYOUT_STYLENAME |
protected static java.lang.String |
CURRENCYFIELD_STYLENAME |
protected static java.lang.String |
CURRENCYFIELD_TEXT_STYLENAME |
protected JmixLabel |
currencyLabel |
protected CurrencyLabelPosition |
currencyLabelPosition |
protected static java.lang.String |
IE9_INPUT_WRAP_STYLENAME |
protected com.vaadin.ui.CssLayout |
ie9InputWrapper |
protected boolean |
showCurrencyLabel |
protected JmixTextField |
textField |
Constructor and Description |
---|
JmixCurrencyField() |
Modifier and Type | Method and Description |
---|---|
protected void |
doSetValue(java.lang.String value) |
void |
focus() |
com.vaadin.server.ErrorMessage |
getComponentError() |
java.util.function.Supplier<com.vaadin.server.ErrorMessage> |
getComponentErrorProvider() |
java.lang.String |
getCurrency() |
CurrencyLabelPosition |
getCurrencyLabelPosition() |
com.vaadin.server.ErrorMessage |
getErrorMessage() |
com.vaadin.ui.TextField |
getInternalComponent() |
java.lang.String |
getRequiredError() |
boolean |
getShowCurrencyLabel() |
int |
getTabIndex() |
java.lang.String |
getValue() |
protected void |
init() |
protected com.vaadin.ui.Component |
initContent() |
protected void |
initCurrencyLabel() |
protected void |
initLayout() |
protected void |
initTextField() |
void |
setComponentError(com.vaadin.server.ErrorMessage componentError) |
void |
setComponentErrorProvider(java.util.function.Supplier<com.vaadin.server.ErrorMessage> componentErrorProvider) |
void |
setCurrency(java.lang.String currency) |
void |
setCurrencyLabelPosition(CurrencyLabelPosition currencyLabelPosition) |
void |
setReadOnly(boolean readOnly) |
void |
setRequiredError(java.lang.String requiredMessage) |
void |
setShowCurrencyLabel(boolean showCurrency) |
void |
setTabIndex(int tabIndex) |
protected void |
updateCurrencyLabelVisibility() |
protected boolean |
useWrapper() |
attach, getContent, getState, getState, iterator, setFocusDelegate, setHeight, setWidth
addValueChangeListener, createValueChange, getCustomAttributes, isDifferentValue, isReadOnly, isRequiredIndicatorVisible, readDesign, setRequiredIndicatorVisible, setValue, setValue, writeDesign
addContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, beforeClientResponse, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, getActionManager, getCaption, getContextHelpText, getData, getDebugId, getDescription, getHeight, getHeightUnits, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setContextHelpText, setContextHelpTextHtmlEnabled, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setJTestId, setLocale, setParent, setPrimaryStyleName, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefined
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, addStyleNames, getCaption, getDescription, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setJTestId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected static final java.lang.String CURRENCYFIELD_STYLENAME
protected static final java.lang.String CURRENCYFIELD_LAYOUT_STYLENAME
protected static final java.lang.String CURRENCY_STYLENAME
protected static final java.lang.String CURRENCYFIELD_TEXT_STYLENAME
protected static final java.lang.String CURRENCY_VISIBLE
protected static final java.lang.String IE9_INPUT_WRAP_STYLENAME
protected com.vaadin.ui.CssLayout container
protected com.vaadin.ui.CssLayout ie9InputWrapper
protected JmixTextField textField
protected JmixLabel currencyLabel
protected java.lang.String currency
protected boolean showCurrencyLabel
protected CurrencyLabelPosition currencyLabelPosition
protected void init()
protected void initTextField()
protected void initCurrencyLabel()
protected void initLayout()
protected boolean useWrapper()
public boolean getShowCurrencyLabel()
public void setShowCurrencyLabel(boolean showCurrency)
@Nullable public java.lang.String getCurrency()
public void setCurrency(@Nullable java.lang.String currency)
protected void updateCurrencyLabelVisibility()
public CurrencyLabelPosition getCurrencyLabelPosition()
public void setCurrencyLabelPosition(CurrencyLabelPosition currencyLabelPosition)
protected com.vaadin.ui.Component initContent()
initContent
in class com.vaadin.ui.CustomField<java.lang.String>
public void focus()
focus
in interface com.vaadin.ui.Component.Focusable
focus
in class com.vaadin.ui.CustomField<java.lang.String>
public void setTabIndex(int tabIndex)
setTabIndex
in interface com.vaadin.ui.Component.Focusable
setTabIndex
in class com.vaadin.ui.CustomField<java.lang.String>
public int getTabIndex()
getTabIndex
in interface com.vaadin.ui.Component.Focusable
getTabIndex
in class com.vaadin.ui.CustomField<java.lang.String>
public void setReadOnly(boolean readOnly)
setReadOnly
in interface com.vaadin.data.HasValue<java.lang.String>
setReadOnly
in class com.vaadin.ui.AbstractField<java.lang.String>
protected void doSetValue(java.lang.String value)
doSetValue
in class com.vaadin.ui.AbstractField<java.lang.String>
public java.lang.String getValue()
public void setRequiredError(java.lang.String requiredMessage)
setRequiredError
in class com.vaadin.ui.AbstractComponent
public java.lang.String getRequiredError()
getRequiredError
in class com.vaadin.ui.AbstractComponent
public com.vaadin.server.ErrorMessage getErrorMessage()
getErrorMessage
in class com.vaadin.ui.AbstractComponent
public void setComponentError(com.vaadin.server.ErrorMessage componentError)
setComponentError
in class com.vaadin.ui.AbstractComponent
public com.vaadin.server.ErrorMessage getComponentError()
getComponentError
in class com.vaadin.ui.AbstractComponent
public com.vaadin.ui.TextField getInternalComponent()
public void setComponentErrorProvider(java.util.function.Supplier<com.vaadin.server.ErrorMessage> componentErrorProvider)
setComponentErrorProvider
in class com.vaadin.ui.AbstractComponent
public java.util.function.Supplier<com.vaadin.server.ErrorMessage> getComponentErrorProvider()
getComponentErrorProvider
in class com.vaadin.ui.AbstractComponent