Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.component.ui
Class InputText

java.lang.Object
  extended by oracle.adfnmc.component.Component
      extended by oracle.adfnmc.component.ui.RenderableComponent
          extended by oracle.adfnmc.component.ui.Control
              extended by oracle.adfnmc.component.ui.BasicControl
                  extended by oracle.adfnmc.component.ui.BasicFontControl
                      extended by oracle.adfnmc.component.ui.InputText
All Implemented Interfaces:
IConvertDateTimeListener, IConvertNumberListener, RefreshablePropertyObjectOwner, ITestableComponent
Direct Known Subclasses:
BBInputText

public abstract class InputText
extends BasicFontControl
implements IConvertNumberListener, IConvertDateTimeListener

Author:
terrykan

Field Summary
protected static int DEFAULT_CURSORPOSITION
           
protected static boolean DEFAULT_FOCUSABLE
           
protected static java.lang.String DEFAULT_FOREGROUNDCOLOR
           
protected static java.lang.String DEFAULT_LABEL
           
protected static java.lang.String DEFAULT_MASK
           
protected static int DEFAULT_MAXIMUMLENGTH
           
protected static boolean DEFAULT_MULTILINE
           
protected static boolean DEFAULT_READONLY
           
protected static boolean DEFAULT_REQUIRED
           
protected static int DEFAULT_ROWS
           
protected static boolean DEFAULT_SECRET
           
protected static java.lang.String DEFAULT_SELECTION
           
protected static int DEFAULT_SELECTIONLENGTH
           
protected static int DEFAULT_SELECTIONSTART
           
protected static boolean DEFAULT_SHOWREQUIRED
           
protected static boolean DEFAULT_SIMPLE
           
protected static java.lang.String DEFAULT_VALUE
           
protected static java.lang.String DEFAULT_WIDTH_STRING
           
protected  ConvertDateTime m_convertDateTime
           
protected  ConvertNumber m_convertNumber
           
protected  StringProperty m_foregroundColorProperty
           
protected  boolean m_hasForegroundColor
           
protected  StringProperty m_labelProperty
           
protected  StringProperty m_maskProperty
           
protected  IntegerProperty m_maximumLengthProperty
           
protected  BooleanProperty m_readOnlyProperty
           
protected  BooleanProperty m_requiredProperty
           
protected  IntegerProperty m_rowsProperty
           
protected  BooleanProperty m_secretProperty
           
protected  BooleanProperty m_showRequiredProperty
           
protected  BooleanProperty m_simpleProperty
           
protected  MethodAction m_valueChangeListenerProperty
           
protected  java.lang.Class m_valueClass
           
protected  ObjectProperty m_valueProperty
           
protected  StringProperty m_wrapProperty
           
static java.lang.String SECRET_LOGGING_VALUE
           
 
Fields inherited from class oracle.adfnmc.component.ui.BasicFontControl
m_fontFamilyProperty, m_fontObject, m_fontSizeProperty, m_fontStyleProperty
 
Fields inherited from class oracle.adfnmc.component.ui.BasicControl
DEFAULT_DISABLED, DEFAULT_VISIBLE, m_disabledProperty, m_focusableProperty, m_visibleProperty
 
Fields inherited from class oracle.adfnmc.component.ui.Control
bound, cloned, container, DEFAULT_BACKGROUNDCOLOR, DEFAULT_BOTTOM, DEFAULT_FOCUSED, DEFAULT_HEIGHT, DEFAULT_HEIGHT_STRING, DEFAULT_LEFT, DEFAULT_RIGHT, DEFAULT_TOP, DEFAULT_WIDTH, embedded, has_x, has_y, m_alignProperty, m_availableHeight, m_availableWidth, m_backgroundColorProperty, m_cmpImpl, m_cookie, m_hasAlign, m_hasBackgroundColor, m_hasHeight, m_hasVerticalAlign, m_hasWidth, m_heightProperty, m_isClipped, m_isDirty, m_isHeightPercentage, m_isWidthPercentage, m_menuControls, m_multiRowContainerParent, m_tabstop, m_verticalAlignProperty, m_widthProperty, m_x, m_y, rownum
 
