CVSROOT:        /cvsroot/classpath
Module name:    classpath
Branch:         
Changes by:     Robert Schuster <[EMAIL PROTECTED]>     06/04/13 12:20:43

Modified files:
        javax/swing    : JTextField.java 
        javax/swing/text: FieldView.java 
        .              : ChangeLog 

Log message:
        Fixes PR 26947.
        
        2006-04-13  Robert Schuster  <[EMAIL PROTECTED]>
        
        PR 26947
        * javax/swing/JTextField.java: Removed scrollOffset variable.
        (JTextField): Moved up initialization of horizontalVisibility field.
        (getScrollOffset): Implemented.
        (setScrollOffset): Implemented.
        (getHorizonztalVisibility): Removed note.
        (scrollRectToVisible): New method.
        * javax/swing/text/FieldView.java: Added cachedSpan variable.
        (checkContainer): New method.
        (updateVisibility): New method.
        (calculateHorizontalSpan): New method.
        (adjustAllocation): Removed unneeded local variables, added code
        to handle scrolling.
        (getPreferredSpan): Use new method calculateHorizontalSpan,
        avoid calculation by returning cached value cachedSpan.
        (paint): Added check whether the hosted component is a JTextField.
        (insertUpdate): Invalidate cached span value, update visibility
        if neccessary.
        (removeUpdate): Dito.
        (changeUpdate): Dito.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/JTextField.java.diff?tr1=1.31&tr2=1.32&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/FieldView.java.diff?tr1=1.12&tr2=1.13&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.7093&tr2=1.7094&r1=text&r2=text


Reply via email to