com.ibm.dse.desktop
Class TextField

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.text.JTextComponent
                          |
                          +--javax.swing.JTextField
                                |
                                +--com.ibm.dse.gui.SpTextField
                                      |
                                      +--com.ibm.dse.desktop.TextField
Direct Known Subclasses:
DateField, TaskLauncherTextField, Timer

public class TextField
extends SpTextField

The TextField class provides a text field that can be added to the desktop area.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JTextField
javax.swing.JTextField.AccessibleJTextField
 
Inner classes inherited from class javax.swing.text.JTextComponent
javax.swing.text.JTextComponent.AccessibleJTextComponent, javax.swing.text.JTextComponent.KeyBinding
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Fields inherited from class javax.swing.JTextField
notifyAction
 
Fields inherited from class javax.swing.text.JTextComponent
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
TextField()
          TextField constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Handles events for the ActionListener interface.
 void focusLostActions()
          Avoids the actions that the SpTextFieldParent has, doing nothing.
 java.lang.Boolean getFocusTraversable()
          This method return if th eTextField could have or not the focus.
 java.lang.String getHotKey()
          Gets the hotKey.
 java.lang.Boolean getRequestFocusEnabled()
          Returns the focus enabled property.
 boolean isFocusTraversable()
          Returns the focus traversable property.
 void setFocusTraversable(java.lang.Object o)
          Sets the focus traversable property.
 void setHeight(java.lang.Object o)
          Sets the height of the TextField.
 void setHorizontalAlignment(java.lang.Object o)
          Sets the horizontal alignment of the TextField.
 void setHotKey(java.lang.Object o)
          Sets the hotkey (keyboard shortcut) of the TextField.
 void setId(java.lang.Object o)
          Sets the ID (name) for this TextField.
 void setName(java.lang.Object o)
          Sets the name of the TextField.
 void setOnInitialize(java.lang.Object o)
          Sets the specified Java script code that is executed when the component is initialized.
 void setText(java.lang.Object o)
          Sets the text of the TextField.
 void setWidth(java.lang.Object o)
          Sets the width of the TextField.
 void setX(java.lang.Object o)
          Sets the x coordinate for the location of the TextField.
 void setY(java.lang.Object o)
          Sets the y coordinate for the location of the TextField.
 
Methods inherited from class com.ibm.dse.gui.SpTextField
actionPerformed, addCoordinatedEventListener, addDataChangedListener, addErrorMessageListener, calculateValueInTargetCurrency, checkMaxCharIfNecessary, convertCurrency, convertFromEuros, convertToEuros, evaluateText, executeBeanReactions, fireCoordinationEvent, fireCoordinationEvent, fireHandleDataChanged, fireHandleDataChanged, fireHandleErrorMessage, focusGained, focusGainedActions, focusLost, getActivatedOkKey, getAllColors, getAlternativeDataName, getAutoClear, getAutoTab, getBeansReactions, getConverter, getConvertible, getDataDirection, getDataName, getDataToClear, getDataValue, getDSECoordinatedPanel, getErrorMessage, getErrorMessageFocusGained, getFormatter, getHelpID, getInError, getKeystroke, getMaxChars, getMinChars, getNavigationParameters, getRequired, getSourceValueForConversion, getSourceValueForConversion2, getSpPanel, getType, getUserInput, getValueInEMUCurrency, getValueInEuros, hasAlternativeDataName, isCursorKeyCode, isInError, isKeyedValue, isRequired, key, keyPressed, main, paint, processComponentKeyEvent, processKeyEvent, removeCoordinatedEventListener, removeDataChangedListener, removeErrorMessageListener, setActivatedOkKey, setAllColors, setAlternativeDataName, setAutoClear, setAutoTab, setBeansReactions, setColors, setConvertible, setDataDirection, setDataName, setDataToClear, setDataValue, setEditable, setEnabled, setErrorMessageFocusGained, setErrorMessageFocusGained, setFormatter, setHelpID, setInError, setKeystroke, setMaxChars, setMinChars, setNavigationParameters, setRequired, setType, setUserInput, setValueInEMUCurrency, setValueInEuros, setVisible, transferFocusIfNecessary, updateValues, vetoableChange
 