Fields inherited from class oracle.adfnmc.component.ui.RenderableComponent
DEFAULT_RENDERED, m_cachedRendered, m_cacheIsValid, m_renderedProperty, unregisterPropertiesOnly
 
Fields inherited from class oracle.adfnmc.component.Component
CLASS_INSTANCE, m_attributes, m_elContext, m_exprfactory, m_formatMethod, m_id, m_initialized, m_parent, m_pattern, m_props, m_screen, m_theApp, refreshableProperties
 
Constructor Summary
InputText()
           
 
Method Summary
 void addChild(Attribute child)
           
protected  void addDirtyListener()
           
 void convertDateTimeValueChanged()
           
 void convertNumberValueChanged()
           
 void endInit()
           
protected  void endInitRenderableProperties(boolean isRendered)
           
 void execute(java.lang.String command, java.util.Vector params)
           
protected  void fireValueChangeListenerEvent(java.lang.Object source, java.lang.Object oldValue, java.lang.Object newValue)
           
protected  java.lang.String fixupLabelNativeSetting(java.lang.String string)
           
abstract  boolean flushDirty()
           
 int getCursorPosition()
           
protected abstract  int getCursorPositionNative()
           
protected  boolean getDefaultFocusable()
           
 java.lang.String getForegroundColor()
           
protected abstract  java.lang.String getForegroundColorNative()
           
 java.lang.String getLabel()
           
 java.lang.String getMask()
           
protected abstract  java.lang.String getMaskNative()
           
 int getMaximumLength()
           
protected abstract  int getMaximumLengthNative()
           
protected  boolean getMultiline()
           
protected abstract  boolean getMultilineNative()
           
 boolean getReadOnly()
           
protected abstract  boolean getReadOnlyNative()
           
 boolean getRequired()
           
 java.lang.String getRequiredMessage()
           
 int getRows()
           
 boolean getSecret()
           
protected abstract  boolean getSecretNative()
           
 java.lang.String getSelection()
           
 int getSelectionLength()
           
protected abstract  int getSelectionLengthNative()
           
protected abstract  java.lang.String getSelectionNative()
           
 int getSelectionStart()
           
protected abstract  int getSelectionStartNative()
           
 boolean getShowRequired()
           
 boolean getSimple()
           
 java.lang.Object getValue()
           
protected abstract  java.lang.Object getValueNative()
           
protected  java.lang.String getWrap()
           
protected abstract  int getWrapNative()
           
protected  void handleChangeAction(int action)
           
 boolean hasBackgroundColor()
           
 boolean hasForegroundColor()
           
protected  boolean isLabeled()
          Override on controls that implement label support
protected  boolean isValueUnderlyingTypeString()
          This returns either true if the underlying type is non-null and a string
protected  void removeDirtyListener()
           
protected  void requiredChanged()
           
 void setCursorPosition(int cursorPosition)
           
protected abstract  void setCursorPositionNative(int cursorPosition)
           
protected  void setForegroundColor(java.lang.Object source, java.lang.String foregroundColor)
           
 void setForegroundColor(java.lang.String foregroundColor)
           
protected abstract  void setForegroundColorNative(java.lang.String foregroundColor)
           
protected  void setLabel(java.lang.Object source, java.lang.String label)
           
 void setLabel(java.lang.String label)
           
protected abstract  void setLabelNative(java.lang.String label)
           
protected  void setMask(java.lang.Object source, java.lang.String mask)
           
 void setMask(java.lang.String mask)
           
protected abstract  void setMaskNative(java.lang.String mask)
           
 void setMaximumLength(int maximumLength)
           
protected  void setMaximumLength(java.lang.Object source, int maximumLength)
           
protected abstract  void setMaximumLengthNative(int maximumLength)
           
 void setReadOnly(boolean readOnly)
           
protected  void setReadOnly(java.lang.Object source, boolean readOnly)
           
protected abstract  void setReadOnlyNative(boolean readOnly)
           
