LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.component
Class LyJFormattedField._LyJFormattedTextCaret

java.lang.Object
  extended by java.awt.geom.RectangularShape
      extended by java.awt.geom.Rectangle2D
          extended by java.awt.Rectangle
              extended by javax.swing.text.DefaultCaret
                  extended by leon.view.win.swing.component.LyJFormattedField._LyJFormattedTextCaret
All Implemented Interfaces:
java.awt.event.FocusListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.Shape, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.text.Caret
Enclosing class:
LyJFormattedField

public class LyJFormattedField._LyJFormattedTextCaret
extends javax.swing.text.DefaultCaret

A caret that remember its last position.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float
 
Field Summary
 
Fields inherited from class javax.swing.text.DefaultCaret
ALWAYS_UPDATE, NEVER_UPDATE, UPDATE_WHEN_ON_EDT
 
Fields inherited from class java.awt.Rectangle
height, width, x, y
 
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
 
Constructor Summary
LyJFormattedField._LyJFormattedTextCaret(LyJFormat format)
          Creates a caret for the specified format.
 
Method Summary
 java.awt.Point getLastCaretPosition()
          Gets the last caret position.
 void setMagicCaretPosition(java.awt.Point pt)
          Saves the last caret position.
 
Methods inherited from class javax.swing.text.DefaultCaret
addChangeListener, deinstall, equals, focusGained, focusLost, getBlinkRate, getChangeListeners, getDot, getDotBias, getListeners, getMagicCaretPosition, getMark, getMarkBias, getUpdatePolicy, install, isActive, isSelectionVisible, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, moveDot, moveDot, paint, removeChangeListener, setBlinkRate, setDot, setDot, setSelectionVisible, setUpdatePolicy, setVisible, toString
 
Methods inherited from class java.awt.Rectangle
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, translate, union
 
Methods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
 
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
 

Constructor Detail

LyJFormattedField._LyJFormattedTextCaret

public LyJFormattedField._LyJFormattedTextCaret(LyJFormat format)
Creates a caret for the specified format.

Parameters:
format - the mask format
Method Detail

setMagicCaretPosition

public void setMagicCaretPosition(java.awt.Point pt)
Saves the last caret position.

Specified by:
setMagicCaretPosition in interface javax.swing.text.Caret
Overrides:
setMagicCaretPosition in class javax.swing.text.DefaultCaret
See Also:
Caret.setMagicCaretPosition(java.awt.Point)

getLastCaretPosition

public java.awt.Point getLastCaretPosition()
Gets the last caret position.

Returns:
the last caret position

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com