vipratech.beans.userbeans
Class VTextField

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--vipratech.awt.VPanel
                          |
                          +--vipratech.beans.userbeans.VTextField

public class VTextField
extends VPanel

This Bean show a Textfield which can be use for showing passwort Interface or other Interface for reading String from it. To Read out the Value use Method getText();. If you pressed Enter than it send the the Text with the Value VTextField.

Version:
0.9, July 25, 2001
Author:
Hendrik Dathe   dathe@chemie.uni-leipzig.de
See Also:
Serialized Form

Fields inherited from class vipratech.awt.VPanel
fm
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
VTextField()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Allows property change listeners to be registered at design time.
 java.lang.String getKey()
          Returns the key for the component.
 java.lang.String getLabel()
          Method to get the Label in front of the Textfielf
 java.awt.Dimension getMinimumSize()
          Returns the minimum size of this component of width 50px, height 50px.
 java.awt.Dimension getPreferredSize()
          Returns the preferred size of this component of width 50px, height 501px.
 int getStringlength()
          Method to get the Stringlength
 java.awt.TextField getTextField()
           
 java.lang.String getTextString()
          Returns the text from the textfield
 void init()
          Method to show everything on the Screen
 boolean isLabelon()
          Method to get the status off the Label
 boolean isPassword()
          Method to get the status is password on/off
 boolean isReadonly()
          Method to get the Textfield readonly
 void propertyChange(java.beans.PropertyChangeEvent event)
          Allows this component to be wired up to vipratech.beans.LanguageChoice at design time.
 void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Allows property change listeners to be de-registered at design time.
 void setKey(java.lang.String key)
          Sets a key for the component.
 void setLabel(java.lang.String newLabel)
          Method to set the Label in front of the Textfield
 void setLabelon(boolean newLabelon)
          Method to set the Label on/off
 void setLocale(java.util.Locale locale)
          Method to set the Locale for the Textfield
 void setPassword(boolean newPassword)
          Method to set the Textfield as Passwordfield
 void setReadonly(boolean newReadonly)
          Method to set the Textfield readonly
 void setStringlength(int newStringlength)
          Method to set the Stringlength
 void setTextField(java.awt.TextField newTextField)
           
 void textField1_actionPerformed(java.awt.event.ActionEvent event)
           
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VTextField

public VTextField()
Method Detail

init

public void init()
Method to show everything on the Screen

textField1_actionPerformed

public void textField1_actionPerformed(java.awt.event.ActionEvent event)

getTextField

public java.awt.TextField getTextField()

setTextField

public void setTextField(java.awt.TextField newTextField)

setPassword

public void setPassword(boolean newPassword)
Method to set the Textfield as Passwordfield

isPassword

public boolean isPassword()
Method to get the status is password on/off

setStringlength

public void setStringlength(int newStringlength)
Method to set the Stringlength

getStringlength

public int getStringlength()
Method to get the Stringlength

setReadonly

public void setReadonly(boolean newReadonly)
Method to set the Textfield readonly

isReadonly

public boolean isReadonly()
Method to get the Textfield readonly

setLabel

public void setLabel(java.lang.String newLabel)
Method to set the Label in front of the Textfield

getLabel

public java.lang.String getLabel()
Method to get the Label in front of the Textfielf

setLabelon

public void setLabelon(boolean newLabelon)
Method to set the Label on/off

isLabelon

public boolean isLabelon()
Method to get the status off the Label

setKey

public void setKey(java.lang.String key)
Sets a key for the component. The key is used to extract a locale specific label from a key/value pair in a resource bundle.

getKey

public java.lang.String getKey()
Returns the key for the component. The key is used to extract a locale specific label from a key/value pair in a resource bundle.

getTextString

public java.lang.String getTextString()
Returns the text from the textfield

setLocale

public void setLocale(java.util.Locale locale)
Method to set the Locale for the Textfield
Overrides:
setLocale in class java.awt.Component

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
Allows this component to be wired up to vipratech.beans.LanguageChoice at design time.

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Allows property change listeners to be registered at design time.
Overrides:
addPropertyChangeListener in class java.awt.Component

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Allows property change listeners to be de-registered at design time.
Overrides:
removePropertyChangeListener in class java.awt.Component

getMinimumSize

public final java.awt.Dimension getMinimumSize()
Returns the minimum size of this component of width 50px, height 50px.
Overrides:
getMinimumSize in class java.awt.Container

getPreferredSize

public final java.awt.Dimension getPreferredSize()
Returns the preferred size of this component of width 50px, height 501px.
Overrides:
getPreferredSize in class java.awt.Container

dathe@chemie.uni-leipzig.de"

http://leipzig.vernetztes-studium.de