summaryrefslogtreecommitdiff
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
* 2006-12-05 Roman Kennke <kennke@aicas.com>Mark Wielaard2006-12-081-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * javax/swing/text/html/ImageView.java (imageUpdate): Use spans field to determine if the CSS width/height are set. Call safePreferenceChanged to protect view structure from threading issues. (spans): Made package private. (ImageView): Initialize loadOnDemand with false. (loadImage): Call Toolkit.prepareImage() to make sure we have our Observer registered. (safePreferenceChanged): New helper method. Calls preferenceChanged in a thread safe environment. 2006-12-05 Roman Kennke <kennke@aicas.com> * NEWS: Add entry about improved HTML support. 2006-12-05 Roman Kennke <kennke@aicas.com> * javax/swing/text/html/ImageView.java (ImageView): Initialize spans array here. (setPropertiesFromAttributes): Moved init of spans array to constructor. 2006-12-05 Roman Kennke <kennke@aicas.com> * javax/swing/text/html/BlockView.java (painter): Made package visible. * javax/swing/text/html/StyleSheet.java (translateBorder): New helper method. (translateHTMLToCSS): Add mappings for border attributes. * javax/swing/text/html/TableView.java Made class subclass of BlockView to get CSS goodness. (CellView.rowSpan): New field. (CellView.setPropertiesFromAttributes): Fetch rowspan. (RowView.overlap): New field. (RowView.rowIndex): New field. (RowView.layoutMajorAxis): Skip overlapping cells. (RowView.layoutMinorAxis): Layout cells that span more than 1 row. (numColumns): New field. (tmpRect): New field. (TableView): Initialize tmpRect. (calculateColumnRequirements): Adjusted and fixed for multirows. (getAlignment): Overridden to center tables. (paint): Overridden to fix clipping. (getStyleSheet): Made protected. (layoutMajorAxis): Invalidate rows. (setPropertiesFromAttributes): Made protected and call super. (updateGrid): Update the overlapping information for multirows. 2006-12-05 Roman Kennke <kennke@aicas.com> * javax/swing/text/html/HTMLEditorKit.java (HTMLFactory.create): Removed debug output. * javax/swing/text/html/InlineView.java (getBreakWeight): Likewise. * javax/swing/text/html/StyleSheet.java (addRule): Likewise. (ListPainter.paint): Removed debug output. 2006-12-06 Roman Kennke <kennke@aicas.com> * javax/swing/text/html/BlockView.java (getAlignment): Align blocks horizontally by the superclass. * javax/swing/text/html/HTMLEditorKit.java (HTMLFactory.create): Replace equals comparison by == for efficiency. Add mapping for misplaced tr, td and th tags. Include object mapping. * javax/swing/text/html/TableView.java (RowView.replace): Invalidate grid early. (gridValid): Initialize with false. (create): Only create RowView and CellView for correctly placed tags. Avoid unnecessary casts. (getAlignment): Removed. (replace): Invalidate grid early. 2006-12-06 Roman Kennke <kennke@aicas.com> * javax/swing/text/html/TableView.java (RowView.layoutMajorAxis): Check column index for invalid value. (updateGrid): Check column index for invalid value. 2006-12-06 Roman Kennke <kennke@aicas.com> * javax/swing/JEditorPane.java (getStream): Buffer the stream for efficiency. (setPage): Don't scroll the view at this point. * javax/swing/plaf/basic/BasicTextUI.java (RootView.paint): Call RootView's setSize to get synchronization. (RootView.setSize): Synchronize to prevent race in layout code. * javax/swing/text/AbstractDocument.java (notifyListeners): New field. (fireChangedUpdate): Track notifyListener field. (fireRemoveUpdate): Track notifyListener field. (fireIndertUpdate): Track notifyListener field. (writeLock): Check notifyListener and throw IllegalStateException. * javax/swing/text/View.java (preferenceChanged): Create local var for better thread safety and more efficiency. 2006-12-06 Roman Kennke <kennke@aicas.com> * examples/gnu/classpath/examples/icons/back.png, * examples/gnu/classpath/examples/icons/reload.png: New icons for the HTML browser. * examples/gnu/classpath/examples/swing/HtmlDemo.java (history): New field. Manages the browsing history. (HtmlDemo): Initialize history. (createContent): Set location and add history. Add toolbar. (createToolBar): New helper method. (main): Make default size bigger. * examples/gnu/classpath/examples/swing/frame1.html, * examples/gnu/classpath/examples/swing/frame2.html, * examples/gnu/classpath/examples/swing/frame3.html, * examples/gnu/classpath/examples/swing/frame4.html, * examples/gnu/classpath/examples/swing/frames.html, * examples/gnu/classpath/examples/swing/tables.html: New example pages. * examples/gnu/classpath/examples/swing/welcome.html Add a couple of links and new test pages. 2006-12-06 Roman Kennke <kennke@aicas.com> * examples/gnu/classpath/examples/swing/Demo.java (getIcon): Made package private. * examples/gnu/classpath/examples/swing/HtmlDemo.java (hyperlinkUpdate): Convert URL to string. 2006-12-06 Roman Kennke <kennke@aicas.com> * javax/swing/text/DefaultCaret.java (appear): Adjust visibility here. (setDotImpl): Don't adjust visibility here. (moveDotImpl): Don't adjust visibility here. 2006-12-06 Roman Kennke <kennke@aicas.com> * javax/swing/text/html/FormView.java (SubmitThread.postData): Implemented. (SubmitThread.run): Pass data to postData(). (actionPerformed): Reset form when reset button is activated. (createComponent): Add support for select lists and comboboxes. Don't set value of text and password fields here, this is done now in HTMLDocument for consistency. (getElementFormData): Add support for fetching form data from select lists and comboboxes as well as textareas. (getSelectData): New helper method. Fetches form data from select boxes. (getTextAreaData): New helper method. Fetches form data from textareas. (resetForm): New helper method. Resets the entire form. * javax/swing/text/html/HTMLDocument.java (HTMLReader.FormAction.end): Handle SELECT and OPTION tags. (HTMLReader.FormAction.start): Handle SELECT and OPTION tags. (HTMLReader.FormAction.setModel): Initialize text and password values here. Also, use the resetable special models. Group radio buttons into ButtonGroup for exclusive selection. (HTMLReader.FormTagAction): New class. Handles FORM tags. (HTMLReader.buttonGroups): New field. (HTMLReader.numOptions): New field. (HTMLReader.option): New field. (HTMLReader.selectModel): New field. (HTMLReader.textAreaDocument): Make ResetablePlainDocument. (HTMLReader.handleText): Handle OPTION text. (HTMLReader.initTags): Map FORM tags to FormTagAction. (HTMLReader.textAreaContent): Set initial content. * javax/swing/text/html/Option.java (Option): Make copy of attribute set. Initialize selected state. (getValue): Fetch value from attribute set. * javax/swing/text/html/ResetableModel.java: New interface. * javax/swing/text/html/ResetablePlainDocument.java: New class. Supports resetting the state. * javax/swing/text/html/ResetableToggleButtonModel.java: Likewise. * javax/swing/text/html/SelectComboBoxModel.java: Likewise. * javax/swing/text/html/SelectListModel.java: Likewise. 2006-12-06 Roman Kennke <kennke@aicas.com> * examples/gnu/classpath/examples/swing/BrowserEditorKit.java: New class. * examples/gnu/classpath/examples/swing/HtmlDemo.java (LoadActionListener): Call setPage() helper method. (createContent): Register tweaked editor kit. For FormSubmitEvents call submitForm(), otherwise setPage(). (postData): Helper method for posting form data. (setPage): Helper method for navigating to a new URL. (submitForm): Helper method for submitting a form. * examples/gnu/classpath/examples/swing/forms.html: Added text/password fields and select boxes. * examples/gnu/classpath/examples/swing/welcome.html: Fixed typo. 2006-12-07 Mark Wielaard <mark@klomp.org> * java/net/URL.java (URL(URL,String,URLStreamHandler,boolean)): New private constructor. (URL(URL,String,URLStreamHandler)): Call new constructor. (URL(URL,String)): Likewise. (URL(String)): Likewise. 2006-12-07 Mark Wielaard <mark@klomp.org> * javax/swing/JEditorPane.java (createEditorKitForContentType): Always load from system class loader.
* 2006-12-06 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2006-12-061-3/+1
| | | | | | | | | | | | | * java/awt/ScrollPane.java (addNotify): Add a parent panel for any lightweight component, not just for non-Panel components. (addImpl): Do not call doLayout. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c (setNativeBounds): Ensure widget parent is a GtkFixed before calling gtk_fixed_move. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (setNativeBounds): Likewise. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (setNativeBounds): Likewise.
* 2006-12-04 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2006-12-051-0/+2
| | | | | * java/awt/Component.java (getFontImpl): Return a default font if topmost parent's font is null.
* 2006-12-04 Robert Lougher <rob.lougher@gmail.com>Mark Wielaard2006-12-041-7/+9
| | | | | | | | * java/lang/management/ThreadInfo.java (ThreadInfo): Check whether given a null lock and lockOwner. (getLockName): Switch condition. (getLockOwnerId): Likewise. (getLockOwnerName): Likewise.
* 2006-12-04 Roman Kennke <kennke@aicas.com>Roman Kennke2006-12-041-14/+10
| | | | | | * java/awt/font/TextLayout.java (hitTestChar): Fixed conditions for inclusion of range. Use layout information in the run for more efficiency.
* 2006-12-04 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-12-041-0/+4
| | | | | | | | | | | * gnu/java/lang/management/BeanImpl.java: (translate(String)): Don't assume the list uses "E", just use the first and only type variable. * java/lang/management/ManagementFactory.java: (getPlatformMBeanServer()): Register logging bean. * javax/management/openmbean/OpenType.java: (OpenType(String,String,String)): Actually use the string created to handle arrays.
* 2006-12-04 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-12-041-0/+171
| | | | | | | | | | | * gnu/javax/management/Server.java: Make map final and initialise it. (unregisterMBean(ObjectName)): Match against delegate's object name and not the instance. * java/lang/management/ManagementFactory.java: Added constant fields. (getPlatformMBeanServer()): Implemented. * javax/management/MBeanServerFactory.java: New file.
* * java/util/logging/LogManager.java (getLevelProperty): CheckMark Wielaard2006-12-031-1/+5
| | | | whether value is null before passing to Level.parse().
* * java/text/DecimalFormat.java (parse): Always increment parsingclasspath-0_93-branch-pointMark Wielaard2006-12-021-5/+5
| | | | index and adjust pos result.
* 2006-12-01 Mario Torre <neugens@limasoftware.net>Mario Torre2006-12-011-66/+96
| | | | | | | | * java/text/DecimalFormat.java (formatInternal): move the formatting of fractional portion in a separate method. Also fixes the handling of decimal separator and its associated field. (handleFractionalPart): new method, needed to relax a bit formatInternal.
* 2006-12-01 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-12-011-15/+24
| | | | | | | | | | | | | | * java/beans/beancontext/BeanContextServicesSupport.java: (BCSSProxyServiceProvider.getCurrentServiceSelectors(BeanContextServices, Class)): Implemented. (BCSSProxyServiceProvider.getService(BeanContextServices, Object, Class, Object)): Implemented. (BCSSProxyServiceProvider.releaseService(BeanContextServices, Object, Object)): Implemented. (BCSSProxyServiceProvider.serviceRevoked(BeanContextServiceRevokedEvent)): Implemented. (initialiseBeanContextResources()): Implemented. (releaseBeanContextResoures()): Implemented.
* 2006-11-30 Gary Benson <gbenson@redhat.com>Gary Benson2006-11-301-2/+6
| | | | * java/lang/Thread.java: Javadoc fixes.
* 2006-11-29 Mario Torre <neugens@limasoftware.net>Mario Torre2006-11-293-40/+42
| | | | | | | | | | | | * java/text/NumberFormat.java (getCurrencyInstance): Replaced dollar sign with the default international currency sign \u00A4. * java/text/DecimalFormat.java (scanFix): Fix to use the localized symbol table for string formatting. (formatInternal): likewise. (scanNegativePattern): likewise. (applyPattern): likewise. * java/text/DecimalFormatSymbols.java (clone): Revert to old version as Locale is immutable and does not need clone.
* 2006-11-29 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-291-4/+7
| | | | | | | | | | | | | | | | | | | | | * java/awt/Component.java (isShowing): Simplified condition code and avoid unnecessary if-codepaths. (coalesceEvents): Always coalesce paint events and let the peer figure out the expanding of the repaint area. * gnu/java/awt/peer/swing/SwingComponentPeer.java (currentPaintEvents): Removed. Replaced by paintArea. (paintArea): New field. Tracks the dirty area. (SwingComponentPeer): Removed init of currentPaintEvents. (coalescePaintEvent): Simplified to only union the dirty regions. (handleEvent): Paint dirty region that was tracked in paintArea. * gnu/java/awt/peer/gtk/GtkComponentPeer.java (paintArea): New field. Tracks the dirty region. (coalescePaintEvent): Implemented to track the dirty region. (paintComponent): Use the dirty region in paintArea. Protect state by putting the paint and dispose code in a try-finally. (updateComponent): Use the dirty region in paintArea. Protect state by putting the paint and dispose code in a try-finally.
* 2006-11-29 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-291-2/+0
| | | | | * java/awt/font/TextLayout.java (getVisualHighlightShape): Removed debug output.
* 2006-11-27Ê Casey MarshallÊ <csm@gnu.org>Casey Marshall2006-11-282-35/+20
| | | | | | | | | * java/util/jar/JarEntry.java (certs): removed. (jarfile): new field. (getCertificates): read the certificates from the containing JarFile. * java/util/jar/JarFile.java (JarEnumeration.nextElement): don't fill in 'certs,' fill in 'jarfile' for the entry. (getEntry): likewise.
* 2006-11-27 Francis Kung <fkung@redhat.com>Francis Kung2006-11-271-0/+19
| | | | | * java/awt/image/WritableRaster.java (createChild): Implemented.
* 2006-11-27 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-271-5/+77
| | | | | | | | | * java/awt/font/TextLayout.java (TextLayout(TextLayout,int,int)): Also layout the new runs. (getVisualHighlightShape): Implemented. (layoutRuns): Fixed boundary so that the last run is also laid out. (left): New helper method. (right): New helper method.
* 2006-11-27 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-271-10/+57
| | | | | | | | | | * java/awt/font/TextLayout.java (getCaretShape(TextHitInfo,Rectangle2D)): Implemented. (getCaretShape(TextHitInfo)): Use natural bounds. (getCaretShapes(int,Rectangle2D,CaretPolicy)): New API method. (getCaretShapes(int,Rectangle2D)): Delegate to new method above with DEFAULT_CARET_POLICY. (getCaretShapes(int)): Use natural bounds.
* 2006-11-27 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-271-11/+98
| | | | | | | | | | | | | | | | * java/awt/font/TextLayout.java (Run.font): New field. (Run.location): New field. (Run.Run): Initialize font. (font): Removed field. This is moved into Run as the actual font is something run-specific. (TextLayout(String,Font,FontRenderContext)): Set font on the single runs. Layout the runs here. (TextLayout(TextLayout,int,int)): Copy over the run fonts. (findRunAtIndex): New helper method. (getCaretInfo): Implemented. (layoutRuns): New helper method. (toString): Don't put font in output string.
* 2006-11-27 neugens <neugens@nirvana.limasoftware.net>Mario Torre2006-11-271-5/+37
| | | | | | | | | * java/text/DecimalFormat.java (formatInternal): Add an explicit test for FieldPosition to be null. Check if the factional part is just 0 and can be omitted from the result. (scanNegativePattern): Fixed index out of bound exception when searching for international currency symbol in negative pattern.
* 2006-11-27 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-11-271-23/+128
| | | | | | | | | | | | | * java/beans/beancontext/BeanContextSupport.java: (readObject(ObjectInputStream)): Implemented. (writeObject(ObjectOutputStream)): Likewise. (BCSChild.getTargetChild()): Added. (bcsPreDeserializationHook()): Implemented. (bcsPreSerializationHook()): Likewise. (childDeserializedHook(Object,BCSChild)): Likewise. (isSerializing()): Likewise. (readChildren(ObjectInputStream)): Likewise. (writeChildren(ObjectOutputStream)): Likewise.
* * java/io/File.java (list): Return empty list for unreadable dirs.Mark Wielaard2006-11-251-1/+2
|
* 2006-11-25 Mario Torre <neugens@nirvana.limasoftware.net>Mario Torre2006-11-253-1124/+1865
| | | | | | | | | | | | PR28462 * java/text/DecimalFormat.java: Almost new rewrite, and update to 1.5. * java/text/NumberFormat.java (format): all format methods, fixed FieldPosition argument should never be null. (format(Object, StringBuffer, FieldPosition)): fixed signature, method is not final. * java/text/DecimalFormatSymbols.java (clone): fixed to also clone locale. * AUTHORS: added my name to the file.
* * java/awt/EventQueue.java (pop): Only terminate dispatchThread whenMark Wielaard2006-11-251-2/+5
| | | | it is still running.
* 2006-11-24 Tania Bento <tbento@redhat.com>Tania Bento2006-11-241-1/+4
| | | | | | * java/awt/font/TextHitInfo.java (equals(TextHitInfo)): If TextHitInfo parameter is null, return false. (beforeOffset): Decreased first parameter by 1.
* 2006-11-24 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-241-21/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/awt/dnd/DropTarget.java (DropTargetAutoScroller.HYSTERESIS): New constant. (DropTargetAutoScroller.DELAY): New constant. (DropTargetAutoScroller.inner): New field. A cached Rectangle instance. (DropTargetAutoScroller.outer): New field. A cached Rectangle instance. (DropTargetAutoScroller.timer): New field. The actual timer. (DropTargetAutoScroller.DropTargetAutoScroller): Initialize timer. (DropTargetAutoScroller.actionPerformed): Implemented. (DropTargetAutoScroller.stop): Implemented. (DropTargetAutoScroller.updateLocation): Implemented. (clearAutoscroll): Stop the autoscroller before nullifying it. (createDropTargetAutoScroller): Don't set the field here, only return a new instance. (dragEnter): Only do something when active. Initialize auto scrolling. (dragExit): Only do something when active. Stop auto scrolling. (dragOver): Only do something when active. Update auto scrolling. (drop): Only do something when active. Update auto scrolling. (dropActionChanged): Only do something when active. Update auto scrolling. (initializeAutoScrolling): Check if component is an instance of Autoscroll, otherwise do nothing. (setActive): Disable autoscrolling when deactivating. (setComponent): When component is set to null, disable autoscrolling.
* 2006-11-24 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-241-3/+14
| | | | | * java/beans/beancontext/BeanContextServicesSupport.java (getChildBeanContextServicesListener): Implemented.
* 2006-11-23 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-231-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/headless/HeadlessGraphicsEnvironment.java (createGraphics): Use constructor to create new instance of BufferedImageGraphics. * java/awt/Toolkit.java (getDefaultToolkit): Really try to get a real toolkit. Only use HeadlessToolkit if no other is available. * gnu/java/awt/peer/gtk/GtkToolkit.java (checkHeadless): New helper method. Checks for headless environment and throws HeadlessException if appropriate. (createButton): Check for headless. (createCanvas): Check for headless. (createCheckbox): Check for headless. (createCheckboxMenuItem): Check for headless. (createChoice): Check for headless. (createDialog): Check for headless. (createDragGestureRecognizer): Check for headless. (createDragSourceContextPeer): Check for headless. (createEmbeddedWindow): Check for headless. (createFileDialog): Check for headless. (createFrame): Check for headless. (createCheckbox): Check for headless. (createLabel): Check for headless. (createList): Check for headless. (createMenu): Check for headless. (createMenuBar): Check for headless. (createMenuItem): Check for headless. (createPanel): Check for headless. (createPopupMenu): Check for headless. (createScrollbar): Check for headless. (createScrollPane): Check for headless. (createTextArea): Check for headless. (createTextField): Check for headless. (createWindow): Check for headless.
* 2006-11-23 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-231-5/+44
| | | | | | * java/beans/beancontext/BeanContextSupport.java (deserialize): Implemented, (serialize): Implemented.
* 2006-11-22 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-221-3/+14
| | | | | | * java/beans/beancontext/BeanContextSupport.java (toArray): Added API docs, (toArray(Object[])): Added API docs, removed NotImplementedException.
* 2006-11-22 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-221-1/+0
| | | | | * java/beans/beancontext/BeanContextSupport.java (avoidingGui): Removed NotImplementedException.
* 2006-11-22 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-221-2/+13
| | | | | | * java/awt/font/TextLayout.java (hash): New field. Caches the hash code. (hashCode): Implemented.
* 2006-11-22 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-226-597/+521
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/awt/image/ImageFilter.java Reformat whole class. (getFilterInstance): Don't touch the consumer field. Don't check consumer. (imageComplete): Don't check consumer. (setColorModel): Don't check consumer. (setDimensions): Don't check consumer. (setHints): Don't check consumer. (setPixels): Don't check consumer. (setProperties): Pass the original property too. * java/awt/image/IndexColorModel.java (IndexColorModel(int,int,byte[],byte[],byte[],int)): Set the transparent pixel by calling the new helper method. (IndexColorModel(int,int,byte[],int,boolean,int)): Set the transparent pixel by calling the new helper method. (IndexColorModel(int,int,int[],int,boolean,int,int)): Set the transparent pixel by calling the new helper method. (coerceData): Removed. This is not needed. (getAlpha): Simply return value from color map. The transparent pixel has to be there. (setTransparentPixel): New helper method. Inserts the transparent pixel. * java/awt/image/RGBImageFilter.java Reformat whole class. (convertColorModelToDefault): Removed. No longer needed. (filterIndexColorModel): Don't handle transparent pixels separately. (filterRGBPixels): Set pixels on consumer already. (makeColor): Removed. No longer needed. * java/awt/image/ReplicateScaleFilter.java (replicatePixels): Removed. (setDimension): Correctly compute destination size, avoid double calculations. (setPixels): Avoid double calculations. Fixed some boundary cases. (setupSources): New helper method. * java/awt/image/SampleModel.java (setDataElements): Also handle TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE. * java/awt/image/SinglePixelPackedSampleModel.java (setDataElements(int,int,int,int,Object,DataBuffer)): Removed. This is not needed as the superclass already copies line by line. (setDataElements(int,int,Object,DataBuffer)): Simplified code, removed some checks that the RI also doesn't perform. Call DataBuffer.setElem().
* 2006-11-22 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-221-2/+53
| | | | | * java/awt/text/TextLayout.java (getLogicalRangesForVisualSelection): Implemented.
* 2006-11-21 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-211-18/+248
| | | | | | | | | | | | | | | | | | | | | | | | * java/awt/text/TextLayout.java (Run.isLeftToRight): New helper method. (logicalToVisual): New field. Maps logical indices to visual indices. (visualToLogical): New field. Maps visual indices to logical indices. (TextLayout): Setup mappings. (setupMappings): New method for setting up the mappings. (getCharacterLevel): Reorganized code. (getNextLeftHit(int)): Implemented. (getNextLeftHit(int,CaretPolicy)): New method. (getNextLeftHit(TextHitInfo)): Implemented. (getNextRightHit(int)): Implemented. (getNextRightHit(int,CaretPolicy)): New method. (getNextRightHit(TextHitInfo)): New method. (getVisualOtherHit): Implemented. (checkHitInfo): New helper methods for checking parameters. (hitToCaret): New helper method. Maps hit infos to caret locations. (caretToHit): New helper method. Maps caret locations to hit infos. (isCharacterLTR): New helper method. (CaretPolicy.getStrongCaret): Implemented.
* 2006-11-21 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-212-113/+320
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/awt/text/TextLayout.java (Run): New inner helper class. (length): New field. (naturalBounds): New field. (offset): New field. (runIndices): Removed. This is now encapsulate in a Run object. (runs): Changed to Run[]. (string): Changed to char[]. (totalAdvance): New field. Caches advance value. (TextLayout(String,Font,FontRenderContext)): Change to store string as char[] and run layout as Run[]. Clean out empty run items. (TextLayout(TextLayout,int,int)): Change to store string as char[] and run layout as Run[]. (clone): Call private constructor for maximum efficiency. (determineWhitespace): Adapted to use char[] data. (draw): Adapted to use Run objects. (getAdvance): Cache computed total advance. (getBlackBoxBounds): Adapted to use Run objects. (getCaretInfo): Use natural layout bounds. (getCharacterCount): Return length field. (getLogicalHighlightShape): Adapted to use Run objects. (getNaturalBounds): New helper method. Calculates and returns the natural bounds of this text layout. (getOutline): Adapted to use Run objects. (getStringProperties): Adapted to use char[] data. (getVisibleAdvance): Adapted to use char[] and Run data. (handleJustify): Adapted to use char[] and Run data. (hitTestChar(float,float,Rectangle2D)): Implemented. (hitTestChar(float,float)): Use natural bounds. (setCharIndices): Adapted to use char[] and Run data. (toString): Adapted to use char[] and Run data. * java/text/Bidi.java (requiresBidi): Exclude paragraph separators from bidi-triggers.
* 2006-11-20 Marco Trudel <mtrudel@gmx.ch>Raif S. Naffah2006-11-201-121/+55
| | | | | | | | | * java/util/jar/JarFile.java (digestAlgorithms): New field used to cache digest algorithm implementations. (readSignatures): Parse the manifest once and reuse that data. Add support for line breaks. (verifyHashes): Use the parsed manifest entry. (readManifestEntry): Removed.
* 2006-11-20 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-11-202-41/+521
| | | | | | | | | | | | | | | | | | | | | | | | | | * java/beans/beancontext/BeanContextServicesSupport.java: Added more documentation. (addService(Class,BeanContextServiceProvider,boolean)): Synchronized over global hierarchy lock. (bcsPreDeserializationHook(ObjectInputStream)): Implemented. (bcsPreSerializationHook(ObjectOutputStream)): Implemented. (childJustRemovedHook(Object,BCSChild)): Implemented. (createBCSSServiceProvider(Class,BeanContextServiceProvider)): Implemented. (fireServiceRevoked(BeanContextServiceRevokedEvent)): Added revocation-only listeners. (getBeanContextServicesPeer()): Implemented. (getCurrentServiceClasses(Class)): Synchronized over global hierarchy lock. (getCurrentServiceSelectors(Class)): Synchronized over global hierarchy lock, and fixed FIXME. (getService(BeanContextChild,Object,Class,Object, BeanContextServiceRevokedListener)): Implemented. (hasService(Class)): Synchronized over global hierarchy lock. (releaseService(BeanContextChild,Object,Object)): Implemented. (revokeService(Class,BeanContextServiceProvider,boolean)): Implemented. * java/beans/beancontext/BeanContextSupport.java: (remove(Object, boolean)): Documentation correction.
* 2006-11-17 Gary Benson <gbenson@redhat.com>Gary Benson2006-11-171-3/+3
| | | | | * java/net/DatagramSocket.java (getLocalAddress, connect, receive): Perform security check on address not hostname.
* 2006-11-16 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-161-18/+97
| | | | | | | | | | * java/beans/beancontext/BeanContextSupport.java (getChildBeanContextMembershipListener): Implemented, (getChildPropertyChangeListener): Implemented, (getChildSerializable): Implemented, (getChildVetoableChangeListener): Implemented, (getChildVisibility): Implemented, (setDesignTime): Use same property name as Sun's implementation.
* 2006-11-16 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-162-50/+56
| | | | | | * java/beans/DesignMode.java: Reformatted and removed a FIXME, * java/beans/Statement.java (toString): Updated to match reference implementation.
* 2006-11-13 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-131-1/+21
| | | | | * java/awt/image/IndexColorModel.java (createCompatibleSampleModel): Implemented missing method.
* 2006-11-11 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-111-4/+22
| | | | | * java/beans/beancontext/BeanContextSupport.java (getChildBeanContextChild): Implemented.
* 2006-11-10 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-101-6/+9
| | | | | | * java/util/Collections.java (sort(List)): Minor API doc addition, (sort(List, Comparator)): Likewise.
* 2006-11-09 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-091-0/+9
| | | | | | | | | * gnu/java/awt/peer/headless/HeadlessGraphicsEnvironment, * gnu/java/awt/peer/headless/HeadlessToolkit: New classes. Implement basic headless toolkit. * java/awt/Toolkit.java (getDefaultToolkit): Check headless property and create headless toolkit when true.
* 2006-11-09 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-091-9/+28
| | | | | | | | | | * java/beans/beancontext/BeanContextSupport.java (BeanContextSupport): Use correct dtime default, (BeanContextSupport(BeanContext)): Likewise, (BeanContextSupport(BeanContext, Locale)): Likewise, plus renamed locale argument, (BeanContextSupport(BeanContext, Locale, boolean)): Likewise, (BeanContextSupport(BeanContext, Locale, boolean, boolean)): Likewise.
* 2006-11-09 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-091-3/+9
| | | | | * java/beans/beancontext/BeanContextSupport.java (getBeanContextPeer): Implemented.
* 2006-11-09 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-091-4/+11
| | | | | | Fixes bug #29770 * java/beans/SimpleBeanInfo.java (loadImage): Check for nulls.
* Fixes bug #29754Mark Wielaard2006-11-081-0/+6
| | | | | | * java/io/OutputStreamWriter.java (OutputStreamWriter(OutputStream,Charset)): Set encodingName. (OutputStreamWriter(OutputStream,CharsetEncoder)): Likewise.