com.irisel.swing
Class TimeField

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.TextComponent
          extended by java.awt.TextField
              extended by com.irisel.swing.IosTextField
                  extended by com.irisel.swing.TimeField
All Implemented Interfaces:
java.awt.event.FocusListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.TextListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class TimeField
extends IosTextField

Input-Field for Times.

See Also:
IoSTextField, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
static int DEFAULT_LENGTH
          Input-Field-Size in Columns.
static java.lang.String TIME_CHARSET
          Limited Character-Set of this Field.
 
Fields inherited from class com.irisel.swing.IosTextField
defaultAutoSelection, fastSetText, restoreCaretPosition, restoreCaretTested
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
TimeField()
          Constructor.
TimeField(boolean _autoFormat, boolean _keepFocus)
          Constructor defining the auto-formating and illegal-value-focus-keeping.
TimeField(int cols)
          Constructors of TimeField
TimeField(int cols, boolean _autoFormat, boolean _keepFocus)
          Constructor defining the auto-formating and illegal-value-focus-keeping.
 
Method Summary
 boolean formatValue()
          Format the Value (automatically called on lostFocus, manually called on getValue/Date()).
 java.util.Date getTime()
          Get the Time.
 java.util.Date getValue(java.util.Date time)
          Get the Value (Time).
 void setTime(java.util.Date time)
          Set the Time.
 void setValue(java.util.Date time)
          Set the Value (Time).
 
Methods inherited from class com.irisel.swing.IosTextField
addActionListener, focusGained, focusLost, getCharSet, getFormatedText, getInfoText, getNullText, getText, isDisableLocked, keyPressed, keyReleased, keyTyped, lockDisable, manuallyHandle, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, setAutoFormat, setAutoSelection, setCharSet, setEnabled, setInfoText, setKeepFocusOnIllegalValue, setText, syncGetText, textValueChanged, unlockDisabled
 
Methods inherited from class java.awt.TextField
addNotify, echoCharIsSet, getAccessibleContext, getActionListeners, getColumns, getEchoChar, getListeners, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, minimumSize, minimumSize, preferredSize, preferredSize, removeActionListener, setColumns, setEchoChar, setEchoCharacter
 
Methods inherited from class java.awt.TextComponent
addTextListener, enableInputMethods, getBackground, getCaretPosition, getInputMethodRequests, getSelectedText, getSelectionEnd, getSelectionStart, getTextListeners, isEditable, removeNotify, removeTextListener, select, selectAll, setBackground, setCaretPosition, setEditable, setSelectionEnd, setSelectionStart
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_LENGTH

public static final int DEFAULT_LENGTH
Input-Field-Size in Columns.

See Also:
Constant Field Values

TIME_CHARSET

public static final java.lang.String TIME_CHARSET
Limited Character-Set of this Field.

See Also:
Constant Field Values
Constructor Detail

TimeField

public TimeField()
Constructor.


TimeField

public TimeField(int cols)
Constructors of TimeField


TimeField

public TimeField(boolean _autoFormat,
                 boolean _keepFocus)
Constructor defining the auto-formating and illegal-value-focus-keeping.


TimeField

public TimeField(int cols,
                 boolean _autoFormat,
                 boolean _keepFocus)
Constructor defining the auto-formating and illegal-value-focus-keeping.

Method Detail

setValue

public void setValue(java.util.Date time)
Set the Value (Time).


getValue

public java.util.Date getValue(java.util.Date time)
Get the Value (Time).


setTime

public void setTime(java.util.Date time)
Set the Time.


getTime

public java.util.Date getTime()
Get the Time.


formatValue

public boolean formatValue()
Format the Value (automatically called on lostFocus, manually called on getValue/Date()).

Overrides:
formatValue in class IosTextField
Returns:
false, if formating fails due to an illegal Value (results in keeping the Focus, if requested by setKeepFocusOnIllegalValue).