Package com.iizix
Interface IEntry
- All Superinterfaces:
IComponent
,IGProp<GProp<?>[]>
,IMessageBox
,IPropCnr
public interface IEntry extends IComponent
The IEntry interface is used for entry-capable components (such as entry field, multiple-line entry field, combobox and spin button). It is an extension of IComponent.- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from interface com.iizix.gyro.IMessageBox
IMessageBox.Icon
Field Summary
Fields inherited from interface com.iizix.IComponent
ERROR, INFORMATION, NONE, WARNING
Fields inherited from interface com.iizix.prop.IGProp
EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATE
Fields inherited from interface com.iizix.gyro.IMessageBox
ICON_ERROR, ICON_INFORMATION, ICON_MAP, ICON_NONE, ICON_QUESTION, ICON_WARNING
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
append()
Appends the current selection of the entry field to the clipboard.java.lang.String
copy()
Copies the current selection of the entry field to the clipboard.java.lang.String
cut()
Cuts the current selection of the entry field to the clipboard.java.lang.String
delete()
Deletes the current selection of the entry field.int[]
getSelection()
Gets the selection of the entry field, int[0] is the start, int[1] is the end position.int[]
getSelection(int[] returnValue)
Gets the selection of the entry field, int[0] is the start, int[1] is the end position.int
getSelectionLH()
Gets the selection of the entry field.java.lang.String
paste()
Pastes the clipboard into the current selection of the entry field.boolean
selectAll()
Sets the selection of the entire entry field, leaving the cursor at the first position.boolean
setSelection(int start, int end)
Sets the selection of the entry field from start to end positions.Methods inherited from interface com.iizix.IComponent
clearErrorMessage, getBadge, getKStringText, getLayoutMgr, getMessage, getMessageText, getStyles, getText, getTooltip, getTooltipText, getUIPanel, getUIParent, isEnabled, isReadOnly, isVisible, messageBox, requestFocus, requestFocus, requestFocusEx, requestFocusEx, setBadge, setBadge, setEnabled, setErrorMessage, setErrorMessage, setHTMLText, setLayoutMgr, setMessage, setMessage, setReadOnly, setText, setText, setTooltip, setTooltip, setVisible
Methods inherited from interface com.iizix.prop.IGProp
addPropError, addPropListener, dispose, equals, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAtomPath, getClientSessionGyro, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, getModuleFolder, getModuleFolder, getParent, getParent, getPropAtom, getPropBaseReference, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getReferences, getRelativePropName, getRootParent, getTreeLock, getValueClasses, getVSReference, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCommunicating, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropNullable, isPropPrivate, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropVirtualized, list, list, list, list, list, mapAliasToReference, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onEventSelf, onPropTreeInitialized, onRemoteEvent, removePropError, removePropListener, renameProp, resolveRuntimeReferences, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPropError, setPropExtendsFinal, setPropExtendsPrivate, setPropNullable, setPropPrivate, setPropReadOnly, setPropValue, setPropValue, severe, severe, severe, toElementString, toNativeValue, triggerRemoteEvent, triggerRemoteEvent, validateProp, validatePropType, validatePropValue, verify, verifyHasPropertyItem, warning, warning, warning
Methods inherited from interface com.iizix.gyro.IMessageBox
messageBox, messageBox
Methods inherited from interface com.iizix.prop.IPropCnr
addProp, addProp, addProp2, addProp2, canRequestFocus, canRequestFocus, canRequestFocus, containsProp, containsProp, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, enablePropCommunication, enablePropHashMap, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsError, getExtendsName, getExtendsPossibleClasses, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getPossibleChildren, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropCnr, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getString, getString, getString, getString, hasFocus, initializeExtendsFramework, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsRoot, isPropAddRemoveAllowed, isPropExtended, isSibling, removeAllProps, removeAllProps2, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, requestFocus, requestFocusEx, setBool, setBool, setBool, setBool, setExtendsName, setExtendsOverride, setInt, setInt, setInt, setLong, setLong, setLong, setLong, setNumber, setNumber, setNumber, setNumber, setProp, setProp, setProp, setProp2, setProp2, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setString, setString, setString, setString, usePropHashMap, usesPropIndex, validateClassInstances
Method Detail
setSelection
boolean setSelection(int start, int end)
Sets the selection of the entry field from start to end positions. If start is larger than end, the selection is inverted. If the start and/or end positions are larger than the contents of the field, the position in question will be set to the smaller value. The end position is exclusive when end is larger than start, otherwise the start position is exclusive.- Parameters:
start
- The start position of the selection.end
- The end position of the selection.- Returns:
- true if the selection changed, false for no change.
selectAll
boolean selectAll()
Sets the selection of the entire entry field, leaving the cursor at the first position. This is the same as callingsetSelection(length,0)
.- Returns:
- true if the selection changed, false for no change.
getSelection
int[] getSelection()
Gets the selection of the entry field, int[0] is the start, int[1] is the end position.- Returns:
- a new array of two integers.
getSelection
int[] getSelection(int[] returnValue)
Gets the selection of the entry field, int[0] is the start, int[1] is the end position.- Parameters:
returnValue
- an int array of length 2 or more. The two first int's are set to the selection positions.- Returns:
- a new array of two integers if the parameter returnValue is not of minimum length of 2, otherwise the returnValue int array.
getSelectionLH
int getSelectionLH()
Gets the selection of the entry field. Note: Do not use this method when the length of the entry field is larger than 0xFFFF or 65535. Otherwise this is the preferred method to get the selection.- Returns:
- LH, low-high words as
start=LH&0xFFFF
andend=LH>>8
.
copy
java.lang.String copy()
Copies the current selection of the entry field to the clipboard. If no selection is present, the entire entry field contents is copied to clipboard.- Returns:
- The copied string.
cut
java.lang.String cut()
Cuts the current selection of the entry field to the clipboard. If no selection is present, the entire entry field contents is cut to clipboard.- Returns:
- The cut string.
append
java.lang.String append()
Appends the current selection of the entry field to the clipboard. If no selection is present, the entire entry field contents is appended to clipboard.- Returns:
- The appended string.
paste
java.lang.String paste()
Pastes the clipboard into the current selection of the entry field. If no selection is present, the entire entry field contents is replaced with the contents of the clipboard.- Returns:
- The pasted string, or empty string if the clipboard doesn't contain a valid text format.
delete
java.lang.String delete()
Deletes the current selection of the entry field. If no selection is present, the entire entry field contents is deleted.- Returns:
- The copied string.