1 |
|
2005-11-02 Roman Kennke <kennke@aicas.com> |
2 |
|
|
3 |
|
* javax/swing/text/DefaultCaret.java |
4 |
|
(BlinkTimerListener): New inner class. Listens for when the |
5 |
|
blink timer fires and updates the visible flag accordingly. |
6 |
|
(visible): Default value for visible should be false. |
7 |
|
(blinkTimer): New field. |
8 |
|
(Caret): New constructor. |
9 |
|
(focusGained): Make the caret visible. |
10 |
|
(focusLost): Make caret invisible if the focus lost is permanent. |
11 |
|
(deinstall): Deinstall the blink timer. |
12 |
|
(repaint): Call getComponent() instead of directly accessing the |
13 |
|
textComponent field. |
14 |
|
(paint): Call getComponent() instead of directly accessing the |
15 |
|
textComponent field. Added an assert for the 'this should never |
16 |
|
happen' comment. Update the caret rectangle if damage hasn't been |
17 |
|
called before. |
18 |
|
(setBlinkRate): Set the blink rate in the timer if there is already |
19 |
|
a timer present. |
20 |
|
(setVisible): Call damage on the caret's location. Start/Stop blink |
21 |
|
timer. |
22 |
|
(damage): New method. Updates the caret's bounds. |
23 |
|
* javax/swing/text/JTextComponent.java |
24 |
|
(CaretBlinkTimer): Removed unneeded inner class. |
25 |
|
(caretBlinkTimer): Removed unneeded field. |
26 |
|
(JTextComponent): Removed initialization of blink timer. |
27 |
|
(setEditable): Removed starting of blink timer. |
28 |
|
(setCaret): Likewise. |
29 |
|
* javax/swing/text/Utilities.java |
30 |
|
(getParagraphElement): New utility method. |
31 |
|
|
32 |
2005-11-02 Mark Wielaard <mark@klomp.org> |
2005-11-02 Mark Wielaard <mark@klomp.org> |
33 |
|
|
34 |
* gnu/java/awt/peer/gtk/GdkGraphics.java (initComponentGraphics): Set |
* gnu/java/awt/peer/gtk/GdkGraphics.java (initComponentGraphics): Set |