|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.jaret.util.ui.datechooser.SimpleFieldIdentifier
public class SimpleFieldIdentifier
Simple implementation of the FieldIdentifier interface for the jaret datechooser.
| Field Summary | |
|---|---|
protected int[] |
_fields
field mapping. |
protected java.lang.String |
_separators
default separators. |
| Constructor Summary | |
|---|---|
SimpleFieldIdentifier(int[] fields)
See SimpleFieldIdentifier(String, int[]). |
|
SimpleFieldIdentifier(java.lang.String separators,
int[] fields)
Construct a new instance. |
|
| Method Summary | |
|---|---|
int |
getField(java.lang.String dateString,
int pos)
Identify the field in a date string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String _separators
protected int[] _fields
| Constructor Detail |
|---|
public SimpleFieldIdentifier(java.lang.String separators,
int[] fields)
FieldIdentifier fi = new SimpleFieldIdentifier(".", new int[] {Calendar.DAY_OF_MONTH, Calendar.MONTH, Calendar.YEAR});
separators - characters used as field seperators. Default is "./" (used if the argument is null.fields - array of field identifying int values. Parsing will only be succesful if the number of fields is matched exactly.public SimpleFieldIdentifier(int[] fields)
SimpleFieldIdentifier(String, int[]).
Default separators will be used.
fields - field mappings| Method Detail |
|---|
public int getField(java.lang.String dateString,
int pos)
getField in interface IFieldIdentifierdateString - String representation of a date.pos - index in the String to identify.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||