Interface InternalField
- All Superinterfaces:
Cloneable,org.zkoss.zk.ui.Component,org.zkoss.zk.ui.ext.Scope,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 an
AdvancedLookupField.-
Field Summary
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the value of the field.voidClears the last error message.com.saperion.intf.SaPropertyValueintgetText()booleanbooleanbooleanisValid()voidsetDisabled(boolean disabled) Sets the disabled-state of the field.voidsetObjectValue(Object value) Sets the field's value.voidsetPlaceholder(String placeholder) Sets the placeholder-text.voidsetPropertyValue(com.saperion.intf.SaPropertyValue value) Sets the field's value.default voidsetPropertyValue(com.saperion.intf.SaPropertyValue value, String separator) Sets the field's value.voidsetReadonly(boolean readonly) Sets the readonly-state of the field.voidsetTabindex(int index) Sets the tabindex of the field.voidSets the field's value as text.voidsmartUpdate(String attr, Object value) Updates the specified attribute.voidValidates 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, setWidgetOverrideMethods inherited from interface org.zkoss.zk.ui.ext.Scope
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute
-
Method Details
-
setObjectValue
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
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
Object getObjectValue()- Returns:
- the field's current value or null if the field is empty.
-
smartUpdate
Updates the specified attribute.- Parameters:
attr- name of the attributevalue- new value of the attribute
-
validate
Validates the value.- Parameters:
value- value to validate
-
clear
void clear()Clears the value of the field. -
getElementType
IntelligentField.ElementType getElementType()- Returns:
- the
IntelligentField.ElementTypeof 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
String getText()- Returns:
- the field's value as text
-
setText
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
Sets the placeholder-text.- Parameters:
placeholder- the placeholder text- See Also:
-
InputElement.setPlaceholder(String)
-