summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * configure.ac (VERSION): Set to 0.93.classpath-0_93-releaseclasspath-0_93-branchMark Wielaard2006-12-083-2/+7
| | | | * NEWS: Add release date.
* 2006-12-05 Roman Kennke <kennke@aicas.com>Mark Wielaard2006-12-0835-243/+1921
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 Ben Konrath <bkonrath@redhat.com>Mark Wielaard2006-12-087-10/+143
| | | | | | | | | | | | | | | | | | | | | | | | | Fixes PR 29853. * gnu/xml/dom/DomAttr.java: Don't report mutation if oldValue and newValue are the same. * gnu/xml/dom/DomNode.java: Set parent if null during mutation. 2006-12-06 Chris Burdess <dog@gnu.org> Fixes PR 29272. * javax/xml/parsers/DocumentBuilderFactory.java: Fix broken Javadoc. * gnu/xml/stream/SAXParser.java: Fix file descriptor leak. 2006-12-06 Chris Burdess <dog@gnu.org> Fixes PR 29264. * gnu/xml/stream/XMLStreamWriterImpl.java: Allow arbitrary text in writeDTD method. 2006-12-056 Chris Burdess <dog@gnu.org> Fixes PR 28816. * javax/xml/validation/SchemaFactory.java: Use correct algorithm to discover schema factory implementation class.
* 2006-12-05 Roman Kennke <kennke@aicas.com>Mark Wielaard2006-12-082-0/+12
| | | | | (paintComponent): Include paint area from event. (updateComponent): Include paint area from event.
* 2006-12-06 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2006-12-065-14/+25
| | | | | | | | | | | | | * 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-052-0/+7
| | | | | * java/awt/Component.java (getFontImpl): Return a default font if topmost parent's font is null.
* * javax/swing/text/html/CSS.java (parseMarginShorthand):Mark Wielaard2006-12-052-1/+5
| | | | Remove debug output.
* * java/awt/font/TextLayout.javaMark Wielaard2006-12-051-0/+6
| | | | | (hitTestChar): Fixed conditions for inclusion of range. Use layout information in the run for more efficiency.
* * javax/management/openmbean/OpenType.java:Mark Wielaard2006-12-041-0/+6
| | | | | (OpenType(String,String,String)): Actually use the string created to handle arrays.
* 2006-12-04 Roman Kennke <kennke@aicas.com>Mark Wielaard2006-12-041-0/+21
| | | | | | | | | | | | | | | | | | | | | * native/jni/java-nio/gnu_java_nio_VMChannel.c (Java_gnu_java_nio_VMChannel_connect): Retry on EINTR. 2006-12-04 Mark Wielaard <mark@klomp.org> * native/jni/java-nio/gnu_java_nio_VMChannel.c (JCL_thread_interrupted): Use CallStaticBooleanMethod. 2006-12-04 Mark Wielaard <mark@klomp.org> * vm/reference/gnu/java/nio/VMChannel.java (isThreadInterrupted): Make static. * native/jni/java-nio/gnu_java_nio_VMChannel.c (JCL_thread_interrupted): Only take JNIEnv. (vm_channel_class): New static variable. (initID): Set vm_channel_class. Wrap all reads() and writes() in do-while blocks that check interrupted status.
* 2006-12-04 Roman Kennke <kennke@aicas.com>Mark Wielaard2006-12-042-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * javax/swing/text/BoxView.java (paint): Replaced painting algorithm with more simple and more reliable painting of the box. * javax/swing/text/html/BlockView.java (PositionInfo): New inner class. Stores additional CSS positioning information. (positionInfo): New field. (BlockView): Initialize positionInfo field. (fetchLayoutInfo): New helper method. Fetches additional CSS positioning information. (layoutMajorAxis): Perform additional CSS layout. (layoutMinorAxis): Perform additional CSS layout. (positionView): New helper method. (replace): Overridden to fetch additional layout information. * javax/swing/text/html/CSS.java (Attribute.POSITION): New field. (Attribute.LEFT): New field. (Attribute.RIGHT): New field. (Attribute.TOP): New field. (Attribute.BOTTOM): New field. (getValue): Create Length for left, right, top and bottom attributes. 2006-12-04 Roman Kennke <kennke@aicas.com> * gnu/javax/swing/text/html/parser/support/Parser.java (Sgml): Consume any whitespace that immediately follows and sgml insertion. (parseDocument): Consume any initial whitespace.
* * gnu/javax/management/Server.java (beans): Initialize.Mark Wielaard2006-12-042-48/+14
| | | | (registerMBean): Don't initialize beans.
* * java/util/logging/LogManager.java (getLevelProperty): CheckMark Wielaard2006-12-041-0/+5
| | | | whether value is null before passing to Level.parse().
* 2006-12-04 Robert Lougher <rob.lougher@gmail.com>Mark Wielaard2006-12-042-7/+17
| | | | | | | | * java/lang/management/ThreadInfo.java (ThreadInfo): Check whether given a null lock and lockOwner. (getLockName): Switch condition. (getLockOwnerId): Likewise. (getLockOwnerName): Likewise.
* * javax/swing/JEditorPane.java (PageLoader.in): Made a PageStream.Mark Wielaard2006-12-041-0/+10
| | | | | | | | | (PageLoader.page): Made package local. (PageLoader.run): Don't reset loader. (PageLoader.cancel): New method. (loading): Renamed to loader. (getPage): Return loader.page. (setPage): Always set loader. Never reset to null.
* * javax/swing/plaf/basic/BasicTreeUI.java (paint): Check whetherMark Wielaard2006-12-041-0/+6
| | | | | path[k] is null. (isLastChild): Return false when path is null.
* * gnu/java/awt/peer/gtk/GtkComponentPeer.java (paintArea): RenamedMark Wielaard2006-12-041-125/+0
| | | | | | | to currentPaintArea. (paintComponent): Work with local reference to currentPaintArea. (updateComponent): Likewise. (coalescePaintEvent): Set currentPaintArea.
* * javax/swing/text/html/CSS.java (parseMarginShorthand):Mark Wielaard2006-12-042-1/+5
| | | | Remove debug output.
* 2006-12-04 Roman Kennke <kennke@aicas.com>Roman Kennke2006-12-042-1/+181
| | | | | | | * javax/swing/text/GlyphView.java (J2DGlyphPainter): New inner class. (checkPainter): For Java2D capable environments create a J2DGlyphPainter.
* 2006-12-04 Roman Kennke <kennke@aicas.com>Roman Kennke2006-12-042-8/+16
| | | | | | | * gnu/java/awt/peer/gtk/FreetypeGlyphVector.java (FreeTypeGlyphVector): Don't filter control chars here. (getGlyphs): Filter control chars and replace them by hair space char.
* 2006-12-04 Roman Kennke <kennke@aicas.com>Roman Kennke2006-12-042-2/+14
| | | | | * native/jni/java-nio/gnu_java_nio_VMChannel.c (Java_gnu_java_nio_VMChannel_connect): Retry on EINTR.
* 2006-12-04 Roman Kennke <kennke@aicas.com>Roman Kennke2006-12-042-14/+16
| | | | | | * java/awt/font/TextLayout.java (hitTestChar): Fixed conditions for inclusion of range. Use layout information in the run for more efficiency.
* * native/jni/java-nio/gnu_java_nio_VMChannel.cMark Wielaard2006-12-042-2/+7
| | | | (JCL_thread_interrupted): Use CallStaticBooleanMethod.
* 2006-12-04 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-12-044-8/+20
| | | | | | | | | | | * 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.
* * vm/reference/gnu/java/nio/VMChannel.java (isThreadInterrupted):Mark Wielaard2006-12-043-13/+74
| | | | | | | | | | Make static. * native/jni/java-nio/gnu_java_nio_VMChannel.c (JCL_thread_interrupted): Only take JNIEnv. (vm_channel_class): New static variable. (initID): Set vm_channel_class. Wrap all reads() and writes() in do-while blocks that check interrupted status.
* 2006-12-04 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-12-044-13/+637
| | | | | | | | | | | * 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.
* 2006-12-04 Roman Kennke <kennke@aicas.com>Roman Kennke2006-12-034-85/+295
| | | | | | | | | | | | | | | | | | | | | | | | | * javax/swing/text/BoxView.java (paint): Replaced painting algorithm with more simple and more reliable painting of the box. * javax/swing/text/html/BlockView.java (PositionInfo): New inner class. Stores additional CSS positioning information. (positionInfo): New field. (BlockView): Initialize positionInfo field. (fetchLayoutInfo): New helper method. Fetches additional CSS positioning information. (layoutMajorAxis): Perform additional CSS layout. (layoutMinorAxis): Perform additional CSS layout. (positionView): New helper method. (replace): Overridden to fetch additional layout information. * javax/swing/text/html/CSS.java (Attribute.POSITION): New field. (Attribute.LEFT): New field. (Attribute.RIGHT): New field. (Attribute.TOP): New field. (Attribute.BOTTOM): New field. (getValue): Create Length for left, right, top and bottom attributes.
* 2006-12-04 Roman Kennke <kennke@aicas.com>Roman Kennke2006-12-032-0/+11
| | | | | | | * gnu/javax/swing/text/html/parser/support/Parser.java (Sgml): Consume any whitespace that immediately follows and sgml insertion. (parseDocument): Consume any initial whitespace.
* * java/util/logging/LogManager.java (getLevelProperty): CheckMark Wielaard2006-12-032-1/+10
| | | | whether value is null before passing to Level.parse().
* * javax/swing/JEditorPane.java (PageLoader.in): Made a PageStream.Mark Wielaard2006-12-032-28/+29
| | | | | | | | | (PageLoader.page): Made package local. (PageLoader.run): Don't reset loader. (PageLoader.cancel): New method. (loading): Renamed to loader. (getPage): Return loader.page. (setPage): Always set loader. Never reset to null.
* * javax/swing/plaf/basic/BasicTreeUI.java (paint): Check whetherMark Wielaard2006-12-032-8/+20
| | | | | path[k] is null. (isLastChild): Return false when path is null.
* * gnu/java/awt/peer/gtk/GtkComponentPeer.java (paintArea): RenamedMark Wielaard2006-12-032-9/+29
| | | | | | | to currentPaintArea. (paintComponent): Work with local reference to currentPaintArea. (updateComponent): Likewise. (coalescePaintEvent): Set currentPaintArea.
* 2006-12-02 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-12-022-0/+106
| | | | * javax/management/MBeanServerBuilder.java: New file.
* * java/text/DecimalFormat.java (parse): Always increment parsingclasspath-0_93-branch-pointMark Wielaard2006-12-022-5/+10
| | | | index and adjust pos result.
* 2006-12-01 Roman Kennke <kennke@aicas.com>Roman Kennke2006-12-018-29/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * javax/swing/text/html/HTML.java (Attribute.DYNAMIC_CLASS): New field. (Attribute.PSEUDO_CLASS): New field. * javax/swing/text/html/HTMLDocument.java (HTMLReader.CharacterAction.start): Initialize anchor with link pseudo attribute. (updateSpecialClass): New helper method. Updates the dynamic or pseudo class for anchor tags. * javax/swing/text/html/HTMLEditorKit.java (LinkController.lastAnchorElement): New field. For tracking enter/exit of anchors. (LinkController.activateLink): Set pseudo class to 'visited'. (LinkController.mouseMoved): Added support for tracking the 'hover' dynamic class. * javax/swing/text/html/InlineView.java (changedUpdate): Fetch new properties. * javax/swing/text/html/StyleSheet.java (attributeSetToMap): New helper method. (getRule): Also append dynamic and pseudo class to key. (resolveStyle): Resolve style based generally on all attributes. * javax/swing/text/html/TableView.java (RowView.layoutMajorAxis): Make sure the grid is valid. (updateGrid): Made package private. * gnu/javax/swing/text/html/css/Selector.java (calculateSpecificity): Added support for dynamic and pseudo classes. (matches): Changed to operate on general attributes. Added support for dynamic and pseudo classes.
* 2006-12-01 Mario Torre <neugens@limasoftware.net>Mario Torre2006-12-012-66/+104
| | | | | | | | * 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-012-15/+38
| | | | | | | | | | | | | | * 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.
* * include/gnu_java_awt_peer_gtk_GdkFontPeer.h: Regenerated.Mark Wielaard2006-12-012-0/+20
|
* 2006-12-01 Roman Kennke <kennke@aicas.com>Roman Kennke2006-12-016-21/+336
| | | | | | | | | | | | | | | | | | | | | | | | * gnu/javax/swing/text/html/css/BorderStyle.java: New class for handling border styles. * gnu/javax/swing/text/html/css/BorderWidth.java (isValid): New method. * gnu/javax/swing/text/html/css/Length.java (isValid): New method. * javax/swing/text/html/CSS.java (addInternal): Added shorthand parsing for border, padding and margin. (parseBackgroundShorthand): Added API docs. (parsePaddingShorthand): New method. Handles padding shorthand values. (parseMarginShorthand): New method. Handles margin shorthand values. (parseBorderShorthand): New method. Handles border shorthand values. * javax/swing/text/html/StyleSheet.java (translateHTMLToCSS): Set specific padding attributes. (BoxPainter.BoxPainter): Don't handle PADDING and MARGIN here. These shorthands are now handled in CSS. (BoxPainter.paint): Exclude the outer margin.
* 2006-11-30 Roman Kennke <kennke@aicas.com>Roman Kennke2006-12-0110-91/+404
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/javax/swing/text/html/css/Length.java (emBase): New field. (exBase): New field. (isFontEMRelative): New field. (isFontEXRelative): New field. (Length): Recognize and setup EM and EX relative values. (getValue): Handle EM and EX relative values. (isEMRelative): New method. (isEXRelative): New method. (setEMBase): New method. (setEXBase): New method. (setFontBases): New method. * gnu/javax/swing/text/html/parser/support/Parser.java (_handleEmptyTag): Use new isBlock() helper method. (_handleEndTag_remaining): Use new isBlock() helper method. (_handleStartTag): Consume whitespace after block start tag. (Comment): Consume whitespace after a comment. (isBlock): New helper method. (readAttributes): Consider all characters in unquoted attribute values. * javax/swing/text/html/BlockView.java (layoutMinorAxis): Use cached span value. (paint): Added debug code (commented out). (setPropertiesFromAttributes): Set the EM and EX base on lengths. * javax/swing/text/html/CSSBorder.java (CSSBorder): Take StyleSheet as argument. Call getBorderWidth() with stylesheet. (getBorderWidth): Set the EM and EX base on the length values. * javax/swing/text/html/HTMLDocument.java (HTMLReader.ParagraphAction.end): Do not set the inParagraph field. (HTMLReader.ParagraphAction.start): Do not set the inParagraph field. (HTMLReader.inImpliedParagraph): Removed. (HTMLReader.inParagraph): Removed. (HTMLReader.parseStack): New field. (HTMLReader.addContent): Use new paragraph handling. (HTMLReader.addSpecialElement): Use new paragraph handling. (HTMLReader.blockClose): Use new paragraph handling. (HTMLReader.blockOpen): Use new paragraph handling. (HTMLReader.inImpliedParagraph): New helper method. (HTMLReader.inParagraph): New helper method. * javax/swing/text/html/ImageView.java (attributes): New field. Caches view attributes. (spans): New field. Caches CSS spans. (getAttributes): Correctly setup CSS view attributes. (getPreferredSpan): Use caches spans. (getStyleSheet): Use the view's getDocument() method. (setPropertiesFromAttributes): Cache spans and setup EM and EX. (updateSize): Use cached spans. * javax/swing/text/html/ParagraphView.java (setPropertiesFromAttributes): Setup EM and EX. * javax/swing/text/html/StyleSheet.java (BoxPainter.BoxPainter): Setup EM and EX correctly. (getEMBase): New helper method. (getEXBase): New helper method. * javax/swing/text/html/TableView.java (width): New field. Caches the table width. (calculateMinorAxisRequirements): Use caches span. (setPropertiesFromAttributes): Cache span and setup EM/EX. (updateGrid): Correctly setup EM/EX.
* 2006-11-30 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-306-24/+870
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * javax/swing/text/html/FormSubmitEvent.java: New class. * javax/swing/text/html/FormView.java (SubmitThread): New class for submitting data in a separate thread. (actionPerformed): Fetch the actual for data. (addData): New helper method. (getElementFormData): New helper method. (getFormData): New helper method. (getInputFormData): New helper method. (submitData): Implemented. * javax/swing/text/html/FrameView.java (createComponent): Add this as hyperlink listener. Set the target document as frame document. (getTopEditorPane): New helper method. (hyperlinkUpdate): Implementation of the HyperlinkListener interface. (handleHyperlinkEvent): New helper method. (handleFormSubmitEvent): New helper method. * javax/swing/text/html/HTMLDocument.java (HTMLReader.BaseAction.start): Track the base target. (HTMLReader.BaseAction.end): Removed. (baseTarget): New field. (frameDocument): New field. (getBaseTarget): New property accessor. (isFrameDocument): New property accessor. (processHTMLFrameHyperlinkEvent): Implemented. (setFrameDocument): New property accessor. (updateFrame): New helper method. (updateFrameSet): New helper method. * javax/swing/text/html/HTMLEditorKit.java (LinkController.createHyperlinkEvent): Handle frame documents. (autoFormSubmission): New field. (HTMLEditorKit): Set autoFormSubmission to true. (isAutoFormSubmission): New property accessor. (setAutoFormSubmission): New property accessor.
* 2006-11-30 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-302-56/+165
| | | | | | | | | | | | | | | | | | * javax/swing/text/ElementIterator.java (ElementRef): New inner class. (currentDepth): Removed. (currentElement): Removed. (previousItem): Removed. (stack): New field. Holds the iteration stack. (state): Removed. (ElementIterator(Document)): Removed init of removed fields. (ElementIterator(Element)): Removed init of removed fields. (current): Changed to stack based algorithm. (deepestLeaf): New helper method. (depth): Changed to stack based algorithm. (first): Changed to stack based algorithm. (next): Changed to stack based algorithm. (previous): Changed to stack based algorithm.
* 2006-11-30 Francis Kung <fkung@redhat.com>Francis Kung2006-11-303-4/+9
| | | | | * .settings/org.eclipse.jdt.core.prefs: Set compilar compliance to 1.4. * .externalToolBuilders/ClasspathJar.launch: Include sun.* classses.
* 2006-11-30 Francis Kung <fkung@redhat.com>Francis Kung2006-11-303-28/+68
| | | | | | | | | | | | | * gnu/java/awt/peer/gtk/BufferedImageGraphics.java (draw): Set transform in buffered composite. (drawComposite): Do not transform bounds; round bounds. (drawGlyphVector): Set transform in buffered composite. (drawRenderedImage): Set transform in buffered composite. (fill): Set transform in buffered composite. (updateBufferedImage): Fix scanline & height calculations. * gnu/java/awt/peer/gtk/CairoGraphics2D.java (createPath): Simplify width & height calculation. (drawImage): Also transform width & height.
* 2006-11-30 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-307-10/+406
| | | | | | | | | | | | | * javax/swing/text/html/FrameSetView.java: New class. Implements HTML framesets. * javax/swing/text/html/FrameView.java: New class. Implements HTML frames. * javax/swing/text/html/HTMLDocument.java: (HTMLReader.addSpecialElement): Only add one artificial space. * javax/swing/text/html/HTMLEditorKit.java (HTMLFactory.create): Uncomment code for FrameSetView and FrameView. * gnu/javax/swing/text/html/parser/support/Parser.java (_handleEmptyTag): Also consume whitespace after frame tags.
* 2006-11-30 Gary Benson <gbenson@redhat.com>Gary Benson2006-11-302-2/+10
| | | | * java/lang/Thread.java: Javadoc fixes.
* 2006-11-29 Tania Bento <tbento@redhat.com>generics-merge-20061129Tania Bento2006-11-292-1/+61
| | | | | | * tools/gnu/classpath/tools/appletviewer/TagParser.java: (parseParams): Unescape 'val' before putting it into the Map. (unescapeString): New private method.
* * tools/gnu/classpath/tools/getopt/package.html: New file.Tom Tromey2006-11-292-0/+53
|
* 2006-11-29 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-292-28/+38
| | | | | | * javax/swing/plaf/metal/MetalIconFactory.java (HorizontalSliderThumbIcon.paintIcon()): Commented out gradient paint, (VerticalSliderThumbIcon.paintIcon()): Likewise.
* 2006-11-29 Mario Torre <neugens@limasoftware.net>Mario Torre2006-11-294-40/+54
| | | | | | | | | | | | * 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.