protected  void setRenderProperties()
           
 void setRequired(boolean required)
           
protected  void setRequired(java.lang.Object source, boolean required)
           
 void setRows(int rows)
           
protected  void setRows(java.lang.Object source, int rows)
           
protected abstract  void setRowsNative(int rows)
           
 void setSecret(boolean secret)
           
protected  void setSecret(java.lang.Object source, boolean secret)
           
protected abstract  void setSecretNative(boolean secret)
           
protected  void setSecretProperty()
           
 void setSelection(java.lang.String selection)
           
 void setSelectionLength(int selectionLength)
           
protected abstract  void setSelectionLengthNative(int selectionLength)
           
protected abstract  void setSelectionNative(java.lang.String selection)
           
 void setSelectionStart(int selectionStart)
           
protected abstract  void setSelectionStartNative(int selectionStart)
           
 void setShowRequired(boolean showRequired)
           
protected  void setShowRequired(java.lang.Object source, boolean showRequired)
           
 void setSimple(boolean simple)
           
protected  void setSimple(java.lang.Object source, boolean simple)
           
protected  void setValue(java.lang.Object source, java.lang.Object value)
           
protected abstract  void setValueNative(java.lang.Object value)
           
protected  void setWrap(java.lang.Object source, java.lang.String wrap)
           
 void setWrap(java.lang.String wrap)
           
protected abstract  void setWrapNative(int wrap)
           
protected  void showRequiredChanged()
           
protected  void simpleChanged()
           
protected  boolean textChanged(java.lang.Object source, java.lang.String value)
           
 java.lang.String toString()
           
protected static java.lang.String truncateMaximumLength(java.lang.String str, int maxLength)
           
 Control UIClone()
           
 boolean validateRequired()
           
protected  java.lang.Object valueFromString(java.lang.String value)
           
protected  java.lang.String valueToString()
           
protected  java.lang.String valueToString(java.lang.Object value)
           
 
Methods inherited from class oracle.adfnmc.component.ui.BasicFontControl
getFontFamily, getFontFamilyNative, getFontSize, getFontSizeNative, getFontStyle, getFontStyleNative, setFontFamily, setFontFamily, setFontSize, setFontSize, setFontStyle, setFontStyle, updateFont, updateFont, updateFont, updateFontNative
 
Methods inherited from class oracle.adfnmc.component.ui.BasicControl
getDisabled, getFocusable, getFocusableNative, getVisible, getVisibleNative, setDisabled, setDisabled, setDisabledNative, setFocusable, setFocusable, setFocusableNative, setValue, setVisible, setVisible, setVisibleNative
 
Methods inherited from class oracle.adfnmc.component.ui.Control
addChild, addPropertyList, backgroundColorChanged, bindMenus, clipHeight, clipWidth, determineAvailableSpace, disposeProperties, endInitRendered, focusableChanged, gainedFocus, getAlign, getAlignNative, getAvailableHeight, getAvailableWidth, getBackgroundColor, getBackgroundColorNative, getBottom, getBottomNative, getControlDepth, getCookie, getDefaultFontFamily, getDefaultFontSize, getDefaultFontStyle, getEmbedded, getFocused, getFocusedNative, getHeight, getHeightNative, getLeft, getLeftNative, getMultiRowContainer, getNativeUiComponent, getParentHeightRecursively, getParentWidthRecursively, getRight, getRightNative, getRowNum, getTop, getTopNative, getVerticalAlign, getVerticalAlignNative, getWidth, getWidthNative, hasAlign, hasHeight, hasLocation, hasVerticalAlign, hasWidth, inheritBackgroundColor, initCoreUIData, initGeometryData, isAllowedToReceiveFocus, isEmbeddedAndSelected, isNativeUiComponent, isNotRenderable, isWidthPercentage, markDirty, refreshUI, removeFromNativeParent, render, renderNative, setAlign, setAlign, setAlignNative, setBackgroundColor, setBackgroundColor, setBackgroundColorNative, setContainer, setCookie, setEmbedded, setFocus, setHeight, setHeight, setHeightNative, setMultiRowContainerParent, setParent, setRowNum, setVerticalAlign, setVerticalAlign, setVerticalAlignNative, setWidth, setWidth, setWidthNative, shiftRowNum, shouldUseParentBackgroundColor, UICloneImpl, updateBackgroundColorNative
 
