| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
* java/awt/Component.java
(translateEvent): oldKey should be the value of the
key char.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(getAccessibleName): Just return accessibleName,
* javax/swing/AbstractButton.java
(getAccessibleStateSet): Mark as stub,
(getAccessibleName): Implemented,
(getAcessibleIcon): Mark as stub,
(getAccessibleRelationSet): Likewise,
(getAccessibleAction): Likewise,
(getAccessibleValue): Likewise,
(getAccessibleActionCount): Likewise,
(getAccessibleActionDescription): Likewise,
(doAccessibleAction): Likewise,
(getCurrentAccessibleValue): Likewise,
(setCurrentAccessibleValue): Likewise,
(getMinimumAccessibleValue): Likewise,
(getMaximumAccessibleValue): Likewise,
(getAccessibleText): Likewise,
(getIndexAtPoint): Likewise,
(getCharacterBounds): Likewise,
(getCharCount): Likewise,
(getCaretPosition): Likewise,
(getAtIndex): Likewise,
(getAfterIndex): Likewise,
(getBeforeIndex): Likewise,
(getCharacterAttribute): Likewise,
(getSelectionStart): Likewise,
(getSelectionEnd): Likewise,
(getSelectedText): Likewise,
(getTextRectangle): Likewise,
(setIconTextGap): Fire PropertyChangeEvent, not state changed,
(getIconTextGap): Added @since 1.4,
(setContentAreaFilled): Reordered code to make event sequence match
reference implementation,
* javax/swing/JButton.java
(getSelectedObjects): Removed,
*javax/swing/JComponent.java
(getAccessibleName): Call super.
----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| |
2006-03-21 Robert Schuster <robertschuster@fsfe.org>
* java/awt/Component.java:
(processMouseEvent): Remove call to consume event.
(dispatchEventImpl): Handle specific events first, do focus request
only when mouse event was not yet consumed.
* javax/swing/text/DefaultCaret.java:
(mousePressed): Rewritten.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
MouseEvent.MOUSE_WHEEL.
* gnu/java/awt/peer/gtk/GtkComponentPeer.java (postMouseWheelEvent):
New callback method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(AWT_MOUSE_WHEEL): New constant.
(AWT_WHEEL_UNIT_SCROLL): Likewise.
(postMouseWheelEventID): New static variable.
(cp_gtk_component_init_jni): Record postMouseWheelEventID.
(cp_gtk_component_connect_mouse_signals): Connect scroll-event.
(button_number): Renamed to ...
(button_number_direction): variable to hold button number or scroll
direction.
(component_button_press_cb): Use button_number_direction.
(component_scroll_cb): New static callback function.
|
|
|
|
|
|
| |
* java/awt/Component.java
(show): repaint should only be called if the component
isShowing and isLightweight.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(dispatchEventImpl): Let the Toolkit dispatch global events.
* java/awt/Container.java
(dispatchEventImpl): Let the LightweightDispatcher handle events
first.
* java/awt/EventQueue.java
(dispatchEvent): Don't do the global event dispatching here. This
is moved to the Component.
(globalDispatchEvent): Moved this method to Toolkit.
* java/awt/LightweightDispatcher.java
(instances): New field.
(getInstance): New method. Delivers an instance of
LightweightDispatcher.
(LightweightDispatcher): Made default constructor private.
(dispatchEvent): New method. Replaces the eventDispatched method.
This now returns true when the event was actually dispatched.
(eventDispatched): Replaced by dispatchEvent.
(handleMouseEvent): Send MOUSE_CLICKED to the same component that
received the last MOUSE_RELEASED.
* java/awt/Toolkit.java
(Toolkit): Don't register LightweightDispatcher as global event
handler.
(globalDispatchEvent): Moved here from EventQueue.
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(reshape): Reverted last patch. Should have check here.
(addNotify): Added check. If parent is lightweight, then
initialize listener on the parent.
(HeavyweightInLightweightListener): New class.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/GLightweightPeer.java
(repaint): Scott's proposed fix. Send repaint to the
component's parent.
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
(setBounds): Removed next_parent, not needed. Removed
lightweightChild, we always need to compensate for the
menu bar's height.
* java/awt/Component.java
(setBounds): Removed check. Caused lots of problems, because some
components were not being invalidated. Components should be
invalidated when they are resized or moved, and in some cases,
when a parent is resized/moved, the components do not know
about it and do not adjust.
* java/awt/Graphics.java
(hitClip): Scott's proposed fix. Added check to handle a
null clip.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
AdjustmentEvents to 1.0 Events.
* java/awt/Scrollbar.java (dispatchEventImpl): Set valueIsAdjusting.
Call setValue() before processing event.
* gnu/java/awt/peer/gtk/GtkScrollbarPeer.java (setValues): Check
whether we are currently changing and being called back from the
Scrollbar component.
(setBarValues): New native method.
(postAdjustmentEvent): Mark AdjustmentEvent as user generated.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollbarPeer.c
(Java_gnu_java_awt_peer_gtk_GtkScrollbarPeer_setValues): Renamed to
Java_gnu_java_awt_peer_gtk_GtkScrollbarPeer_setBarValue
* include/gnu_java_awt_peer_gtk_GtkScrollbarPeer.h: Regenerated.
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
Removed duplicate methods.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkDialogPeer.java
(setVisible): Removed method.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
(setLocation): New method.
(setLocationUnlocked): New method.
(show): Changed to use setLocation instead of setBounds.
* java/awt/Component.java
(show): Should call peer.show(), not peer.setVisible(), so the
location of the component is correctly set.
(preferredSize): Added curly braces so else statements are
properly associated with if's.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(Java_gnu_java_awt_peer_gtk_GtkWindowPeer_nativeSetLocation):
New function.
(Java_gnu_java_awt_peer_gtk_GtkWindowPeer_nativeSet
LocationUnlocked): New function.
* include/gnu_java_awt_peer_gtk_GtkWindowPeer.h:
Added declarations for Java_gnu_java_awt_peer_gtk_
GtkWindowPeer_nativeSetLocation and
Java_gnu_java_awt_peer_gtk_GtkWindowPeer
_nativeSetLocationUnlocked.
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(repaint): No need to call isShowing, it is done in the other repaint call.
(repaint): Likewise.
(repaint): Likewise.
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(repaint): Reverted last change.
(repaint): Likewise.
(repaint): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkPanelPeer.java
(handleEvent): Made more efficent by handling paint event and
setting the clip for the graphics.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
(handleEvent): Likewise.
* java/awt/Component.java
(repaint): No need to call isShowing, it is done in the other repaint call.
(repaint): Likewise.
(repaint): Likewise.
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(firePropertyChange(String,byte,byte)): Made method public.
(firePropertyChange(String,char,char)): Made method public.
(firePropertyChange(String,short,short)): Made method public.
(firePropertyChange(String,long,long)): Made method public.
(firePropertyChange(String,float,float)): Made method public.
(firePropertyChange(String,double,double)): Made method public.
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(firePropertyChange(String,byte,byte)): New method.
(firePropertyChange(String,char,char)): New method.
(firePropertyChange(String,short,short)): New method.
(firePropertyChange(String,long,long)): New method.
(firePropertyChange(String,float,float)): New method.
(firePropertyChange(String,double,double)): New method.
|
|
|
|
|
|
| |
* java/awt/Component.java
(coalescePaintEvent): Don't try to optimize coalescing. This hurts
more than it helps.
|
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(dispatchEvent): Moved handling of old style events from
dispatchEventImpl() to this method.
(translateEvent): Removed unnecessary cast.
(dispatchEventImpl): Moved handling of old style events to
dispatchEvent().
|
|
|
|
|
|
|
|
|
| |
Fixes bug #25165
* java/awt/Component.java:
(processFocusEvent): Don't check if focus opposite is the same as the
receiving Component, this is now done in dispatchEventImpl.
(dispatchEventImpl): Don't dispatch FocusEvents whose opposite
Components are the same.
|
|
|
|
|
|
| |
* java/awt/Component.java:
(processFocusEvent): Don't dispatch events if the focus opposite is the
same as the receiving Component.
|
|
|
|
|
| |
* java/awt/Component.java
(getListeners): Added some details to the API docs.
|
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(setBackground): Don't inherit background from parent.
(addMouseMotionListener): Enable MOUSE_MOTION_EVENT_MASK instead
of MOUSE_EVENT_MASK.
(eventTypeEnabled): Handle mouse events and mouse motion events
separately.
|
|
|
|
|
|
|
|
|
|
|
| |
Reported by Roman Schnider <schnider@aicas.com>:
* java/awt/Component.java
(reshape): Removed unused statement.
(repaint()): Don't forward to parent when not showing.
(repaint(int)): Don't forward to parent when not showing.
(repaint(int,int,int,int)): Don't forward to parent when not showing.
(repaint(float,int,int,int,int)): Don't forward to parent when not
showing.
|
|
|
|
|
| |
* java/awt/Component.java
(invalidate): Don't invalidate invalid parents.
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(invalidate): Invalidate up the whole tree, regardless if some
parent is already marked invalid. This is needed in some situations
for layout managers to throw away their cache.
|
|
|
|
|
|
| |
* java/awt/Component.java
(getForeground): Return null as default color, instead of some
system color.
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(getMaximumSize): Return (Short.MAX_VALUE, Short.MAX_VALUE) instead
of (Integer.MAX_VALUE, Integer.MAX_VALUE) as shown by the
Mauve test.
|
|
|
|
|
|
|
| |
* java/awt/Component.java:
(requestFocus): If this component is a Container, start here, not at
its parent when looking for the top-level ancestor. If no top-level
ancestor is found (parent == null), return.
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(isShowing): Fixed condition.
(show): Only repaint if component is showing.
(hide): Only repaint if component was showing.
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(reshape): Fixed calculation of newBounds and oldBounds to create
rectangles relative to the parent, and not to the parent's parent.
Solves a painting problem in an app here.
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(getFont): Fall back to peer.getGraphics().getFont() if no font
is found.
(getGraphics): Set font here. This avoids a loop in the above
fallback.
* gnu/java/awt/peer/gtk/GdkGraphics.java
(GdkGraphics): Don't initialize font here. This would cause a
loop in the above fallback.
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes Bug #24067
* java/awt/Component.java
(removeNotify): Should call hide on the peer before
disposing of it. This stops the flashing when the
tooltips are removed from the component.
* javax/swing/plaf/basic/BasicToolTipUI.java
(getPreferredSize): If the accelerator is null, we should
paint the mnenomic if it is available.
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(hide): Repaint component before invalidating the parent.
(show): Repaint component before invalidating the parent.
* javax/swing/JComponent.java
(revalidate): Check if we are in the event thread, and if not,
then queue a self-request in the event thread.
(setVisible): Repaint the parent and queue a revalidate.
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(getFont): Should return null, not a default font.
* javax/swing/ToolTipManager.java
(showTip): Called revalidate currentTip before painted, and
called validate on JDialog toolTip.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
checkbox group.
2005-09-19 Robert Schuster <robertschuster@fsfe.org>
* java/awt/Checkbox.java:
(Checkbox): Properly set as selected checkbox in corresponding
checkbox group.
(paramString): Removed checkbox group information.
* java/awt/Component.java:
(paramString): Removed redundant "=".
|
|
|
|
|
|
| |
* java/awt/Component.java:
(isDisplayable): Don't check the parent's displayability, only return
true if peer is non-null and false if peer is null.
|
|
|
|
|
|
|
| |
* java/awt/Component.java:
(isDisplayable): Return true if peer != null.
* java/awt/Window.java:
(isDisplayable): Removed this method. Now inherits from Component.
|
|
|
|
|
|
|
| |
* java/awt/Component.java
This applies to various variants of the repaint() methods:
(repaint): If the component is not showing, forward repaint
request to the parent.
|
|
|
|
|
| |
* java/awt/Component.java
(dispatchEventImpl): Always call peer.handleEvent().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(reshape): Simplified repainting of parent.
(paint): Don't call peer.paint() here. The paint method is
exclusivly meant to be overridden by subclasses that wish to
perform custom painting and should do nothing by default.
(repaint): Use local variable in null pointer checks to avoid
NullPointerExceptions.
(imageUpdate): Slight formatting adjustments.
(dispatchEvent): Don't call peer.handleEvent() here, this must
be done in dispatchEventImpl().
(dispatchEventImpl): Dispatch PAINT and UPDATE events to the
peer.
* java/awt/Container.java
(paint): Don't call super.paint() here, this method does nothing
anyway. Visit only lightweight children.
(update): Instead of clearing the background only for top-level
containers, clear the background for all heavyweight containers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Container.java:
(preferredSize): Call getLayout() instead of directly referencing
the private field. This makes components work that override
getLayout().
(minimumSize): Call getLayout() instead of directly referencing
the private field. This makes components work that override
getLayout(). Use cached size if component is still valid.
(maximumSize): Call getLayout() instead of directly referencing
the private field. This makes components work that override
getLayout(). Use cached size if component is still valid.
(update): If we are a top-level-container, call super.update(),
otherwise directly call paint().
(visitChildren): Also visit children that are itself Containers.
* java/awt/Component.java
(update): Clear the background only for lightweight and top-level
components.
|
|
|
|
|
| |
* java/awt/Component.java
(getBounds): Removed debug statements that accidentally slipped in.
|
|
|
|
|
|
| |
* java/awt/Toolkit.java
(createCustomCursor): Added check for headless environment.
(getBestCursorSize): Added check for headless environment.
|
|
|
|
| |
* java/awt/Component.java: Reverted earlier change.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/AWTUtilities.java:
Added methods from SwingUtilities so that AWT does not have to
depend on Swing.
* java/awt/Component.java:
Reverted my DEFAULT_FONT patch from yesterday. This does not
seem to work with the Gtk peers.
* java/awt/Container.java
(addImpl): Call addNotify() on the added child. Invalidate not
only the container but also the added child. Repaint the container.
(remove): Repaint the container.
(invalidate): Also invalidate the LayoutManager.
(invalidateTree): Call super.invalidate to invalidate the container
itself. Also invalidate the LayoutManager.
(setFont): Only set the font if the specified argument actually
differs from the current font.
(preferredSize): Optimized this method so the LayoutManager is only
called if the layout is invalid. Otherwise we return the preferred
size that has been stored during last validation/layout.
(getAlignmentX): Despite common belief, this method does _not_
call the LayoutManagers getAlignmentX in the JDK. So we also don't.
(getAlignmentY): Despite common belief, this method does _not_
call the LayoutManagers getAlignmentX in the JDK. So we also don't.
(dispatchEventImpl): Let the dispatcher decide if it is enabled
for the incoming event type.
(eventTypeEnabled): Enables only container events for containers.
(addNotifyContainerChildren): Coalesced two if statements into one.
Enable events on the dispatcher for this container.
(LightweightDispatcher): Made this class reentrant. Handle
events enabling/disabling here.
|
|
|
|
| |
* java/awt/List.java (List): Initialize selected[] to an empty array.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(setForeground): Fire PropertyChangeEvent after the foreground
has actually changed, instead of before.
(setBackground): Fire PropertyChangeEvent after the foreground
has actually changed, instead of before. Avoid one comparison
at the beginning of method.
(getBackground): If background is null and parent is null, return
null, instead of SystemColor.window. This is what it's supposed
to do.
(getFont): Avoid NPE by creating a local reference. Return
static final DEFAULT_FONT instead of creating a new font every time
we and our parents have no font set.
(setFont): Made check for font equality more precise.
(paramString): Added parent in paramString.
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(show): Instead of invalidating the component, only invalidate
the parent, if there is one. Also, avoid NPEs by creating local
references.
(hide): Instead of invalidating the component, only invalidate
the parent, if there is one. Also, avoid NPEs by creating local
references.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/AWTKeyStroke.java: fixed API doc links,
* java/awt/BufferCapabilities.java: likewise,
* java/awt/ColorPaintContext.java: likewise,
* java/awt/Component.java: likewise,
* java/awt/Container.java: likewise,
* java/awt/EventQueue.java: likewise,
* java/awt/GraphicsDevice.java: likewise,
* java/awt/Image.java: likewise,
* java/awt/KeyboardFocusManager.java: likewise,
* java/awt/MediaTracker.java: likewise,
* java/awt/PrintJob.java: likewise,
* java/awt/Robot.java: likewise.
|