Interface InternalField
-
- All Superinterfaces:
java.lang.Cloneable
,org.zkoss.zk.ui.Component
,org.zkoss.zk.ui.ext.Scope
,java.io.Serializable
- All Known Implementing Classes:
InternalDatebox
,InternalDoublebox
,InternalIntbox
,InternalMultibox
,InternalTextbox
,InternalTimebox
public interface InternalField extends org.zkoss.zk.ui.Component
A field that is contained in anAdvancedLookupField
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
clear()
Clears the value of the field.void
clearErrorMessage()
Clears the last error message.IntelligentField.ElementType
getElementType()
java.lang.Object
getObjectValue()
com.saperion.intf.SaPropertyValue
getPropertyValue()
int
getTabindex()
java.lang.String
getText()
boolean
isDisabled()
boolean
isReadonly()
boolean
isValid()
void
setDisabled(boolean disabled)
Sets the disabled-state of the field.void
setObjectValue(java.lang.Object value)
Sets the field's value.void
setPlaceholder(java.lang.String placeholder)
Sets the placeholder-text.void
setPropertyValue(com.saperion.intf.SaPropertyValue value)
Sets the field's value.default void
setPropertyValue(com.saperion.intf.SaPropertyValue value, java.lang.String separator)
Sets the field's value.void
setReadonly(boolean readonly)
Sets the readonly-state of the field.void
setTabindex(int index)
Sets the tabindex of the field.void
setText(java.lang.String text)
Sets the field's value as text.void
smartUpdate(java.lang.String attr, java.lang.Object value)
Updates the specified attribute.void
validate(java.lang.Object value)
Validates the value.-
Methods inherited from interface org.zkoss.zk.ui.Component
addEventListener, addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, detach, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientAttribute, getClientDataAttribute, getDefinition, getDesktop, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getShadowVariable, getShadowVariable, getSpaceOwner, getStubonly, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, query, queryAll, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setTemplate, setVisible, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride
-
-
-
-
Method Detail
-
setObjectValue
void setObjectValue(java.lang.Object value)
Sets the field's value. Multivalue fields accept a typedCollection
.- Parameters:
value
- new value to set
-
setPropertyValue
void setPropertyValue(com.saperion.intf.SaPropertyValue value)
Sets the field's value.- Parameters:
value
- new value to set
-
getPropertyValue
com.saperion.intf.SaPropertyValue getPropertyValue()
- Returns:
- the field's current value as
SaPropertyValue
.
-
setPropertyValue
default void setPropertyValue(com.saperion.intf.SaPropertyValue value, java.lang.String separator)
Sets the field's value.- Parameters:
value
- new value to setseparator
- use if value contains more than one value which needs to be appended
-
getObjectValue
java.lang.Object getObjectValue()
- Returns:
- the field's current value or null if the field is empty.
-
smartUpdate
void smartUpdate(java.lang.String attr, java.lang.Object value)
Updates the specified attribute.- Parameters:
attr
- name of the attributevalue
- new value of the attribute
-
validate
void validate(java.lang.Object value)
Validates the value.- Parameters:
value
- value to validate
-
clear
void clear()
Clears the value of the field.
-
getElementType
IntelligentField.ElementType getElementType()
- Returns:
- the
IntelligentField.ElementType
of the field
-
setTabindex
void setTabindex(int index)
Sets the tabindex of the field.- Parameters:
index
- the tabindex
-
getTabindex
int getTabindex()
- Returns:
- the field's tab-index
-
getText
java.lang.String getText()
- Returns:
- the field's value as text
-
setText
void setText(java.lang.String text)
Sets the field's value as text.- Parameters:
text
- value as text
-
isReadonly
boolean isReadonly()
- Returns:
- true if the field is in readonly-mode
-
isDisabled
boolean isDisabled()
- Returns:
- true if the field is disabled
-
setDisabled
void setDisabled(boolean disabled)
Sets the disabled-state of the field.- Parameters:
disabled
- disabled state
-
setReadonly
void setReadonly(boolean readonly)
Sets the readonly-state of the field.- Parameters:
readonly
- readonly state
-
isValid
boolean isValid()
- Returns:
- true if the field's content is valid
-
clearErrorMessage
void clearErrorMessage()
Clears the last error message.
-
setPlaceholder
void setPlaceholder(java.lang.String placeholder)
Sets the placeholder-text.- Parameters:
placeholder
- the placeholder text- See Also:
InputElement.setPlaceholder(String)
-
-