com.sibvisions.rad.ui.swing.impl.component
Class SwingTextField<C extends JTextField>

java.lang.Object
  extended by com.sibvisions.rad.ui.awt.impl.AwtResource<C>
      extended by com.sibvisions.rad.ui.awt.impl.AwtComponent<C>
          extended by com.sibvisions.rad.ui.awt.impl.AwtContainer<C>
              extended by com.sibvisions.rad.ui.swing.impl.SwingComponent<C>
                  extended by com.sibvisions.rad.ui.swing.impl.SwingScrollComponent<C,TC>
                      extended by com.sibvisions.rad.ui.swing.impl.component.SwingTextComponent<C,C>
                          extended by com.sibvisions.rad.ui.swing.impl.component.SwingTextField<C>
Type Parameters:
C - the instanceof JTextField
All Implemented Interfaces:
ComponentListener, KeyListener, MouseListener, EventListener, ILabel, ITextField, IAlignmentConstants, IComponent, IContainer, IResource, INamedObject
Direct Known Subclasses:
SwingPasswordField

public class SwingTextField<C extends JTextField>
extends SwingTextComponent<C,C>
implements ITextField

The SwingTextField is the ITextField implementation for swing.

See Also:
TextField, JTextField

Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.swing.impl.SwingScrollComponent
component
 
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent
eventComponentMoved, eventComponentResized, eventSource, factory, parent
 
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource
resource
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
  SwingTextField()
          Creates a new instance of SwingTextField.
protected SwingTextField(C pTextField)
          Creates a new instance of SwingTextField.
 
Method Summary
 int getColumns()
          Returns the number of columns in this ITextField.
 void setColumns(int pColumns)
          Sets the number of columns in this ITextField, and then invalidate the layout.
 void setHorizontalAlignment(int pHorizontalAlignment)
          Sets the horizontal alignment.
 
Methods inherited from class com.sibvisions.rad.ui.swing.impl.component.SwingTextComponent
getText, isBorderVisible, isEditable, selectAll, setBorderVisible, setEditable, setText
 
Methods inherited from class com.sibvisions.rad.ui.swing.impl.SwingScrollComponent
getBackground, getComponent, getCursor, getFont, getForeground, getName, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setForeground, setName, setToolTipText
 
Methods inherited from class com.sibvisions.rad.ui.swing.impl.SwingComponent
capture
 
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtContainer
add, add, add, add, addIntern, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, removeIntern, setLayout, setLayoutIntern
 
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent
componentHidden, componentMoved, componentResized, componentShown, createImage, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBounds, getEventSource, getFactory, getHorizontalAlignment, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getParent, getPreferredSize, getSize, getVerticalAlignment, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, setBounds, setEventSource, setFactory, setLocation, setLocationRelativeTo, setMaximumSize, setMinimumSize, setParent, setPreferredSize, setSize, setVerticalAlignment, setVisible, validate
 
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource
equals, getResource, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.component.ITextField
isBorderVisible, isEditable, selectAll, setBorderVisible, setEditable
 
Methods inherited from interface javax.rad.ui.component.ILabel
getText, setText
 
Methods inherited from interface javax.rad.ui.IComponent
capture, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocationRelativeTo, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 
Methods inherited from interface javax.rad.ui.IAlignmentConstants
getHorizontalAlignment, getVerticalAlignment, setVerticalAlignment
 

Constructor Detail

SwingTextField

protected SwingTextField(C pTextField)
Creates a new instance of SwingTextField.

Parameters:
pTextField - instance of JTextField

SwingTextField

public SwingTextField()
Creates a new instance of SwingTextField.

Method Detail

getColumns

public int getColumns()
Returns the number of columns in this ITextField.

Specified by:
getColumns in interface ITextField
Returns:
the number of columns >= 0

setColumns

public void setColumns(int pColumns)
Sets the number of columns in this ITextField, and then invalidate the layout.

Specified by:
setColumns in interface ITextField
Parameters:
pColumns - the number of columns >= 0

setHorizontalAlignment

public void setHorizontalAlignment(int pHorizontalAlignment)
Sets the horizontal alignment. Possible values are defined in AlignmentConstants.

Specified by:
setHorizontalAlignment in interface IAlignmentConstants
Overrides:
setHorizontalAlignment in class AwtComponent<C extends JTextField>
Parameters:
pHorizontalAlignment - the new vertical alignment


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.