Methods inherited from class oracle.adfnmc.component.ui.RenderableComponent
Focus, getRendered, handleRenderedChange, isParentRendered, isRendered, isRenderedChanged, renderedChangedNative, setRendered, setRendered, setUnregisterPropertiesOnly
 
Methods inherited from class oracle.adfnmc.component.Component
addChild, beginInit, buildValueExpression, dump, dump, dumpProps, dumpProps, dumpPropsBuffer, getDataValues, getId, getParent, getProps, getScreen, propertyInstanceCreated, refreshProperties, setChild, setChild, setId, setProp, setScreen, toFormattedString, updateRenderer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SECRET_LOGGING_VALUE

public static final java.lang.String SECRET_LOGGING_VALUE
See Also:
Constant Field Values

DEFAULT_CURSORPOSITION

protected static final int DEFAULT_CURSORPOSITION
See Also:
Constant Field Values

DEFAULT_FOCUSABLE

protected static final boolean DEFAULT_FOCUSABLE
See Also:
Constant Field Values

DEFAULT_FOREGROUNDCOLOR

protected static final java.lang.String DEFAULT_FOREGROUNDCOLOR
See Also:
Constant Field Values

DEFAULT_LABEL

protected static final java.lang.String DEFAULT_LABEL
See Also:
Constant Field Values

DEFAULT_MASK

protected static final java.lang.String DEFAULT_MASK
See Also:
Constant Field Values

DEFAULT_MAXIMUMLENGTH

protected static final int DEFAULT_MAXIMUMLENGTH
See Also:
Constant Field Values

DEFAULT_MULTILINE

protected static final boolean DEFAULT_MULTILINE
See Also:
Constant Field Values

DEFAULT_READONLY

protected static final boolean DEFAULT_READONLY
See Also:
Constant Field Values

DEFAULT_REQUIRED

protected static final boolean DEFAULT_REQUIRED
See Also:
Constant Field Values

DEFAULT_ROWS

protected static final int DEFAULT_ROWS
See Also:
Constant Field Values

DEFAULT_SECRET

protected static final boolean DEFAULT_SECRET
See Also:
Constant Field Values

DEFAULT_SELECTION

protected static final java.lang.String DEFAULT_SELECTION
See Also:
Constant Field Values

DEFAULT_SELECTIONLENGTH

protected static final int DEFAULT_SELECTIONLENGTH
See Also:
Constant Field Values

DEFAULT_SELECTIONSTART

protected static final int DEFAULT_SELECTIONSTART
See Also:
Constant Field Values

DEFAULT_SHOWREQUIRED

protected static final boolean DEFAULT_SHOWREQUIRED
See Also:
Constant Field Values

DEFAULT_SIMPLE

protected static final boolean DEFAULT_SIMPLE
See Also:
Constant Field Values

DEFAULT_VALUE

protected static final java.lang.String DEFAULT_VALUE
See Also:
Constant Field Values

DEFAULT_WIDTH_STRING

protected static final java.lang.String DEFAULT_WIDTH_STRING
See Also:
Constant Field Values

m_hasForegroundColor

protected boolean m_hasForegroundColor

m_foregroundColorProperty

protected StringProperty m_foregroundColorProperty

m_labelProperty

protected StringProperty m_labelProperty

m_maskProperty

protected StringProperty m_maskProperty

m_maximumLengthProperty

protected IntegerProperty m_maximumLengthProperty

m_readOnlyProperty

protected BooleanProperty m_readOnlyProperty

m_requiredProperty

protected BooleanProperty m_requiredProperty

m_rowsProperty

protected IntegerProperty m_rowsProperty

m_secretProperty

protected BooleanProperty m_secretProperty

m_showRequiredProperty

protected BooleanProperty m_showRequiredProperty

m_simpleProperty

