gui
Class TextBean

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.TextComponent
              |
              +--java.awt.TextField
                    |
                    +--gui.TextBean

public class TextBean
extends java.awt.TextField
implements java.awt.event.ActionListener, java.io.Serializable, java.awt.event.KeyListener

See Also:
Serialized Form

Fields inherited from class java.awt.TextComponent
textListener
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
TextBean()
          Constructs a TextBean
TextBean(int columns)
          Constructs a TextBean
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Process RETURN pressed events.
 void addTextBeanListener(TextBeanListener tbl)
          Adds the given listener to internal list
 java.awt.Font getFont()
          Returns the current font.
 java.awt.Dimension getMinimumSize()
           
 java.awt.Dimension getPreferredSize()
          These functions help within the BDK
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
          Detect TAB/SHIFT_TAB/SHIFT_RETURN events Note: Ordinary RETURN events are already trapped, so we don't capture them here.
 java.awt.Dimension minimumSize()
          Deprecated. provided for backward compatibility with old layout managers.
 java.awt.Dimension preferredSize()
          Deprecated. provided for backward compatibility with old layout managers.
 void removeTextBeanListener(TextBeanListener tbl)
          Removes the given listener from internal list
 void setFont(java.awt.Font f)
          Set the current font.
 void setText(java.lang.String newValue)
          Intercept setText() calls, to remember previous value (if any)
 
Methods inherited from class java.awt.TextField
addActionListener, addNotify, echoCharIsSet, getColumns, getEchoChar, getMinimumSize, getPreferredSize, minimumSize, paramString, preferredSize, processActionEvent, processEvent, removeActionListener, setColumns, setEchoChar, setEchoCharacter
 
Methods inherited from class java.awt.TextComponent
addTextListener, enableInputMethods, getCaretPosition, getSelectedText, getSelectionEnd, getSelectionStart, getText, isEditable, processTextEvent, removeNotify, removeTextListener, select, selectAll, setCaretPosition, setEditable, setSelectionEnd, setSelectionStart
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, prepareImage, prepareImage, print, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextBean

public TextBean()
Constructs a TextBean

TextBean

public TextBean(int columns)
Constructs a TextBean
Method Detail

setText

public void setText(java.lang.String newValue)
Intercept setText() calls, to remember previous value (if any)
Overrides:
setText in class java.awt.TextField

setFont

public void setFont(java.awt.Font f)
Set the current font.
Overrides:
setFont in class java.awt.Component
See Also:
getFont()

getFont

public java.awt.Font getFont()
Returns the current font.
Overrides:
getFont in class java.awt.Component
See Also:
setFont(java.awt.Font)

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Detect TAB/SHIFT_TAB/SHIFT_RETURN events Note: Ordinary RETURN events are already trapped, so we don't capture them here.
Specified by:
keyTyped in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Process RETURN pressed events.
Specified by:
actionPerformed in interface java.awt.event.ActionListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener

addTextBeanListener

public void addTextBeanListener(TextBeanListener tbl)
Adds the given listener to internal list
Parameters:
tbl - the TextBeanListener
See Also:
removeTextBeanListener(gui.TextBeanListener)

removeTextBeanListener

public void removeTextBeanListener(TextBeanListener tbl)
Removes the given listener from internal list
Parameters:
tbl - the TextBeanListener
See Also:
addTextBeanListener(gui.TextBeanListener)

getPreferredSize

public java.awt.Dimension getPreferredSize()
These functions help within the BDK
Overrides:
getPreferredSize in class java.awt.TextField

preferredSize

public java.awt.Dimension preferredSize()
Deprecated. provided for backward compatibility with old layout managers.
Overrides:
preferredSize in class java.awt.TextField

getMinimumSize

public java.awt.Dimension getMinimumSize()
Overrides:
getMinimumSize in class java.awt.TextField

minimumSize

public java.awt.Dimension minimumSize()
Deprecated. provided for backward compatibility with old layout managers.
Overrides:
minimumSize in class java.awt.TextField