public class LookupTextField extends org.zkoss.zul.Bandbox implements IntelligentField, Identifiable, LookupField
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl
org.zkoss.zk.ui.AbstractComponent.Children
IntelligentField.ElementType
Modifier and Type | Field and Description |
---|---|
static String |
DELIMITER
Delimiter for multiedit.
|
static String |
ON_LOOKUP_SELECTED
Deprecated.
Constant has been replaced with
LookupField.ON_LOOKUP_SELECTED . |
static String |
SELECTED_ROW_ATTRIBUTE
Name of the attribute containing the selected row.
|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
ALL_EVENTS, ON_ADD_LINK, ON_ADD_LOOKUP, ON_ADD_TO_FAVORITES, ON_AFTER_QUERY, ON_BUTTON, ON_BUTTON_QUERY, ON_CANCEL, ON_CANCEL_AND, ON_CANCEL_EDIT, ON_CHANGE_DOCUMENT_SECURITY, ON_CHANGE_FOLDER_SECURITY, ON_CLEAR, ON_DELETE_SELECTED, ON_DISPLAY_POPUP, ON_DISPLAY_RESULTITEM, ON_DISPLAY_TEMPORARY_DOCUMENT, ON_DOCUMENT_ADDED, ON_DOCUMENT_CHECK, ON_DOCUMENT_FILING, ON_DOCUMENT_LOCKED, ON_DOCUMENT_RELEASE, ON_DOWNLOAD_RESULTITEM, ON_EDIT_CONTENT, ON_EDIT_FOLDER, ON_EDIT_ITEM, ON_EDIT_ITEM_SELECTED, ON_EDIT_LOOKUP, ON_EDIT_SELECTED, ON_EDIT_STRUCTURE, ON_EXPORT, ON_FAST_ACCESS_DRAG_OVER, ON_FIELD_CHANGE, ON_FILE_ACTION, ON_FILE_PREVIEW, ON_FILE_SEARCH, ON_FORM_CREATED, ON_FORM_RENDER_ERROR, ON_FORWARD, ON_IGNORE, ON_INDEX, ON_INDEX_CLEAR, ON_INDEX_RESULTITEM, ON_ITEM_DOUBLECLICK, ON_LAUNCH_WORKFLOW, ON_LOG, ON_LOGON, ON_MACRO, ON_NAVIGATION, ON_NAVIGATION_FOLDER, ON_NAVIGATION_FORM, ON_NAVIGATION_WEBPART, ON_NEW_ITEM, ON_NEW_SELECTED, ON_OK, ON_OPEN_INDEX_MASK, ON_OPEN_MASK, ON_OPEN_QUERY_MASK, ON_PASSWORD_EXPIRED, ON_PRINT_DOCUMENTS, ON_QUERY, ON_QUERY_FAVORITE, ON_REFRESH, ON_REFRESH_FOLDER, ON_RESET_GUI, ON_REVISION_CREATED, ON_SAVE_AND, ON_SAVE_DOC, ON_SAVE_FOLDER, ON_SCROLL_NODE, ON_SELECT_TREE_ITEM, ON_SELECTDDC, ON_SEND_MAIL_RESULTITEM, ON_START_WORKFLOW, ON_TAB_SELECTED, ON_UNDELETE_SELECTED, ON_UPLOAD_DOCUMENT, ON_UPLOAD_SUCCESS, ON_VARIABLES_AVAILABLE, ON_WF, ON_WF_COMMENT_DIALOG_CANCEL, ON_WF_COMMENT_DIALOG_OK, ON_WFCOMMENTS, ON_WFDELEGATE, ON_WFFORWARD, ON_WFFORWARD1, ON_WFFORWARD2, ON_WFFORWARD3, ON_WFFORWARD4, ON_WFFORWARD5, ON_WFHISTORY, ON_WFPUTBACK, ON_WFREMINDER, ON_WFTAKE, ON_WORKFLOW_ACTION, ON_WORKFLOW_COMMENT
Constructor and Description |
---|
LookupTextField()
Constructor.
|
LookupTextField(com.saperion.ngc.iform.xml.EditFieldType type,
com.saperion.ngc.iform.xml.PosType panePos,
FormMode mode,
boolean isNoLocalization)
Constructor.
|
LookupTextField(String value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCondition(String fieldName,
Object value,
com.saperion.constants.SaConstants.SaFieldType fieldType)
Adds a condition to the field that will be used to search for items displayed in the field's result list.
|
void |
addCondition(String fieldName,
Object value,
com.saperion.constants.SaConstants.SaFieldType fieldType,
boolean multiValue)
Adds a condition to the field that will be used to search for items displayed in the field's result list.
|
void |
clear()
Clears the value(s) of this field.
|
void |
clearSelectedRow()
Clears the selected row from the field.
|
void |
doChangeValue(org.zkoss.zk.ui.event.Event event) |
String |
generateUUID() |
long |
getColorError() |
long |
getColorOk() |
int |
getConditionField() |
com.saperion.ngc.iform.xml.EditFieldType |
getEditField()
Returns the EditFieldType defining the properties of this field.
|
IntelligentField.ElementType |
getElementType()
Returns the type of this element.
|
short |
getEnableMaximize() |
Set<org.zkoss.zk.ui.Component> |
getEventtarget(String eventName)
Reads the event target for the given event name, if set or the root element.
|
String |
getFieldName()
Returns the name of the field.
|
String |
getFName() |
com.saperion.ngc.iform.xml.FontType |
getFont() |
FormMode |
getFormMode() |
Integer |
getIntValue() |
Integer[] |
getIntValues() |
String |
getLimit()
Returns the limit of this field (upper, lower or both).
|
long |
getListVersion() |
com.saperion.ngc.iform.xml.OverrideKindType |
getMandatory() |
IntelligentFormView |
getParentForm()
Returns the parent form or null if this field is not part of a form.
|
com.saperion.ngc.iform.xml.PosType |
getPos() |
com.saperion.intf.SaPropertyValue |
getPropertyValue()
Returns the current value of the field as
SaPropertyValue . |
Double |
getRealValue() |
Double[] |
getRealValues() |
int |
getResFieldCnt() |
int |
getResStyle() |
FieldResultBean |
getResultBean()
Returns a bean containing the current value, type, name and limit of this field.
|
ResultProperties |
getSelectedRow()
Returns the selected row in the lookup table belonging to this lookup field.
|
short |
getVarDataType() |
int |
getWxCombo() |
int |
getWyCombo() |
int |
getXCombo() |
boolean |
isAllowInactiveLookup() |
boolean |
isAutoComplete() |
boolean |
isBEnabled() |
boolean |
isBPersistent() |
boolean |
isChanged()
Returns true if the value of this field was changed.
|
boolean |
isContentValid()
Performs a validation and returns true, if the content is valid.
|
boolean |
isEmpty() |
boolean |
isFieldInactive()
Returns the fieldInactive parameter.
|
boolean |
isHideButtons() |
boolean |
isIsVar() |
boolean |
isMultiSelect() |
boolean |
isNoLocalize()
Returns the noLocalize parameter.
|
boolean |
isPersistVar() |
boolean |
isReadonly()
gets the readonly state of this field.
|
boolean |
isRestrictCursor() |
boolean |
isSaveLayout() |
boolean |
isUseCalendar() |
boolean |
isValid() |
void |
onCancelEdit(org.zkoss.zk.ui.event.Event event)
Event handler for cancel edit event.
|
void |
onChange(org.zkoss.zk.ui.event.Event event) |
void |
onCreate(org.zkoss.zk.ui.event.Event event) |
void |
onIndexChange(org.zkoss.zk.ui.event.Event event)
Event handler for index changes.
|
void |
onIndexClear(org.zkoss.zk.ui.event.Event event)
Event handler for index clear.
|
void |
onOK(org.zkoss.zk.ui.event.Event event) |
void |
onOpen(org.zkoss.zk.ui.event.Event event) |
void |
onPageAttached(org.zkoss.zk.ui.Page newPage,
org.zkoss.zk.ui.Page oldPage) |
void |
onPageDetached(org.zkoss.zk.ui.Page page) |
void |
onVariablesAvailable(org.zkoss.zk.ui.event.Event event)
Event handler for variablesAvailableEvent.
|
void |
open() |
void |
postFieldChangeEvent(ResultProperty property)
Posts a FieldChangeEvent.
|
void |
postFormButtonEvent(ButtonInfo info)
Posts a FormButtonEvent.
|
void |
removeCondition(String fieldName)
Removes a condition from the field.
|
void |
setAlign(com.saperion.ngc.iform.xml.AlignType value) |
void |
setAllowInactiveLookup(boolean value) |
void |
setAutoComplete(boolean value) |
void |
setBEnabled(boolean value) |
void |
setBPersistent(boolean value) |
void |
setChangedImplicitly()
Sets the changed-property of this field to true.
|
void |
setChangedImplicitly(boolean fireChangedEvent)
Sets the changed-property of this field to true.
|
void |
setColorError(long value) |
void |
setColorOk(long value) |
void |
setConditionField(int value) |
void |
setDefaultValue(String valueAsString)
Sets the default value.
|
void |
setDisabled(boolean disabled)
Sets the disabled state of this field.
|
void |
setEnableMaximize(short value) |
void |
setEventOnOk(ButtonInfo.EventType type)
Starts event handling on enter key.
|
void |
setEventtarget(org.zkoss.zk.ui.Component comp,
String eventName)
Set the event target.
|
void |
setFieldInactive(boolean inactive)
Sets the fieldInactive parameter.
|
void |
setFieldName(String name)
Sets the name of the field.
|
void |
setFName(String value) |
void |
setFont(com.saperion.ngc.iform.xml.FontType value) |
void |
setHideButtons(boolean value) |
void |
setIsVar(boolean value) |
void |
setLimit(String value)
Sets the limit type.
|
void |
setListVersion(long value) |
void |
setMandatory(com.saperion.ngc.iform.xml.OverrideKindType value) |
void |
setMultiSearchItems(String[] values)
Sets the values to display for multi-selection.
|
void |
setNoLocalize(boolean value)
Sets the noLocalize parameter that can be used to disable localization of this component.
|
void |
setPersistVar(boolean value) |
void |
setPos(com.saperion.ngc.iform.xml.PosType value) |
void |
setReadonly(boolean readonly)
Sets the readonle state of this field.
|
void |
setResFieldCnt(int value) |
void |
setResStyle(int value) |
void |
setRestrictCursor(boolean value) |
void |
setSaveLayout(boolean value) |
void |
setText(String value) |
void |
setUseCalendar(boolean value) |
void |
setValue(com.saperion.intf.SaPropertyValue val)
Sets the value of this field.
|
void |
setValueImplicitly(com.saperion.intf.SaPropertyValue val)
Sets the value of this field and sets the changed-property of this field to true.
|
void |
setValueImplicitly(com.saperion.intf.SaPropertyValue value,
boolean fireChangedEvent)
Sets the value of this field and sets the changed-property of this field to true.
|
void |
setVarDataType(short value) |
void |
setWxCombo(int value) |
void |
setWyCombo(int value) |
void |
setXCombo(int value) |
String |
toString() |
void |
updateAttribute(String attr,
Object value)
Performs a smartUpdate on the specified attribute.
|
void |
validate()
Starts validation of the field.
|
beforeChildAdded, close, getDropdown, getIconSclass, getPopupWidth, getZclass, isAutodrop, isButtonVisible, isChildable, isOpen, renderProperties, service, setAutodrop, setButtonVisible, setIconSclass, setMultiline, setOpen, setPopupWidth, setRows
checkBeforeSetRows, clone, coerceFromString, coerceToString, getPropertyAccess, getRows, getType, getValue, isMultiline, isSubmitByEnter, isTabbable, setHeight, setSubmitByEnter, setTabbable, setType, setValue, setVflex
checkUserError, clearErrorMessage, clearErrorMessage, getCols, getConstraint, getErrorboxIconSclass, getErrorboxSclass, getErrorMessage, getInputAttributes, getInstant, getMaxlength, getName, getPlaceholder, getRawText, getRawValue, getTargetValue, getText, isDisabled, isInplace, isInstant, marshall, onWrongValue, select, setCols, setConstraint, setConstraint, setErrorboxIconSclass, setErrorboxSclass, setErrorMessage, setInplace, setInputAttributes, setInputAttributes, setInsertedText, setInstant, setMaxlength, setName, setPlaceholder, setRawValue, setSelectedText, setSelectionRange, setValueDirectly, showCustomError, unmarshall, validate
getContext, getCtrlKeys, getPopup, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
addSclass, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
attachClientScripts, attachScripts, attachServerScripts, clearErrorMessage, detachScripts, focus, getTabindex, setTabindex
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
public static final String SELECTED_ROW_ATTRIBUTE
@Deprecated public static final String ON_LOOKUP_SELECTED
LookupField.ON_LOOKUP_SELECTED
.public static final String DELIMITER
public LookupTextField(com.saperion.ngc.iform.xml.EditFieldType type, com.saperion.ngc.iform.xml.PosType panePos, FormMode mode, boolean isNoLocalization) throws SystemException, AuthenticationException
type
- Field typepanePos
- Pane positionmode
- the mode of the parent formisNoLocalization
- isNoLocalizationAuthenticationException
- authentication error when creating fieldSystemException
- system exception when creating fieldpublic LookupTextField() throws SystemException, AuthenticationException
public LookupTextField(String value)
value
- Value throws WrongValueException Wrong valuepublic void open()
open
in class org.zkoss.zul.Bandbox
Bandbox.open()
public void onOpen(org.zkoss.zk.ui.event.Event event)
event
- Open eventpublic void onCreate(org.zkoss.zk.ui.event.Event event)
event
- Create event.public void onChange(org.zkoss.zk.ui.event.Event event)
event
- Change event.public void onOK(org.zkoss.zk.ui.event.Event event)
event
- OK event.public void onPageAttached(org.zkoss.zk.ui.Page newPage, org.zkoss.zk.ui.Page oldPage)
onPageAttached
in interface org.zkoss.zk.ui.sys.ComponentCtrl
onPageAttached
in class org.zkoss.zk.ui.AbstractComponent
AbstractComponent.onPageAttached(org.zkoss.zk.ui.Page,
org.zkoss.zk.ui.Page)
public void onPageDetached(org.zkoss.zk.ui.Page page)
onPageDetached
in interface org.zkoss.zk.ui.sys.ComponentCtrl
onPageDetached
in class org.zkoss.zk.ui.AbstractComponent
AbstractComponent.onPageDetached(org.zkoss.zk.ui.Page)
public void onIndexChange(org.zkoss.zk.ui.event.Event event)
onIndexChange
in interface IntelligentField
event
- EventIntelligentField.onIndexChange(org.zkoss.zk.ui.event.Event)
public void onVariablesAvailable(org.zkoss.zk.ui.event.Event event)
IntelligentFormView.getIndexMaskDocument()
.onVariablesAvailable
in interface IntelligentField
event
- EventIntelligentField.onVariablesAvailable(org.zkoss.zk.ui.event.Event)
public void onCancelEdit(org.zkoss.zk.ui.event.Event event)
onCancelEdit
in interface IntelligentField
event
- eventIntelligentField.onCancelEdit(org.zkoss.zk.ui.event.Event)
public void setValue(com.saperion.intf.SaPropertyValue val)
setValue
in interface IntelligentField
val
- valueIntelligentField.setValue(com.saperion.intf.SaPropertyValue)
public com.saperion.intf.SaPropertyValue getPropertyValue()
IntelligentField
SaPropertyValue
.getPropertyValue
in interface IntelligentField
public void setText(String value) throws org.zkoss.zk.ui.WrongValueException
setText
in class org.zkoss.zul.impl.InputElement
org.zkoss.zk.ui.WrongValueException
public void setValueImplicitly(com.saperion.intf.SaPropertyValue val)
setValueImplicitly
in interface IntelligentField
val
- valueIntelligentField.setValueImplicitly(com.saperion.intf.SaPropertyValue)
public void setValueImplicitly(com.saperion.intf.SaPropertyValue value, boolean fireChangedEvent)
setValueImplicitly
in interface IntelligentField
value
- valuefireChangedEvent
- if true, a Events.ON_CHANGE
event will be fired after the value was setIntelligentField.setValueImplicitly(com.saperion.intf.SaPropertyValue, boolean)
public Integer getIntValue()
public Double getRealValue()
public Integer[] getIntValues()
public Double[] getRealValues()
public boolean isMultiSelect()
public void onIndexClear(org.zkoss.zk.ui.event.Event event)
onIndexClear
in interface IntelligentField
event
- EventIntelligentField.onIndexClear(org.zkoss.zk.ui.event.Event)
public boolean isChanged()
isChanged
in interface IntelligentField
IntelligentField.isChanged()
public void setEventOnOk(ButtonInfo.EventType type)
setEventOnOk
in interface IntelligentField
type
- Event typeIntelligentField.setEventOnOk(com.saperion.ngc.iform.button.ButtonInfo.EventType)
public void doChangeValue(org.zkoss.zk.ui.event.Event event)
doChangeValue
in interface IntelligentField
event
- EventIntelligentField.doChangeValue(org.zkoss.zk.ui.event.Event)
public long getColorError()
EditFieldType.getColorError()
public long getColorOk()
EditFieldType.getColorOk()
public int getConditionField()
EditFieldType.getConditionField()
public short getEnableMaximize()
EditFieldType.getEnableMaximize()
public String getFName()
EditFieldType.getFName()
public com.saperion.ngc.iform.xml.FontType getFont()
EditFieldType.getFont()
public String getLimit()
IntelligentField
getLimit
in interface IntelligentField
EditFieldType.getLimit()
public long getListVersion()
EditFieldType.getListVersion()
public com.saperion.ngc.iform.xml.OverrideKindType getMandatory()
EditFieldType.getMandatory()
public com.saperion.ngc.iform.xml.PosType getPos()
EditFieldType.getPos()
public int getResFieldCnt()
EditFieldType.getResFieldCnt()
public int getResStyle()
EditFieldType.getResStyle()
public short getVarDataType()
EditFieldType.getVarDataType()
public int getWxCombo()
EditFieldType.getWxCombo()
public int getWyCombo()
EditFieldType.getWyCombo()
public int getXCombo()
EditFieldType.getXCombo()
public boolean isAllowInactiveLookup()
EditFieldType.isAllowInactiveLookup()
public boolean isAutoComplete()
EditFieldType.isAutoComplete()
public boolean isBEnabled()
EditFieldType.isBEnabled()
public boolean isBPersistent()
EditFieldType.isBPersistent()
public boolean isHideButtons()
EditFieldType.isHideButtons()
public boolean isIsVar()
EditFieldType.isIsVar()
public boolean isPersistVar()
EditFieldType.isPersistVar()
public boolean isRestrictCursor()
EditFieldType.isRestrictCursor()
public boolean isSaveLayout()
EditFieldType.isSaveLayout()
public boolean isUseCalendar()
EditFieldType.isUseCalendar()
public void setAlign(com.saperion.ngc.iform.xml.AlignType value)
value
- ValueEditFieldType.setAlign(com.saperion.ngc.iform.xml.AlignType)
public void setAllowInactiveLookup(boolean value)
value
- ValueEditFieldType.setAllowInactiveLookup(boolean)
public void setAutoComplete(boolean value)
value
- ValueEditFieldType.setAutoComplete(boolean)
public void setBEnabled(boolean value)
value
- ValueEditFieldType.setBEnabled(boolean)
public void setBPersistent(boolean value)
value
- ValueEditFieldType.setBPersistent(boolean)
public void setColorError(long value)
value
- ValueEditFieldType.setColorError(long)
public void setColorOk(long value)
value
- ValueEditFieldType.setColorOk(long)
public void setConditionField(int value)
value
- ValueEditFieldType.setConditionField(int)
public void setEnableMaximize(short value)
value
- ValueEditFieldType.setEnableMaximize(short)
public void setFName(String value)
value
- ValueEditFieldType.setFName(java.lang.String)
public void setFont(com.saperion.ngc.iform.xml.FontType value)
value
- ValueEditFieldType.setFont(com.saperion.ngc.iform.xml.FontType)
public void setHideButtons(boolean value)
value
- ValueEditFieldType.setHideButtons(boolean)
public void setIsVar(boolean value)
value
- ValueEditFieldType.setIsVar(boolean)
public void setLimit(String value)
IntelligentField
setLimit
in interface IntelligentField
value
- ValueEditFieldType.setLimit(com.saperion.ngc.iform.xml.LimitType)
public void setListVersion(long value)
value
- ValueEditFieldType.setListVersion(long)
public void setMandatory(com.saperion.ngc.iform.xml.OverrideKindType value)
value
- ValueEditFieldType.setMandatory(com.saperion.ngc.iform.xml.OverrideKindType)
public void setPersistVar(boolean value)
value
- ValueEditFieldType.setPersistVar(boolean)
public void setPos(com.saperion.ngc.iform.xml.PosType value)
value
- ValueEditFieldType.setPos(com.saperion.ngc.iform.xml.PosType)
public void setResFieldCnt(int value)
value
- ValueEditFieldType.setResFieldCnt(int)
public void setResStyle(int value)
value
- ValueEditFieldType.setResStyle(int)
public void setRestrictCursor(boolean value)
value
- ValueEditFieldType.setRestrictCursor(boolean)
public void setSaveLayout(boolean value)
value
- ValueEditFieldType.setSaveLayout(boolean)
public void setUseCalendar(boolean value)
value
- ValueEditFieldType.setUseCalendar(boolean)
public void setVarDataType(short value)
value
- ValueEditFieldType.setVarDataType(short)
public void setWxCombo(int value)
value
- ValueEditFieldType.setWxCombo(int)
public void setWyCombo(int value)
value
- ValueEditFieldType.setWyCombo(int)
public void setXCombo(int value)
value
- ValueEditFieldType.setXCombo(int)
public IntelligentField.ElementType getElementType()
IntelligentField.ElementType
for a list of types.getElementType
in interface IntelligentField
IntelligentField.getElementType()
public FieldResultBean getResultBean()
getResultBean
in interface IntelligentField
IntelligentField.getResultBean()
public Set<org.zkoss.zk.ui.Component> getEventtarget(String eventName)
getEventtarget
in interface EventChild
eventName
- Event name or null for main targetEventChild.getEventtarget(java.lang.String)
public void setEventtarget(org.zkoss.zk.ui.Component comp, String eventName)
setEventtarget
in interface EventChild
comp
- Event targeteventName
- Event name or null for main targetEventChild.setEventtarget(org.zkoss.zk.ui.Component,
java.lang.String)
public void postFormButtonEvent(ButtonInfo info)
info
- information about the button pressed.EventChildHandler.postFormButtonEvent(com.saperion.ngc.iform.button.ButtonInfo)
public void postFieldChangeEvent(ResultProperty property)
property
- the property that was changedEventChildHandler.postFieldChangeEvent(com.saperion.ngc.model.resultset.ResultProperty)
public String getFieldName()
getFieldName
in interface IntelligentField
IntelligentField.getFieldName()
public boolean isContentValid()
isContentValid
in interface IntelligentField
IntelligentField.isContentValid()
public boolean isValid()
isValid
in class org.zkoss.zul.impl.InputElement
InputElement.isValid()
public com.saperion.ngc.iform.xml.EditFieldType getEditField()
getEditField
in interface IntelligentField
IntelligentField.getEditField()
public void setDefaultValue(String valueAsString)
setDefaultValue
in interface IntelligentField
valueAsString
- string representation of valueIntelligentField.setDefaultValue(java.lang.String)
public void setFieldInactive(boolean inactive)
setReadonly(inactive)
.setFieldInactive
in interface IntelligentField
inactive
- valueIntelligentField.setFieldInactive(boolean)
public void setReadonly(boolean readonly)
setReadonly
in interface IntelligentField
setReadonly
in interface org.zkoss.zk.ui.ext.Readonly
setReadonly
in class org.zkoss.zul.impl.InputElement
readonly
- readonlyInputElement.setReadonly(boolean)
public boolean isReadonly()
isReadonly
in interface IntelligentField
isReadonly
in interface org.zkoss.zk.ui.ext.Readonly
isReadonly
in class org.zkoss.zul.impl.InputElement
InputElement.setReadonly(boolean)
public boolean isFieldInactive()
isFieldInactive
in interface IntelligentField
IntelligentField.isFieldInactive()
public void setDisabled(boolean disabled)
setDisabled
in interface IntelligentField
setDisabled
in interface org.zkoss.zk.ui.ext.Disable
setDisabled
in class org.zkoss.zul.impl.InputElement
disabled
- DisabledInputElement.setDisabled(boolean)
public void setFieldName(String name)
setFieldName
in interface IntelligentField
name
- field nameIntelligentField.setFieldName(java.lang.String)
public void validate()
validate
in interface IntelligentField
IntelligentField.validate()
public IntelligentFormView getParentForm()
getParentForm
in interface IntelligentField
IntelligentField.getParentForm()
public void setChangedImplicitly()
setChangedImplicitly
in interface IntelligentField
IntelligentField.setChangedImplicitly()
public void setChangedImplicitly(boolean fireChangedEvent)
setChangedImplicitly
in interface IntelligentField
fireChangedEvent
- if true, a Events.ON_CHANGE
event will be firedIntelligentField.setChangedImplicitly(boolean)
public void updateAttribute(String attr, Object value)
updateAttribute
in interface IntelligentField
attr
- attribute namevalue
- attribute valueIntelligentField.updateAttribute(java.lang.String,
java.lang.Object)
public boolean isNoLocalize()
isNoLocalize
in interface Localized
Localized.isNoLocalize()
public void setNoLocalize(boolean value)
setNoLocalize
in interface Localized
value
- valueLocalized.setNoLocalize(boolean)
public void setMultiSearchItems(String[] values)
LookupTextField
on how to
enable multiselection mode.values
- Values to show in multiselect-popuppublic String generateUUID()
generateUUID
in interface Identifiable
Identifiable.generateUUID()
public String toString()
toString
in class org.zkoss.zk.ui.AbstractComponent
AbstractComponent.toString()
public boolean isEmpty()
isEmpty
in interface IntelligentField
IntelligentField.isEmpty()
public void addCondition(String fieldName, Object value, com.saperion.constants.SaConstants.SaFieldType fieldType)
fieldName
- the name of the field to checkvalue
- the value to check forfieldType
- the type of the field (an SaConstants.SaFieldType
)public void addCondition(String fieldName, Object value, com.saperion.constants.SaConstants.SaFieldType fieldType, boolean multiValue)
fieldName
- the name of the field to checkvalue
- the value to check forfieldType
- the type of the field (an SaConstants.SaFieldType
)multiValue
- whether the field used in the condition is a multivalue-field or notpublic void removeCondition(String fieldName)
fieldName
- name of the field to remove the condition forpublic ResultProperties getSelectedRow()
LookupField
getSelectedRow
in interface LookupField
ResultProperties
containing the selected row or null, if no
row was selected so farpublic void clearSelectedRow()
LookupField
clearSelectedRow
in interface LookupField
public void clear()
IntelligentField
clear
in interface IntelligentField
Copyright © 2021 Hyland Software Germany GmbH. All rights reserved.