protected BooleanProperty m_simpleProperty

m_valueProperty

protected ObjectProperty m_valueProperty

m_valueChangeListenerProperty

protected MethodAction m_valueChangeListenerProperty

m_wrapProperty

protected StringProperty m_wrapProperty

m_convertNumber

protected ConvertNumber m_convertNumber

m_convertDateTime

protected ConvertDateTime m_convertDateTime

m_valueClass

protected java.lang.Class m_valueClass
Constructor Detail

InputText

public InputText()
Method Detail

getDefaultFocusable

protected boolean getDefaultFocusable()
Specified by:
getDefaultFocusable in class BasicControl

addChild

public void addChild(Attribute child)
Overrides:
addChild in class Component

setSecretProperty

protected void setSecretProperty()

endInitRenderableProperties

protected void endInitRenderableProperties(boolean isRendered)
Overrides:
endInitRenderableProperties in class BasicFontControl

endInit

public void endInit()
Overrides:
endInit in class BasicFontControl

UIClone

public Control UIClone()
Specified by:
UIClone in class Control

execute

public void execute(java.lang.String command,
                    java.util.Vector params)
Specified by:
execute in interface ITestableComponent
Overrides:
execute in class RenderableComponent

toString

public java.lang.String toString()
Overrides:
toString in class Control

valueToString

protected final java.lang.String valueToString()

isValueUnderlyingTypeString

protected boolean isValueUnderlyingTypeString()
This returns either true if the underlying type is non-null and a string


valueToString

protected final java.lang.String valueToString(java.lang.Object value)

valueFromString

protected final java.lang.Object valueFromString(java.lang.String value)

hasBackgroundColor

public boolean hasBackgroundColor()
Overrides:
hasBackgroundColor in class Control

hasForegroundColor

public boolean hasForegroundColor()
Overrides:
hasForegroundColor in class Control

fixupLabelNativeSetting

protected java.lang.String fixupLabelNativeSetting(java.lang.String string)

simpleChanged

protected void simpleChanged()

showRequiredChanged

protected void showRequiredChanged()

requiredChanged

protected void requiredChanged()

getRequiredMessage

public java.lang.String getRequiredMessage()

validateRequired

public boolean validateRequired()

handleChangeAction

protected void handleChangeAction(int action)

setRenderProperties

protected void setRenderProperties()
Overrides:
setRenderProperties in class BasicFontControl

convertNumberValueChanged

public void convertNumberValueChanged()
Specified by:
convertNumberValueChanged in interface IConvertNumberListener

convertDateTimeValueChanged

public void convertDateTimeValueChanged()
Specified by:
convertDateTimeValueChanged in interface IConvertDateTimeListener

getCursorPosition

public int getCursorPosition()

setCursorPosition

public void setCursorPosition(int cursorPosition)

getForegroundColor

public java.lang.String getForegroundColor()

setForegroundColor

protected void setForegroundColor(java.lang.Object source,
                                  java.lang.String foregroundColor)

setForegroundColor

public void setForegroundColor(java.lang.String foregroundColor)

getLabel

public java.lang.String getLabel()

setLabel

protected void setLabel(java.lang.Object source,
                        java.lang.String label)

setLabel

public void setLabel(java.lang.String label)

getMask

public java.lang.String getMask()

setMask

protected void setMask(java.lang.Object source,
                       java.lang.String mask)

setMask

public void setMask(java.lang.String mask)

truncateMaximumLength

protected static java.lang.String truncateMaximumLength(java.lang.String str,
                                                        int maxLength)

getMaximumLength

public int getMaximumLength()

setMaximumLength

protected void setMaximumLength(java.lang.Object source,
                                int maximumLength)

setMaximumLength

public void setMaximumLength(int maximumLength)

getMultiline

protected boolean getMultiline()

getReadOnly

public boolean getReadOnly()

setReadOnly

protected void setReadOnly(java.lang.Object source,
                           boolean readOnly)

setReadOnly

public void setReadOnly(boolean readOnly)

getRequired

public boolean getRequired()

setRequired

