extends <zebkit.ui.TextField>

Text field component to keep formated with the specified pattern date. The pattern can consists of from the placeholders where every placeholder is a formatted value of a property of Date object:


N - length of the field
K - character to fulfill

For example "${2,0,date}/${2,0,month2}/${4,0,fullYear}" pattern represents "Day/Month/Year" date format ("22/12/1997").

Constructor: ([format])

  • [format] <String>

    format string

Inherited methods:
$setConstraints(c)    add(constr, d)    byConstraints([p], c)    byPath(path, [cb])    calcPreferredSize(t)    clearSelection( )    cut( )    doLayout( )    drawCursor(g)    findNextWord(t, line, col, d)    fire(name, [path], [params])    focused( )    getBottom( )    getCanvas( )    getColor( )    getComponentAt(x, y)    getEndSelection( )    getFont( )    getHorPadding( )    getLeft( )    getModel( )    getPreferredSize( )    getRight( )    getSelectedText( )    getStartSelection( )    getTextRowColAt(x, y)    getTop( )    getValue( )    getVerPadding( )    hasFocus( )    hasSelection( )    indexOf(c)    insert(i, constr, d)    invalidate( )    invalidateLayout( )    isFiltered(e)    kidAdded(index, constr, l)    kidRemoved(i, l)    laidout( )    load(JSON)    off([eventName], [path], [cb])    on([eventName], [path], cb)    paintComponent(g)    paintViewAt(g, ax, ay, v)    properties([path], props)    property([path], name, value)    recalc( )    redo( )    relocated(px, py)    remove(pos, size)    removeAll( )    removeAt(i)    removeByConstraints(ctr)    removeMe([after])    removeSelected( )    repaint([x], [y], [w], [h])    repaintCursor( )    replaceMe([ctr], c)    requestFocus( )    requestFocusIn([timeout])    resized(pw, ph)    select(startOffset, endOffset)    selectAll( )    setAt(i, d)    setBackground(v)    setBlinking([period])    setBorder([v])    setBorderLayout([gap])    setBottomPadding(bottom)    setBounds(x, y, w, h)    setByConstraints(constr, c)    setColor(c)    setConstraints(ctr)    setCursorSize(w, h)    setCursorView(v)    setCursorWidth(w)    setEditable(b)    setEnabled(b)    setFlowLayout([ax], [ay], [dir], [gap])    setFont(f)    setHint(hint)    setId(id)    setKids(a)    setLayout(m)    setLeftPadding(left)    setListLayout([ax], [gap])    setLocation(xx, yy)    setModel(m)    setPadding(v)    setParent(o)    setPosition(p)    setPreferredSize(w, h)    setProperties([path], props)    setPSByRowsCols(r, c)    setRasterLayout([usePsSize])    setRightPadding(right)    setSelectView(c)    setSize(w, h)    setStackLayout([gap])    setTextAlignment(a)    setTopPadding(top)    setValue(s)    setView(v)    setVisible(b)    shortcutFired(e)    startSelection( )    toBack( )    toFront( )    toPreferredHeight( )    toPreferredSize( )    toPreferredWidth( )    toView(target)    undo( )    validate( )    validateMetric( )    vrp( )    write(pos, s)   

public chainable setFormat (format)

Set the pattern to be used to format date

  • format <String>

    a format pattern

Inherited attributes:
public zebkit.draw.View bg    public Number blinkigPeriod    public zebkit.draw.View border    public Boolean canHaveFocus    public Object constraints    public Integer cursorHeight    public String cursorType    public zebkit.draw.View cursorView    public Integer cursorWidth    public Integer cursorX    public Integer cursorY    public Integer height    public zebkit.draw.View hint    public Boolean isEditable    public Boolean isEnabled    public Boolean isValid    public Boolean isVisible    public Array kids    public zebkit.layout.Layout layout    public zebkit.layout.Layoutable parent    public zebkit.util.Position position    public zebkit.draw.View | String selectView    public String textAlign    public zebkit.draw.View view    public Integer width    public Integer x    public Integer y   

public <Date> date

Date value