/[classpath]/classpath/ChangeLog
ViewVC logotype

Diff of /classpath/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2450 by mkoch, Sat Sep 4 16:55:52 2004 UTC revision 1.2451 by mark, Sat Sep 4 17:14:00 2004 UTC
# Line 1  Line 1 
1  2004-09-04  Michael Koch  <konqueror@gmx.de>  2004-09-04  Michael Koch  <konqueror@gmx.de>
2    
3            * javax/swing/JTextArea.java
4            (lineWrap): Renamed from "wrapping".
5            (wrapStyleWord): NEw field.
6            (getLineWrap): Re-edited javadoc comment.
7            (setLineWrap): Likewise.
8            (getWrapStyleWord): New method.
9            (setWrapStyleWord): Likewise.
10    
11    2004-09-04  Michael Koch  <konqueror@gmx.de>
12    
13            * javax/swing/plaf/basic/BasicTextAreaUI.java
14            (create): New method.
15            * javax/swing/text/DefaultHighlighter.java
16            (DefaultHighlightPainter.debugRect): Removed.
17            * javax/swing/text/StyleContext.java
18            (DEFAULT_STYLE): New field.
19    
20    2004-09-04  Michael Koch  <konqueror@gmx.de>
21    
22            * javax/swing/plaf/basic/BasicLookAndFeel.java
23            (initComponentDefaults): Add keybindings for selection.backward and
24            selection-forward for text components.
25            * javax/swing/plaf/basic/BasicTextUI.java
26            (paintSafely): Paint highlight only when something is actually
27            selected.
28            * javax/swing/text/DefaultCaret.java
29            (handleHighlight): New method.
30            (setSelectionVisible): Don't do anything when nothing changes.
31            Handle highlight.
32            (moveDot): Reimplemented. Handle highlight.
33            (setDot): Set mark too. Handle highlight.
34            (getSelectionPainter): New method.
35            * javax/swing/text/DefaultEditorKit.java
36            (defaultActions): Added new actions for text selection.
37            * javax/swing/text/DefaultHighlighter.java
38            (DefaultHighlightPainter): New inner class.
39            (DefaultPainter): New field.
40            (paint): Implemented.
41            * javax/swing/text/PlainView.java
42            (paint): Don't draw background here again.
43            * javax/swing/text/Utilities.java
44            (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
45            (drawTabbedText): Likewise.
46    
47    2004-09-04  Graydon Hoare  <graydon@redhat.com>
48    
49            * java/awt/Component.java
50            (isFocusTraversable): Predicate on isLightweight()
51            (setFocusable): Set isFocusTraversableOverridden.
52            (requestFocus): Predicate peer dispatch on !isLightweight()
53            (requestFocusInWindow): Likewise.
54            (dispatchEventImpl): Coordinate with KeyboardFocusManager.
55            * java/awt/Container.java
56            (dispatchEventImpl): Predicate on event mask.
57            (LightweightDispatcher): Remove focus machinery.
58            * java/awt/DefaultFocusTraversalPolicy.java
59            (accept): Expand predicate to include isFocusable().
60            * java/awt/DefaultKeyboardFocusManager.java:
61            Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
62            * java/awt/KeyboardFocusManager.java
63            (redispatchEvent): Synchronize on event to prevent feedback.
64            * javax/swing/AbstractButton.java
65            (ButtonFocusListener): Remove class.
66            (init): Set focusPainted, focusable.
67            * javax/swing/ActionMap.java (get): Check parent for null.
68            * javax/swing/InputMap.java (get): Likewise.
69            * javax/swing/JComponent.java
70            (inputMap_whenFocused): New InputMap.
71            (inputMap_whenAncestorOfFocused): Likewise.
72            (inputMap_whenInFocusedWindow): Likewise.
73            (getActionForKeyStroke): Rewrite.
74            (getConditionForKeystroke): Likewise.
75            (ActionListenerProxy): New private class.
76            (setInputMap): Implement.
77            (getInputMap): Likewise.
78            (setActionMap): Likewise.
79            (getActionMap): Likewise.
80            (processComponentKeyEvent): New empty method.
81            (processKeyEvent): Implement.
82            (processKeyBinding): Likewise.
83            (resetKeyboardActions): Rewrite.
84            * javax/swing/KeyStroke.java: Rewrite.
85            * javax/swing/SwingUtilities.java
86            (notifyAction): Implement.
87            (replaceUIActionMap): Likewise.
88            (replaceUIInputMap): Likewise.
89            * javax/swing/plaf/basic/BasicButtonListener.java
90            (focusGained): Implement.
91            (focusLost): Repaint if focusPainted().
92            (installKeyboardActions): Install pressed / released actions.
93            (uninstallKeyboardActions): Implement.
94            * javax/swing/plaf/basic/BasicButtonUI.java
95            (focusColor): New field.
96            (installDefaults): Load focus color, install input map.
97            (installKeyboardActions): Implement.
98            (uninstallKeyboardActions): Likewise.
99            (paintFocus): Rewrite.
100            * javax/swing/plaf/basic/BasicLookAndFeel.java
101            (Button.focus): New default, midPurple.
102            * javax/swing/plaf/basic/BasicTextUI.java
103            (kit): Make static.
104            (installUI): Get doc from kit, load defaults.
105            (getKeymapName): Implement.
106            (createKeymap): Likewise.
107            (installKeyboardActions): Likewise.
108            (getInputMap): Likewise.
109            (getActionMap): Likewise.
110            (createActionMap): Likewise.
111            * javax/swing/text/AbstractDocument.java
112            (getStartPosition): Implement.
113            (getEndPosition): Likewise.
114            * javax/swing/text/DefaultEditorKit.java
115            (CopyAction): New class.
116            (CutAction): Likewise.
117            (DefaultKeyTypedAction): Likewise.
118            (InsertBreakAction): Likewise.
119            (InsertContentAction): Likewise.
120            (InsertTabAction): Likewise.
121            (PasteAction): Likewise.
122            (defaultActions): New static table.
123            (createCaret): Implement.
124            (getActions): Likewise.
125            * javax/swing/text/JTextComponent.java
126            (KeymapWrapper): New private class.
127            (KeymapActionMap): Likewise.
128            (DefaultKeymap): New class.
129            (keymaps): New static table.
130            (keymap): New field.
131            (getKeymap): Implement.
132            (removeKeymap): Likewise.
133            (addKeymap): Likewise.
134            (setKeymap): Likewise.
135            (loadKeymap): Likewise.
136            (getActions): Likewise.
137            (margin): New field.
138            (JTextComponent): Build and install default keymap.
139            * javax/swing/text/TextAction.java
140            (textAction): Call super properly.
141            (getTextComponent): Implement.
142            * javax/swing/text/Utilities.java
143            (drawTabbedText): Adjust position by ascent.
144    
145    2004-09-04  Michael Koch  <konqueror@gmx.de>
146    
147            * javax/swing/plaf/basic/BasicTextUI.java
148            (RottView.modelToView): New method.
149            (UpdateHandler): Renamed from EventHandler.
150            (updateHandler): Renamed from eventHandler.
151            (modelToView): Implemented.
152            * javax/swing/text/AbstractDocument.java
153            (BranchElement.getElement): Return null for non-existing indeces.
154            (BranchElement.getElementIndex): Return 0 in some corner cases.
155            * javax/swing/text/FieldView.java
156            (modelToView): New method.
157            * javax/swing/text/PlainView.java
158            (modelToView): Made public.
159    
160    2004-09-04  Michael Koch  <konqueror@gmx.de>
161    
162            * javax/swing/text/AbstractDocument.java
163            (createBranchElement): Use new constructor of BranchElement.
164            (createLeafElement): Renamed arguments.
165            (getRootElements): Implemented.
166            (BranchElement.start): Removed.
167            (BranchElement.end): Likewise.
168            (BranchElement.BranchElement): Fixed arguments.
169            (BranchElement.getEndOffset): Reimplemented.
170            (BranchElement.getStartOffset): Likewis.
171            * javax/swing/text/DefaultCaret.java
172            (paint): Draw simple vertical line as caret instead of a rectangle.
173            * javax/swing/text/JTextComponent.java
174            (setText): Use doc directly.
175            * javax/swing/text/PlainView.java
176            (nextTabStop): Implemented.
177            * javax/swing/text/Utilities.java
178            (drawTabbedText): nextTabStop() returns an absolute x position.
179            (getTabbedTextWidth): Likewise.
180    
181    2004-09-04  Michael Koch  <konqueror@gmx.de>
182    
183            * javax/swing/text/PlainView.java
184            (selectedColor): New field.
185            (unselectedColor): Likewise.
186            (font): Likewise.
187            (updateMetrics): New method.
188            (lineToRect): Likewise.
189            (modelToView): Likewise.
190            (drawSelectedText): Use color from JTextComponent ad draw with
191            Utilities class.
192            (drawUnselectedText): Likewise.
193            (paint): Initialize helper fields.
194            * javax/swing/text/View.java
195            (getChildAllocation): New method.
196            (getViewIndex): Likewise.
197            (getToolTipText): Likewise.
198    
199    2004-09-04  Michael Koch  <konqueror@gmx.de>
200    
201            * javax/swing/text/Utilities.java
202            (drawTabbedText): Reimplemented.
203            (getTabbedTextWidth): Likewise.
204    
205    2004-09-04  Michael Koch  <konqueror@gmx.de>
206    
207            * javax/swing/plaf/basic/BasicTextUI.java
208            (installDefaults): Install caret and highlighter.
209            (modelToView): Use Bias.Forward when calling sibling.
210            * javax/swing/text/AbstractDocument.java
211            (ElementEdit): Implements DocumentEvent.ElementChange.
212            (ElementEdit.ElementEdit): New method.
213            (ElementEdit.getChildrenAdded): Likewise.
214            (ElementEdit.getChildrenRemoved): Likewise.
215            (ElementEdit.getElement): Likewise.
216            (ElementEdit.getIndex): Likewise.
217            * javax/swing/text/DefaultCaret.java
218            (color): Removed.
219            (textComponent): Renamed from parent, made private.
220            (selectionVisible): Renamed from vis_sel, made private.
221            (blinkRate): Renamed from blink, made private.
222            (magicCaretPosition): Renamed from magic, made private.
223            (visible): Renamed from vis, made private.
224            (dot): Made private.
225            (mark): Likewise.
226            (deinstall): Remove as MouseMotionListener.
227            (install): Initialize textComponent first. Add as
228            MouseMotionListener.
229            (paint): Reimplemented.
230            * javax/swing/text/JTextComponent.java
231            (setCaret): Deinstall old caret, install new one and fire property
232            change after setting property.
233            (setHighlighter): Deinstall old highlighter, install new one and fire
234            property change after setting property.
235            (setCaretColor): Fire property change after setting property.
236            (setDisabledTextColor): Likewise.
237            (setSelectedTextColor): Likewise.
238            (setSelectionColor): Likewise.
239            (modelToView): New method.
240    
241    2004-09-04  Michael Koch  <konqueror@gmx.de>
242    
243            * javax/swing/text/AbstractDocument.java
244            (getText): Simplified.
245            * javax/swing/text/Segment.java
246            (current): New field.
247            (current): Reimplemented.
248            (first): Likewise.
249            (getIndex): Likewise.
250            (last): Likewise.
251            (next): Likewise.
252            (previous): Likewise.
253            (setIndex): Likewise.
254    
255    2004-09-04  Michael Koch  <konqueror@gmx.de>
256    
257            * javax/swing/plaf/basic/BasicButtonUI.java
258            (defaultTextIconGap): Made protected.
259            (defaultTextShiftOffset): Likewise.
260            (textShiftOffset): New field.
261            (clearTextShiftOffset): New method.
262            (getTextShiftOffset): Likewise.
263            (setTextShiftOffset): Likewise.
264    
265    2004-09-04  Michael Koch  <konqueror@gmx.de>
266    
267            * javax/swing/plaf/basic/BasicTextUI.java
268            (installUI): Add eventHandler as property listener.
269            (uninstallUI): remove eventHandler as propert listener.
270            (installDefaults): Added comment.
271            (installListeners): Likewise.
272            (installKeyboardActions): Likewise.
273            (uninstallDefaults): Likewise.
274            (uninstallListeners): Likewise.
275            (uninstallKeyboardActions): Likewise.
276    
277    2004-09-04  Michael Koch  <konqueror@gmx.de>
278    
279            * javax/swing/text/AbstractDocument.java:
280            Fixed some typos in comments.
281            (insertString): Reimplemented.
282            (remove): Likewise.
283            (replace): New method.
284            (children): Dont use fully qualified class name.
285            (DefaultDocumentEvent.offset): Renamed from off.
286            (DefaultDocumentEvent.length): Renamed from len.
287            (DefaultDocumentEvent.type): New field.
288            (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
289            (DefaultDocumentEvent.getType): Implemented.
290    
291    2004-09-04  Michael Koch  <konqueror@gmx.de>
292    
293            * javax/swing/plaf/basic/BasicTextUI.java
294            (RootView.textComponent): Removed.
295            (RootView.RootView): Don't initialize textComponent.
296            (RootView.getViewFactory): New method.
297            (EventHandler): New inner class.
298            (rootView): Initialize at instance creation.
299            (eventHandler): New field.
300            (installUI): Don't create view hierarchy directly,
301            call modelChanged() instead.
302            (modelChanged): New method.
303            * javax/swing/text/JTextComponent.java
304            (setDocument): Fire property change event.
305    
306    2004-09-04  Michael Koch  <konqueror@gmx.de>
307    
308            * javax/swing/plaf/basic/BasicTextUI.java
309            (RootView.paint): Removed debug output.
310            (paintSafely): Draw highlighter before text.
311            (paintBackground): Use background color of text component.
312            * javax/swing/plaf/basic/BasicToggleButtonUI.java:
313            Reformatted.
314    
315    2004-09-04  Michael Koch  <konqueror@gmx.de>
316    
317            * javax/swing/plaf/basic/BasicToolBarUI.java
318            (BasicToolBarUI): Fixed arguments for constructor.
319            (createUI): Fixed creation of object.
320    
321    2004-09-04  Michael Koch  <konqueror@gmx.de>
322    
323            * javax/swing/text/TabSet.java
324            (TabSet): Implements java.io.Serializable.
325            * javax/swing/text/TabStop.java
326            (TabStop): Implements java.io.Serializable.
327            (TabStop): Made public.
328    
329    2004-09-04  Graydon Hoare  <graydon@redhat.com>
330    
331            * javax/swing/text/SimpleAttributeSet.java: New file.
332            * javax/swing/text/StyleConstants.java: New file.
333            * javax/swing/text/StyleContext.java: New file.
334            * javax/swing/text/TabSet.java: New file.
335            * javax/swing/text/TabStop.java: New file.
336            * javax/swing/text/AbstactDocument.java:
337            (AbstractElement): Implement attribute support.
338            * javax/swing/text/AttributeSet.java
339            (NameAttribute): New static field.
340            (ResolveAttribute): New static field.
341    
342    2004-09-04  Michael Koch  <konqueror@gmx.de>
343    
344            * javax/swing/JComponent.java
345            (setUI): Fire PropertyChange.
346            * javax/swing/JLabel.java
347            (text): Renamed from labelText.
348            (horizontalAlignment): New default vlaue.
349            (icon): Renamed from activeIcon.
350            (displayedMnemonic): Renamed from mnemonicKey, added default value.
351            (displayedMnemonicIndex): Renamed from underlineChar.
352            (setDisplayedMnemonic): Reimplemented.
353            * javax/swing/JRadioButton.java
354            (JRadioButton): New constructors.
355            * javax/swing/JTextField.java
356            (JTextField): Throw exception if colums < 0, initialitialz
357            this.columns directly and initialize document with text
358            conditionally.
359    
360    2004-09-04  Michael Koch  <konqueror@gmx.de>
361    
362            * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
363            javax/swing/plaf/basic/BasicPasswordFieldUI.java,
364            javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
365            * javax/swing/text/FieldView.java
366            (paint): Just call super method for now.
367    
368    2004-09-04  Michael Koch  <konqueror@gmx.de>
369    
370            * javax/swing/TransferHandler.java,
371            javax/swing/plaf/basic/ComboPopup.java: New files
372    
373    2004-09-04  Roman Kennke  <roman@ontographics.com>
374    
375            * javax/swing/text/Utilities.java: New file.
376    
377    2004-09-04  Michael Koch  <konqueror@gmx.de>
378    
379          * examples/gnu/classpath/examples/swing/Demo.java:          * examples/gnu/classpath/examples/swing/Demo.java:
380          Added demo for JTextField.          Added demo for JTextField.
381    

Legend:
Removed from v.1.2450  
changed lines
  Added in v.1.2451

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26