protected void setRequired(java.lang.Object source,
                           boolean required)

setRequired

public void setRequired(boolean required)

getRows

public int getRows()

setRows

protected void setRows(java.lang.Object source,
                       int rows)

setRows

public void setRows(int rows)

getSecret

public boolean getSecret()

setSecret

protected void setSecret(java.lang.Object source,
                         boolean secret)

setSecret

public void setSecret(boolean secret)

getSelection

public java.lang.String getSelection()

setSelection

public void setSelection(java.lang.String selection)

getSelectionLength

public int getSelectionLength()

setSelectionLength

public void setSelectionLength(int selectionLength)

getSelectionStart

public int getSelectionStart()

setSelectionStart

public void setSelectionStart(int selectionStart)

getShowRequired

public boolean getShowRequired()

setShowRequired

protected void setShowRequired(java.lang.Object source,
                               boolean showRequired)

setShowRequired

public void setShowRequired(boolean showRequired)

getSimple

public boolean getSimple()

setSimple

protected void setSimple(java.lang.Object source,
                         boolean simple)

setSimple

public void setSimple(boolean simple)

getValue

public java.lang.Object getValue()
Specified by:
getValue in class BasicControl

fireValueChangeListenerEvent

protected void fireValueChangeListenerEvent(java.lang.Object source,
                                            java.lang.Object oldValue,
                                            java.lang.Object newValue)

textChanged

protected boolean textChanged(java.lang.Object source,
                              java.lang.String value)

setValue

protected void setValue(java.lang.Object source,
                        java.lang.Object value)
Specified by:
setValue in class BasicControl

getWrap

protected java.lang.String getWrap()

setWrap

protected void setWrap(java.lang.Object source,
                       java.lang.String wrap)

setWrap

public void setWrap(java.lang.String wrap)

addDirtyListener

protected void addDirtyListener()

removeDirtyListener

protected void removeDirtyListener()

isLabeled

protected final boolean isLabeled()
Description copied from class: Control
Override on controls that implement label support

Overrides:
isLabeled in class Control
Returns:
false for simple controls, true for those controls that can carry a label, even if a label is not assigned or the control is set to "simple" mode

flushDirty

public abstract boolean flushDirty()

getCursorPositionNative

protected abstract int getCursorPositionNative()

setCursorPositionNative

protected abstract void setCursorPositionNative(int cursorPosition)

getForegroundColorNative

protected abstract java.lang.String getForegroundColorNative()

setForegroundColorNative

protected abstract void setForegroundColorNative(java.lang.String foregroundColor)

setLabelNative

protected abstract void setLabelNative(java.lang.String label)

getMaskNative

protected abstract java.lang.String getMaskNative()

setMaskNative

protected abstract void setMaskNative(java.lang.String mask)

getMaximumLengthNative

protected abstract int getMaximumLengthNative()

setMaximumLengthNative

protected abstract void setMaximumLengthNative(int maximumLength)

getMultilineNative

protected abstract boolean getMultilineNative()

getReadOnlyNative

protected abstract boolean getReadOnlyNative()

setReadOnlyNative

protected abstract void setReadOnlyNative(boolean readOnly)

setRowsNative

protected abstract void setRowsNative(int rows)

getSecretNative

protected abstract boolean getSecretNative()

setSecretNative

protected abstract void setSecretNative(boolean secret)

getSelectionNative

protected abstract java.lang.String getSelectionNative()

setSelectionNative

protected abstract void setSelectionNative(java.lang.String selection)

getSelectionLengthNative

protected abstract int getSelectionLengthNative()

setSelectionLengthNative

protected abstract void setSelectionLengthNative(int selectionLength)

getSelectionStartNative

protected abstract int getSelectionStartNative()

setSelectionStartNative

protected abstract void setSelectionStartNative(int selectionStart)

setValueNative

protected abstract void setValueNative(java.lang.Object value)

getValueNative

protected abstract java.lang.Object getValueNative()

getWrapNative

protected abstract int getWrapNative()

setWrapNative

protected abstract void setWrapNative(int wrap)

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.