[commit-cp] classpath ./ChangeLog javax/swing/JViewport.jav...

2005-11-29 Thread Lillian Angel
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Lillian Angel [EMAIL PROTECTED]   05/11/29 20:22:12

Modified files:
.  : ChangeLog 
javax/swing: JViewport.java 
javax/swing/plaf/basic: BasicFileChooserUI.java 
javax/swing/plaf/metal: MetalFileChooserUI.java 

Log message:
2005-11-29  Lillian Angel  [EMAIL PROTECTED]

* javax/swing/JViewport.java
(setView): Added check to prevent NPE.
* javax/swing/plaf/basic/BasicFileChooserUI.java
(ListLabelRenderer): Removed class, never used.
* javax/swing/plaf/metal/MetalFileChooserUI.java
(DetailTableModel): Removed, not needed.
(TableFileRenderer): Implemented to override some color
and icon defaults in the default table renderer.
(actionPerformed): Set selection in list, if something was
selected in the table.
(actionPerformed): Set selection in table, if something was
selected in the list.
(propertyChange): Added code to set the selection for the table,
as well as the list. This depends on what view we are in.
(editFile): Fixed to call scrollRectToVisible instead.
(TableClickListener): Implemented new private class to take
care of double clicking (changing/opening directories/files)
and single clicking (editing).
(TableClickListener.mouseClicked): Implemented
(TableClickListener.editFile): Implemented
(TableClickListener.completeEditing): Implemented
(TableClickListener.EditingActionListener): Implemented
(TableClickListener.closeDialog): Implemented
(installListeners): Added code to initialize listener fields.
(uninstallListeners): Added code to uninstall all listeners.
(createList): Changed to use scrollPane field.
(createDetailsView): Changed to use updateTable function. Set
some characteristics for the table: column selection, renderer,
listener etc.
(updateTable): Implemented to changed/add/remove rows from the
table, as needed.
(removeControlButtons): Added repaint, revalidate calls.
(ensureFileIsVisible): Removed. Does the same thing as super.
(rescanCurrentDirectory): Added check for different views.
(setDirectorySelected): Removed. Does the same thing as super.
(getDirectoryName): Removed. Does the same thing as super.
(setDirectoryName): Removed. Does the same thing as super.
(valueChanged): Changed comment.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5744tr2=1.5745r1=textr2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/JViewport.java.diff?tr1=1.36tr2=1.37r1=textr2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicFileChooserUI.java.diff?tr1=1.19tr2=1.20r1=textr2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/metal/MetalFileChooserUI.java.diff?tr1=1.9tr2=1.10r1=textr2=text





[commit-cp] classpath ./ChangeLog javax/swing/JViewport.jav...

2005-10-17 Thread Anthony Balkissoon
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Anthony Balkissoon [EMAIL PROTECTED]  05/10/17 19:08:23

Modified files:
.  : ChangeLog 
javax/swing: JViewport.java 
javax/swing/plaf/basic: BasicListUI.java BasicLookAndFeel.java 

Log message:
2005-10-17  Anthony Balkissoon  [EMAIL PROTECTED]

* javax/swing/JViewport.java:
(scrollRectToVisible): Return immediately if the View is null.  Check
for contentRect being bigger than the port bounds separately in each
direction, rather than together.
* javax/swing/plaf/basic/BasicListUI.java:
(KeyHandler): Removed this private class that listened directly for
key presses.  This is now handled through InputMap-ActionMap pairs.
(ActionListenerProxy): New class to wrap the Actions for this lists
ActionMap.
(ListAction): New class, the actions for keypresses on this list.
(convertModifiers): New private method converts key press modifiers to
the old style (CTRL_MASK instead of CTRL_DOWN_MASK, etc.).
(installKeyboardActions): Get the InputMap from the UIManager and
register new InputMap-ActionMap pairs, then set these as the parents
of the list's InputMap and ActionMap.
(selectNextIndex): Avoid NPE by checking if we're already at the last
index.
(selectPreviousIndex): Check if we're already at the first index.
* javax/swing/plaf/basic/BasicLookAndFeel.java:
(initComponentDefaults): Added bindings for List.focusInputMap.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5252tr2=1.5253r1=textr2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/JViewport.java.diff?tr1=1.31tr2=1.32r1=textr2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicListUI.java.diff?tr1=1.32tr2=1.33r1=textr2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicLookAndFeel.java.diff?tr1=1.60tr2=1.61r1=textr2=text





[commit-cp] classpath ./ChangeLog javax/swing/JViewport.jav...

2005-10-12 Thread Roman Kennke
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Roman Kennke [EMAIL PROTECTED]05/10/12 12:31:34

Modified files:
.  : ChangeLog 
javax/swing: JViewport.java ViewportLayout.java 

Log message:
2005-10-12  Roman Kennke  [EMAIL PROTECTED]

* javax/swing/JViewport.java
(ViewListener.componentResized): Only call revalidate instead of
going through weird reverting code.
(JViewport): First call updateUI, then set layout.
(setViewPosition): Don't do anything if there is no real
change.
(setView): Don't remove the old component. This is handled by
addImpl. Call revalidate().
* javax/swing/ViewportLayout.java
(layoutContainer): Preferably set view size to it's preferredSize
instead of its minimumSize.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5184tr2=1.5185r1=textr2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/JViewport.java.diff?tr1=1.28tr2=1.29r1=textr2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/ViewportLayout.java.diff?tr1=1.15tr2=1.16r1=textr2=text