| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/TextArea.java
(getMinimumSize): Changed documentation.
(getPreferredSize): Changed documentation.
(getMinimumSize(int,int)): Changed documenation.
(getPreferredSize(int,int)): Changed documenation.
(minimumSize): Changed documentation.
(preferredSize): Changed documenation.
(minimumSize(int,int)): Changed documentation. Checked if
minimum size had been previously set and changed values of
Dimension returned if peer == null.
(preferredSize(int, int)): Checked if preferred size had been
previously set and changed values of Dimension returned if
peer = null.
|
|
|
|
|
| |
* java/awt/event/ComponentEvent.java
(paramString): Changed format of string representation returned.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/html/HTMLDocument.java
(HTMLReader.FormAction.start): Added support for textarea.
(HTMLReader.FormAction.end): Added support for textarea.
(HTMLReader.HeadAction.end): Call super to actually close the
block.
(HTMLReader.inTextArea): New field.
(HTMLReader.textAreaDocument): New field.
(HTMLReader.handleText): Call textAreaContent when inside
a textarea tag.
(HTMLReader.textAreaContent): Implemented to initialize
the text area's model.
* javax/swing/text/html/FormView.java
(createComponent): Added support for textarea tag.
|
|
|
|
|
| |
* javax/swing/text/html/HTMLDocument.java
(HTMLReader.IsindexAction.start): Implemented.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/html/StyleSheet.java
(addRule): Implemented.
* javax/swing/text/html/HTMLDocument.java
(HTMLReader.inStyleTag): New field.
(HTMLReader.styles): New field.
(HTMLReader.HeadAction.end): Implemented to read all stylesheets,
if any.
(HTMLReader.StyleAction.start): Set inStyleTag flag.
(HTMLReader.StyleAction.end): Set inStyleTag flag.
(HTMLReader.handleText): When inside a style tag, add
content to the styles array.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/html/FormView.java
(maxIsPreferred): New field.
(createComponent): Initialize components correctly.
(getMaximumSpan): Return the preferred span for components
that need this. The maxIsPreferred flag is set accordingly
in createComponent.
* javax/swing/text/html/HTMLDocument.java
(HTMLReader.FormAction.start): Implemented to set the
correct model as attribute.
(HTMLReader.FormAction.setModel): New helper method.
(HTMLReader.FormAction.end): Call super to finish the element.
Added TODO about things left to do.
(HTMLReader.handleComment): Use SimpleAttributeSet rather
than htmlAttributeSet.
* javax/swing/text/html/HTMLEditorKit.java
(HTMLFactory.create): Create BlockView for FORM tags.
Create FormView for INPUT, TEXTAREA and SELECT tags.
|
|
|
|
| |
* java/awt/geom/GeneralPath.java: API doc fixes.
|
| |
|
|
|
|
|
|
| |
* javax/swing/text/html/ImageView.java
(getImageURL): Fetch attribute from element. Consider the
base URL for relative image locations.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/JEditorPane.java
(setContentType): Strip off attributes.
* javax/swing/text/html/HTMLEditorKit.java
(LinkController.activateLink(int,JEditorPane,int,int): New
method. Implements activation of a hyperlink.
(LinkController.activateLinke(int,JEditorPane)): Delegate
to the other activateLink() method.
(LinkController.createHyperlinkEvent): New helper method.
(LinkController.mouseClicked): Implemented to activate the link.
(LinkController.mouseDragged): Added comment that this
method does nothing.
(LinkController.mouseMoved): Update cursor for hyperlinks.
(mouseHandler): Renamed field to linkController.
(HTMLEditorKit): Create a link controller.
(clone): Give the clone a new link controller.
(deinstall): De-install link controller as mouseMotionListener too.
(install): Install link controller as mouseMotionListener too.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 29644
* javax/swing/text/FlowView.java
(FlowStrategy.changedUpdate): Reversed condition. This caused
wrong layout and bad performance.
(FlowStrategy.insertUpdate): Reversed condition. This caused
wrong layout and bad performance.
(FlowStrategy.removeUpdate): Reversed condition. This caused
wrong layout and bad performance.
(LogicalView): Changed to be a subclass of CompositeView.
(LogicalView()): Only take one Element argument.
(LogicalView.childAllocation): New method for implementing
the abstract CompositeView method.
(LogicalView.forwardUpdateToView): Overridden for correct
reparenting.
(getMinimumSpan): Overridden to handle line breaking correctly.
(getPreferredSpan): Implemented to handle line breaking correctly.
(getViewAtPoint): New method for implementing
the abstract CompositeView method.
(getViewIndexAtPosition): Overridden to handle leaf elements
correctly.
(isAfter): New method for implementing
the abstract CompositeView method.
(isBefore): New method for implementing
the abstract CompositeView method.
(loadChildren): Overridden to handle leaf elements
correctly.
(paint): New method for implementing
the abstract CompositeView method.
(calculateMinorAxisRequirements): Use preferredSpan in calculation.
(loadChildren): Initialize flow layout by sending a synthetic
insertUpdate() to the layout strategy.
* javax/swing/text/GlyphView.java
(DefaultGlyphPainter.getBoundedPosition): Fall back to Toolkit's
font metrics if component is not available. Add initial offset
to result.
(breakView): Be more clever when breaking the view.
(getBreakLocation): New helper method to determine a good
break location.
(getBreakWeight): Be more clever when breaking the view.
(getTabbedSpan): Make sure we have a painter. Use view's
start and end offset rather than the element's.
* javax/swing/text/Utilities.java
(drawTabbedText): Avoid useless add and sub with the y offset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 29644
* gnu/java/awt/peer/ClasspathFontPeer.java
(getStringBounds): Removed abstract method. This is replaced
in java.awt.Font to use a TextLayout.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
(GtkWindowPeer): Set a font on the window object.
* gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
(FreetypeGlyphVector(Font,String,FontRenderContext,int)):
Changed to take char,int,int instead of String. Filter
control characters.
(FreetypeGlyphVector(Font,String,FontRenderContext)):
Create char array out of string.
(getLogicalBounds): Don't translate bounds. They already are
translated.
* gnu/java/awt/peer/gtk/GdkFontMetrics.java
(stringWidth): Filter out control characters.
* gnu/java/awt/peer/gtk/GdkFontPeer.java
(getStringBounds): Removed unneeded method.
(layoutGlyphVector): Pass char array directly to FreetypeGlyphVector
constructor.
* gnu/java/awt/peer/qt/QtFontPeer.java
(getStringBounds): Removed unneeded method.
* gnu/java/awt/peer/x/XFontPeer.java
(getStringBounds): Removed unneeded method.
* gnu/java/awt/peer/x/XFontPeer2.java
(getStringBounds): Removed unneeded method.
* java/awt/Font.java
(getStringBounds(char[],int,int,FontRenderContext)):
Use TextLayout to determine the bounds.
(getStringBounds(CharacterIterator,int,int,FontRenderContext)):
Delegate to the char[] version of this method.
(getStringBounds(String,FontRenderContext)):
Delegate to the char[] version of this method.
(getStringBounds(String,int,int,FontRenderContext)):
Delegate to the String version of this method.
|
|
|
|
|
|
| |
* java/awt/ScrollPaneAdjustable.java
(paramString): Changed format of string representation returned.
(paramStringHelper): New private method.
|
|
|
|
|
| |
* java/awt/GridBagLayout.java
(toString): Implemented method.
|
| |
|
|
|
|
|
|
| |
* native/plugin/gcjwebplugin.cc (GCJ_New): Move GThread
initialization to NP_Initialize.
(NP_Initialize): Initialize GThread library.
|
|
|
|
|
|
| |
* javax/swing/JTextField.java
(fireActionPerformed): When creating the new event, if
actionCommand == null, then getText() is used.
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(fillArc): Corrected arc type to Arc2D.PIE.
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/html/HTMLDocument.java
(HTMLReader.PreAction.end): Implemented.
(HTMLReader.PreAction.start): Implemented.
(HTMLReader.inPreTag): New field.
(HTMLReader.handleTag): When inside a pre tag, call preContent().
(HTMLReader.preContent): Implemented.
|
|
|
|
|
|
|
| |
* javax/swing/JTextField.java
(fireActionPerformed): When creating the new event,
actionCommand should be used as the command, not
getText().
|
|
|
|
|
|
| |
* javax/swing/text/html/HTMLEditorKit.java
(write): Use HTMLWriter or MinimalHTMLWriter for writing
HTML or Styled documents.
|
|
|
|
| |
* javax/swing/text/html/HTMLWriter.java: New class.
|
|
|
|
|
|
| |
* java/awt/dnd/DragSourceContext.java
(dragExit): Use constant fields instead of 0.
(updateCurrentCursor): Completed implementation.
|
|
|
|
|
|
| |
* java/awt/dnd/DragGestureRecognizer.java
(resetRecognizer): Added API docs. Do not replace the events object
but rather clear() it. Removed not implemented tag.
|
|
|
|
|
| |
* java/awt/datatransfer/DataFlavor.java
(writeExternal): Remove not implemented tag.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/datatransfer/DataFlavor.java
(javaFileListFlavor): Don't explicitly specify class.
(plainTextFlavor): Don't explicitly specify class.
(mimeType): Changed to type MimeType. Remove final.
(representationClass): Remove final.
(DataFlavor): Don't do anything here.
(DataFlavor(Class,String,String)): Removed.
(DataFlavor(Class,String)): Initialize here.
(DataFlavor(String,String,ClassLoader)): Initialize in init().
(DataFlavor(String,String)): Initialize in init().
(DataFlavor(String)): Initialize in init().
(init): New initialization method.
(getMimeType): Delegate to MimeType.toString().
(getParameter(String,String)): Removed. Is now done in MimeType.
(getParameter(String)): Delegate to MimeType.
(getPrimaryType): Delegate to MimeType.
(getRepresentationClassFromMime): Removed.
(getRepresentationClassFromMimeThrows): Removed.
(getSubType): Delegate to MimeType.
(hashCode): Take MimeType.toString() for the hashCode.
(isFlavorRemoveObjectType): Return true only when representation
class is remove and serializable and the mime type is remote.
(isFlavorSerializedObjectType): Return true only when representation
class is serializable and the mime type is serialized.
(isMimeTypeEqual): Rewritten to delegate to MimeType.matches().
(isMimeTypeSerializedObject): Delegate to isMimeTypeEqual().
(readExternal): Implemented stub method.
(writeExternal): Implemented stub method.
* java/awt/datatransfer/MimeType.java: New helper class.
|
|
|
|
|
| |
* javax/swing/TransferHandler.java
(importData): Implemented stub method. Added API docs.
|
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gtk_jawt.c (classpath_jawt_get_depth): New
function.
* native/jni/classpath/classpath_jawt.h: Likewise.
* native/jawt/jawt.c (_Jv_GetDrawingSurfaceInfo): Added
initializer for surface_info_x11->depth.
|
|
|
|
|
| |
* java/awt/FileDialog.java:
(setFile): Changed if-clause condition.
|
|
|
|
|
|
|
|
|
|
|
| |
* include/gnu_java_nio_VMChannel.h,
* include/java_net_VMNetworkInterface.h,
* include/gnu_java_nio_EpollSelectorImpl.h,
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h,
* include/gnu_java_nio_FileChannelImpl.h,
* include/gnu_java_nio_KqueueSelectorImpl.h,
* include/gnu_java_nio_VMPipe.h,
* include/gnu_java_net_VMPlainSocketImpl.h: Regenerated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Dialog.java: Created new private variable
next_dialog_number.
(Dialog(Frame, String, boolean, GraphicsConfiguration)):
Set cursor to default cursor.
(Dialog(Dialog, STring, boolean, GraphicsConfiguration)):
Same.
(generateName): New method.
(getUniqueLong): New private method.
* java/awt/FileDialog.java: Created new private variable
next_file_dialog_number.
(setFile): If file == "", set it to null.
(generateName): New method.
(getUniqueLong): New private method.
|
|
|
|
|
| |
* java/net/MulticastSocket.java:
(setNetworkInterface): Rewritten.
|
|
|
|
|
|
|
| |
* native/jni/java-net/javanet.h: Added declaration for
_javanet_create_inetaddress.
* native/jni/java-net/javanet.c:
(_javanet_create_inetaddress): Removed static keyword.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-10-25 Robert Schuster <robertschuster@fsfe.org>
* gnu/java/net/PlainDatagramSocketImpl.java:
(connect): Use VMChannel instance for connect call.
(getTimeToLive): Call VMPlainSocketImpl.getTimeToLive.
(setTimeToLive): Call VMPlainSocketImpl.setTimeToLive.
(setOption): Handle multicast options.
(getOption): Handle multicast options.
* gnu/java/net/PlainSocketImpl.java:
(getTimeToLive): Call VMPlainSocketImpl.getTimeToLive.
(setTimeToLive): Call VMPlainSocketImpl.setTimeToLive.
(setOption): Filter unappropriate options.
(getOption): Filter unappropriate options.
(connect): Use given SocketAddress.
(close): Reset address and port.
(getInetAddress):
* include/Makefile.am: Removed all occurences of
gnu_java_net_VMPlainDatagramSocketImpl.h.
* include/gnu_java_net_VMPlainDatagramSocketImpl.h: Removed.
* native/jni/java-net/Makefile.am: Removed
gnu_java_net_VMPlainDatagramSocketImpl.c from sources.
* native/jni/java-net/gnu_java_net_VMPlainDatagramSocketImpl.c:
Removed.
as SocketException, declare to throw SocketException.
* native/jni/java-nio/gnu_java_nio_VMChannel.c: Added definitions
for SocketException and ConnectException.
(Java_gnu_java_nio_VMChannel_connect): Throw SocketException instead
of IOException.
(Java_gnu_java_nio_VMChannel_connect6): Throw SocketException instead
of IOException.
(Java_gnu_java_nio_VMChannel_accept): Rewritten.
(JCL_thread_interrupted): New function.
(initIDs): Added initialisation for isThreadInterrupted method id.
* native/jni/java-net/gnu_java_net_VMPlainSocketImpl.c: Added
CPNET_IP_TTL to java_sockopt enum.
(Java_gnu_java_net_VMPlainSocketImpl_setOption): Handle CPNET_IP_TTL
case, handle SO_LINGER case properly.
(Java_gnu_java_net_VMPlainSocketImpl_getOption): Handle CPNET_IP_TTL
case, handle SO_LINGER case properly.
(Java_gnu_java_net_VMPlainSocketImpl_getMulticastInterface): New
function.
(Java_gnu_java_net_VMPlainSocketImpl_setMulticastInterface): New
function.
(Java_gnu_java_net_VMPlainSocketImpl_setMulticastInterface6): New
function.
(Java_gnu_java_net_VMPlainSocketImpl_leave6): Fixed constant to be
IPV6_LEAVE_GROUP.
* vm/reference/gnu/java/net/VMPlainDatagramSocketImpl.java: Removed.
* vm/reference/gnu/java/nio/VMChannel.java:
(connect(int, byte[], int, int)): Declare to throw SocketException.
(connect6): Declare to throw SocketException.
(connect(InetSocketAddress, int)): Catch IOException and rethrow
(isThreadInterrupted): New method.
* vm/reference/gnu/java/net/VMPlainSocketImpl.java: Added CP_IP_TTL
field.
(setTimeToLive): New method.
(getTimeToLive): New method.
(setMulticastInterface(int, InetAddress)): New method.
(setMulticastInterface(int, int, Inet4Address): New method.
(setMulticastInterface6(int, int, Inet6Address): New method.
(setOptions): Handle SO_LINGER case.
(getOptions): Add missing SO_REUSEADDR case.
* java/net/Socket.java:
(Socket(InetAddress, int, InetAddress, int, boolean)): Close socket
when exception was thrown out of connect().
(setSoLinger): Replaced instantiations with valueOf calls, replaced
Boolean.FALSE with Integer.valueOf(-1).
* native/jni/native-lib/cpio.h: Added cpio_closeOnExec declaration.
* native/jni/native-lib/cpio.c: Added cpio_closeOnExec implementation.
* NEWS: Documented VM interface changes.
|
|
|
|
|
| |
* java/net/Inet6Address.java:
(isMulticastAddress): Fixed check.
|
|
|
|
|
|
|
| |
Fixes PR29576
* java/net/MulticastSocket.java:
(getNetworkInterface): Return a special NetworkInterface instance
if the socket's multicast interface is set to any.
|
|
|
|
|
|
|
|
|
|
| |
Fixes PR29576
* java/net/NetworkInterface.java:
(createAnyInterface): New method.
(equals): Added if-statement to handle case where netif.name is null.
* vm/reference/java/net/VMNetworkInterface.java:
(hashCode): Rewritten.
(VMNetworkInterface): New constructor.
|
|
|
|
|
|
| |
* tools/Makefile.am: Add ASM_JAR define to each tool's CFLAGS.
* tools/toolwrapper.c (main): Set bootclasspath, not classpath.
Add ASM_JAR to bootclasspath.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Scrollbar.java:
(setLineIncrement): Removed unnecessary if-clause and if
lineIncrement == 0, then it should be set to 1, not 0.
(setPageIncrement): Removed unnecessary if-clause and if
pageIncrement == 0, then it should be set to 1, not 0.
(setValues): If visibleAmount <= 0, it should be set to 1, not 0.
If maximum <= minimum, maximum should be set to mininum + 1. The
actual value of maximum is maximum - visibleAmount, so I made
this change to the appropriate if-check. Remove the two unneccessary
if-clauses.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(cairoSetFont): New method.
(copy): Set font using setFont method.
(setFont): Call cairoSetFont.
(setup): Set font using setFont method.
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h: Added method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
(install_font_peer): Removed.
(cairoDrawGlyphVector): Removed call to install_font_peer.
(cairoSetFont): New method.
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/NativeEventLoopRunningEvent.java: New file.
* gnu/java/awt/peer/gtk/GtkMainThread.java: Post
NativeEventLoopRunningEvent after GTK main loop start and stop.
* java/awt/EventQueue.java (isShutdown): Check nativeLoopRunning.
(getNextEvent): Set dispatchThread to null.
(postEventImpl): Set nativeLoopRunning.
(pop): Interrupt event dispatch thread.
* java/awt/Frame.java (noteFrame): Synchronize on weakFrames.
|
|
|
|
|
|
|
| |
* native/jni/java-net/gnu_java_net_VMPlainSocketImpl.c (config-int.h):
Added include.
* native/jni/java-nio/gnu_java_nio_VMChannel.c (config-int.h):
Likewise.
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/javax/crypto/pad/PKCS7.java (unpad): Removed an unnecessary test.
* javax/crypto/CipherOutputStream.java: Re-implemented.
* gnu/javax/crypto/jce/cipher/CipherAdapter.java
(engineUpdate(byte[], int, int)): Always keep data for unpadding in padded
decryption mode and check if it is a complete block.
(engineUpdate(byte[], int, int, byte[], int)): Likewise.
(engineDoFinal(byte[], int, int)): In padded decryption mode, take
partially processed data into account.
|
|
|
|
|
|
|
|
| |
Don't use mangled class name for .h file.
* tools/gnu/classpath/tools/javah/JniStubPrinter.java (printClass):
Don't use mangled class name for .c file.
* tools/gnu/classpath/tools/javah/CniPrintStream.java (writeClass):
Handle classes from the default package.
|
|
|
|
| |
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h: Added missing constants.
|
|
|
|
|
|
|
|
| |
PR 29510
* java/awt/image/BufferedImage.java
(constructor): Updated some properties of default image types.
* gnu/java/awt/peer/gtk/BufferedImageGraphics.java
(argb32): Updated field to match default in BufferedImage.
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 29419
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(copyArea): Changed size comparison to return when size == 0
too.
* javax/swing/JViewport.java
(paintBackingStore): Check width and height of blitted area
and only do blit if its > 0.
(paintBlit): Check width and height of blitted area
and only do blit if its > 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 27091
* gnu/java/awt/peer/gtk/GtkFramePeer.java
(maximize): New native method.
(unmaximize): New native method.
(iconify): New native method.
(deiconify): New native method.
(getState): Implemented.
(setState): Implemented.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
(oldState): Rename to windowState and made protected, so that
the FramePeer can access it.
(postWindowEvent): Handle state change events more gently and
correctly.
* java/awt/Frame.java
(getState): Fetch state from getExtendedState().
(setExtendedState): Update the peer. Check if the state change
is actually supported.
(getExtendedState): Update the state from the peer.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c
(maximize): New method.
(unmaximize): New method.
(iconify): New method.
(deiconify): New method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(AWT_FRAME_NORMAL): New macro.
(AWT_FRAME_ICONIFIED): New macro.
(AWT_FRAME_MAXIMIZED_BOTH): New macro.
(window_window_state_cb): Rewritten to handle window state changes
more gently (mostly on the java side of the world).
* include/gnu_java_awt_peer_gtk_GtkFramePeer.h: Regenerated.
|
|
|
|
|
|
|
| |
* java/awt/CardLayout.java:
(maximumLayoutSize): Return a new Dimension with Integer.MAX_VALUE as
its height and width if Container passed as argument is null.
(gotoComponent): Consider the case where the component is not visible.
|