Methods inherited from class javax.swing.JTextField
addActionListener, createDefaultModel, fireActionPerformed, getAccessibleContext, getActions, getColumns, getColumnWidth, getHorizontalAlignment, getHorizontalVisibility, getPreferredSize, getScrollOffset, getUIClassID, isValidateRoot, paramString, postActionEvent, removeActionListener, scrollRectToVisible, setActionCommand, setColumns, setFont, setHorizontalAlignment, setScrollOffset
 
Methods inherited from class javax.swing.text.JTextComponent
addCaretListener, addInputMethodListener, addKeymap, copy, cut, fireCaretUpdate, getCaret, getCaretColor, getCaretPosition, getDisabledTextColor, getDocument, getFocusAccelerator, getHighlighter, getInputMethodRequests, getKeymap, getKeymap, getMargin, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getText, getText, getUI, isEditable, isOpaque, loadKeymap, modelToView, moveCaretPosition, paste, processInputMethodEvent, read, removeCaretListener, removeKeymap, removeNotify, replaceSelection, select, selectAll, setCaret, setCaretColor, setCaretPosition, setComponentOrientation, setDisabledTextColor, setDocument, setFocusAccelerator, setHighlighter, setKeymap, setMargin, setOpaque, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setText, setUI, updateUI, viewToModel, write
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isLightweightComponent, isManagingFocus, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, processFocusEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setCursor, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextField

public TextField()
TextField constructor. Sets the text and the background to a non editable.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Handles events for the ActionListener interface.
Overrides:
actionPerformed in class SpTextField
Parameters:
e - java.awt.event.ActionEvent

focusLostActions

public void focusLostActions()
Avoids the actions that the SpTextFieldParent has, doing nothing.
Overrides:
focusLostActions in class SpTextField

getFocusTraversable

public java.lang.Boolean getFocusTraversable()
This method return if th eTextField could have or not the focus.
Returns:
java.lang.Boolean

getHotKey

public java.lang.String getHotKey()
Gets the hotKey.
Returns:
java.lang.String

getRequestFocusEnabled

public java.lang.Boolean getRequestFocusEnabled()
Returns the focus enabled property.
Returns:
java.lang.Boolean

isFocusTraversable

public boolean isFocusTraversable()
Returns the focus traversable property.
Overrides:
isFocusTraversable in class javax.swing.text.JTextComponent
Returns:
boolean

setFocusTraversable

public void setFocusTraversable(java.lang.Object o)
Sets the focus traversable property.
Parameters:
o - java.lang.Object

setHeight

public void setHeight(java.lang.Object o)
Sets the height of the TextField.
Parameters:
o - java.lang.Object

setHorizontalAlignment

public void setHorizontalAlignment(java.lang.Object o)
Sets the horizontal alignment of the TextField. 0 => center 2 => left 4 => right
Parameters:
o - java.lang.Object

setHotKey

public void setHotKey(java.lang.Object o)
Sets the hotkey (keyboard shortcut) of the TextField.
Parameters:
o - java.lang.Object

setId

public void setId(java.lang.Object o)
Sets the ID (name) for this TextField.
Parameters:
o - java.lang.Object

setName

public void setName(java.lang.Object o)
Sets the name of the TextField.
Parameters:
o - java.lang.Object

setOnInitialize

public void setOnInitialize(java.lang.Object o)
Sets the specified Java script code that is executed when the component is initialized.
Parameters:
o - java.lang.Object

setText

public void setText(java.lang.Object o)
Sets the text of the TextField.
Parameters:
o - java.lang.Object

setWidth

public void setWidth(java.lang.Object o)
Sets the width of the TextField.
Parameters:
o - java.lang.Object

setX

public void setX(java.lang.Object o)
Sets the x coordinate for the location of the TextField.
Parameters:
o - java.lang.Object

setY

public void setY(java.lang.Object o)
Sets the y coordinate for the location of the TextField.
Parameters:
o - java.lang.Object