| java.lang.Object org.openharmonise.swing.datefield.DateFormatBlock
DateFormatBlock | public class DateFormatBlock (Code) | | Represents a date field base on a parsed date format. For example if
the date format string was "yyy-MM-dd" you would end up with 5 date format
blocks;
3 active ones: "yyyy", "MM" and "dd"
2 inactive ones: "-" and "-"
author: Matthew Large version: $Revision: 1.1 $ |
Constructor Summary | |
public | DateFormatBlock(String sFormat, boolean bIsActiveBlock, int nStartPosition, int nInputLength, String sClearedValue, int nCalendarField, String sEntryFormat) Constructs a new date format block. |
DateFormatBlock | public DateFormatBlock(String sFormat, boolean bIsActiveBlock, int nStartPosition, int nInputLength, String sClearedValue, int nCalendarField, String sEntryFormat)(Code) | | Constructs a new date format block.
Parameters: sFormat - Format string Parameters: bIsActiveBlock - true if this is an active block Parameters: nStartPosition - Position in value string that this block starts at Parameters: nInputLength - Length of input value Parameters: sClearedValue - Value for when this block is cleared Parameters: nCalendarField - java.util.Calendar field that this block represents Parameters: sEntryFormat - Format string to be displayed |
getCalendarField | public int getCalendarField()(Code) | | Returns the
java.util.Calendar date field that this block
represents.
Date field |
getClearedValue | public String getClearedValue()(Code) | | Returns the cleared value.
Value |
getEntryFormat | public String getEntryFormat()(Code) | | Returns the format string to be displayed.
Displayable format string |
getFormat | public String getFormat()(Code) | | Returns the format string.
Format string |
getInputLength | public int getInputLength()(Code) | | Returns the length for the input value.
Length |
getStartPosition | public int getStartPosition()(Code) | | Returns the position in the date string that this block starts at.
Start position |
isActiveBlock | public boolean isActiveBlock()(Code) | | Checks if this is an active block.
true if this is an active block |
setClearedValue | public void setClearedValue(String sClearedValue)(Code) | | Sets the cleared value.
Parameters: sClearedValue - Value |
|
|