de.jaret.util.ui.datechooser
Interface IFieldIdentifier

All Known Implementing Classes:
SimpleFieldIdentifier

public interface IFieldIdentifier

This interface defines a utility identifying the field (DAY_OF_MONTH, MONTH or YEAR) for a position in a text string.

Version:
$Id: IFieldIdentifier.java 498 2007-06-18 22:14:29Z olk $
Author:
Peter Kliem

Method Summary
 int getField(java.lang.String dateString, int pos)
          Identify the field in a date string.
 

Method Detail

getField

int getField(java.lang.String dateString,
             int pos)
Identify the field in a date string.

Parameters:
dateString - String representation of a date.
pos - index in the String to identify.
Returns:
-1 if no field could be identified; one of the Calendar constants: DAY_OF_MONTH, YEAR, MONTH


Copyright © 2012. All Rights Reserved.