Author: [EMAIL PROTECTED]
Date: Wed Nov 12 14:28:21 2008
New Revision: 4035
Modified:
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/Image.java
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/Label.java
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/ListBox.java
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/MenuBar.java
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/PopupPanel.java
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/PushButton.java
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/RichTextArea.java
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/RootPanel.java
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/SuggestBox.java
Log:
Undoing more autoformat damage
Modified:
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/Image.java
==============================================================================
---
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/Image.java
(original)
+++
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/Image.java
Wed Nov 12 14:28:21 2008
@@ -67,7 +67,10 @@
* will be lost.
* </p>
*
- * <h3>CSS Style Rules</h3> <ul class="css"> <li>.gwt-Image { }</li> </ul>
+ * <h3>CSS Style Rules</h3>
+ * <ul class="css">
+ * <li>.gwt-Image { }</li>
+ * </ul>
*
* Tranformations between clipped and unclipped state will result in a
loss of
* any style names that were set/added; the only style names that are
preserved
Modified:
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/Label.java
==============================================================================
---
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/Label.java
(original)
+++
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/Label.java
Wed Nov 12 14:28:21 2008
@@ -43,7 +43,10 @@
* This widget uses a <div> element, causing it to be displayed with
block
* layout.
*
- * <h3>CSS Style Rules</h3> <ul class='css'> <li>.gwt-Label { }</li> </ul>
+ * <h3>CSS Style Rules</h3>
+ * <ul class='css'>
+ * <li>.gwt-Label { }</li>
+ * </ul>
*
* <p>
* <h3>Example</h3>
Modified:
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/ListBox.java
==============================================================================
---
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/ListBox.java
(original)
+++
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/ListBox.java
Wed Nov 12 14:28:21 2008
@@ -32,7 +32,10 @@
* <img class='gallery' src='ListBox.png'/>
* </p>
*
- * <h3>CSS Style Rules</h3> <ul class='css'> <li>.gwt-ListBox { }</li>
</ul>
+ * <h3>CSS Style Rules</h3>
+ * <ul class='css'>
+ * <li>.gwt-ListBox { }</li>
+ * </ul>
*
* <p>
* <h3>Example</h3>
Modified:
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/MenuBar.java
==============================================================================
---
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/MenuBar.java
(original)
+++
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/MenuBar.java
Wed Nov 12 14:28:21 2008
@@ -41,34 +41,33 @@
* <img class='gallery' src='MenuBar.png'/>
* </p>
*
- * <h3>CSS Style Rules</h3> <ul class='css'> <li>.gwt-MenuBar { the menu
bar
- * itself }</li> <li>.gwt-MenuBar-horizontal { dependent style applied to
- * horizontal menu bars }</li> <li>.gwt-MenuBar-vertical { dependent style
- * applied to vertical menu bars }</li> <li>.gwt-MenuBar .gwt-MenuItem {
menu
- * items }</li> <li>.gwt-MenuBar .gwt-MenuItem-selected { selected menu
items }</li>
- * <li>.gwt-MenuBar .gwt-MenuItemSeparator { section breaks between menu
items }
- * </li> <li>.gwt-MenuBar .gwt-MenuItemSeparator .menuSeparatorInner {
inner
- * component of section separators }</li> <li>.gwt-MenuBarPopup
- * .menuPopupTopLeft { the top left cell }</li> <li>.gwt-MenuBarPopup
- * .menuPopupTopLeftInner { the inner element of the cell }</li> <li>
- * .gwt-MenuBarPopup .menuPopupTopCenter { the top center cell }</li> <li>
- * .gwt-MenuBarPopup .menuPopupTopCenterInner { the inner element of the
cell }</li>
- * <li>.gwt-MenuBarPopup .menuPopupTopRight { the top right cell }</li>
<li>
- * .gwt-MenuBarPopup .menuPopupTopRightInner { the inner element of the
cell }</li>
- * <li>.gwt-MenuBarPopup .menuPopupMiddleLeft { the middle left cell
}</li> <li>
- * .gwt-MenuBarPopup .menuPopupMiddleLeftInner { the inner element of the
cell }
- * </li> <li>.gwt-MenuBarPopup .menuPopupMiddleCenter { the middle center
cell }
- * </li> <li>.gwt-MenuBarPopup .menuPopupMiddleCenterInner { the inner
element
- * of the cell }</li> <li>.gwt-MenuBarPopup .menuPopupMiddleRight { the
middle
- * right cell }</li> <li>.gwt-MenuBarPopup .menuPopupMiddleRightInner { the
- * inner element of the cell }</li>
<li>.gwt-MenuBarPopup .menuPopupBottomLeft {
- * the bottom left cell }</li>
<li>.gwt-MenuBarPopup .menuPopupBottomLeftInner {
- * the inner element of the cell }</li> <li>.gwt-MenuBarPopup
- * .menuPopupBottomCenter { the bottom center cell }</li>
<li>.gwt-MenuBarPopup
- * .menuPopupBottomCenterInner { the inner element of the cell }</li> <li>
- * .gwt-MenuBarPopup .menuPopupBottomRight { the bottom right cell }</li>
<li>
- * .gwt-MenuBarPopup .menuPopupBottomRightInner { the inner element of the
cell
- * }</li> </ul>
+ * <h3>CSS Style Rules</h3> <ul class='css'>
+ * <li>.gwt-MenuBar { the menu bar itself }</li>
+ * <li>.gwt-MenuBar-horizontal { dependent style applied to horizontal
menu bars }</li>
+ * <li>.gwt-MenuBar-vertical { dependent style applied to vertical menu
bars }</li>
+ * <li>.gwt-MenuBar .gwt-MenuItem { menu items }</li>
+ * <li>.gwt-MenuBar .gwt-MenuItem-selected { selected menu items }</li>
+ * <li>.gwt-MenuBar .gwt-MenuItemSeparator { section breaks between menu
items } </li>
+ * <li>.gwt-MenuBar .gwt-MenuItemSeparator .menuSeparatorInner { inner
component of section separators }</li>
+ * <li>.gwt-MenuBarPopup .menuPopupTopLeft { the top left cell }</li>
+ * <li>.gwt-MenuBarPopup .menuPopupTopLeftInner { the inner element of the
cell }</li>
+ * <li>.gwt-MenuBarPopup .menuPopupTopCenter { the top center cell }</li>
+ * <li>.gwt-MenuBarPopup .menuPopupTopCenterInner { the inner element of
the cell }</li>
+ * <li>.gwt-MenuBarPopup .menuPopupTopRight { the top right cell }</li>
+ * <li>.gwt-MenuBarPopup .menuPopupTopRightInner { the inner element of
the cell }</li>
+ * <li>.gwt-MenuBarPopup .menuPopupMiddleLeft { the middle left cell }</li>
+ * <li>.gwt-MenuBarPopup .menuPopupMiddleLeftInner { the inner element of
the cell }</li>
+ * <li>.gwt-MenuBarPopup .menuPopupMiddleCenter { the middle center cell
}</li>
+ * <li>.gwt-MenuBarPopup .menuPopupMiddleCenterInner { the inner element
of the cell }</li>
+ * <li>.gwt-MenuBarPopup .menuPopupMiddleRight { the middle right cell
}</li>
+ * <li>.gwt-MenuBarPopup .menuPopupMiddleRightInner { the inner element of
the cell }</li>
+ * <li>.gwt-MenuBarPopup .menuPopupBottomLeft { the bottom left cell }</li>
+ * <li>.gwt-MenuBarPopup .menuPopupBottomLeftInner { the inner element of
the cell }</li>
+ * <li>.gwt-MenuBarPopup .menuPopupBottomCenter { the bottom center cell
}</li>
+ * <li>.gwt-MenuBarPopup .menuPopupBottomCenterInner { the inner element
of the cell }</li>
+ * <li>.gwt-MenuBarPopup .menuPopupBottomRight { the bottom right cell
}</li>
+ * <li>.gwt-MenuBarPopup .menuPopupBottomRightInner { the inner element of
the cell }</li>
+ * </ul>
*
* <p>
* <h3>Example</h3>
Modified:
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/PopupPanel.java
==============================================================================
---
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/PopupPanel.java
(original)
+++
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/PopupPanel.java
Wed Nov 12 14:28:21 2008
@@ -55,9 +55,11 @@
* <h3>Example</h3>
* [EMAIL PROTECTED] com.google.gwt.examples.PopupPanelExample}
* </p>
- * <h3>CSS Style Rules</h3> <ul class='css'> <li>.gwt-PopupPanel { the
outside
- * of the popup }</li> <li>.gwt-PopupPanel .popupContent { the wrapper
around
- * the content }</li> </ul>
+ * <h3>CSS Style Rules</h3>
+ * <ul class='css'>
+ * <li>.gwt-PopupPanel { the outside of the popup }</li>
+ * <li>.gwt-PopupPanel .popupContent { the wrapper around the content
}</li>
+ * </ul>
*/
public class PopupPanel extends SimplePanel implements SourcesPopupEvents,
EventPreview, HasAnimation, HasCloseHandlers<PopupPanel> {
Modified:
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/PushButton.java
==============================================================================
---
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/PushButton.java
(original)
+++
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/PushButton.java
Wed Nov 12 14:28:21 2008
@@ -25,9 +25,10 @@
* <img class='gallery' src='PushButton.png'/>
* </p>
*
- * <h3>CSS Style Rules</h3> <ul class="css"> <li>
-
* .gwt-PushButton-up/down/up-hovering/down-hovering/up-disabled/down-disabled
- * {.html-face}</li> </ul>
+ * <h3>CSS Style Rules</h3>
+ * <ul class="css">
+ *
<li>.gwt-PushButton-up/down/up-hovering/down-hovering/up-disabled/down-disabled
{.html-face}</li>
+ * </ul>
*
* <p>
* <h3>Example</h3> [EMAIL PROTECTED]
com.google.gwt.examples.PushButtonExample}
Modified:
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/RichTextArea.java
==============================================================================
---
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/RichTextArea.java
(original)
+++
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/RichTextArea.java
Wed Nov 12 14:28:21 2008
@@ -24,8 +24,8 @@
*
* Because some browsers do not support rich text editing, and others
support
* only a limited subset of functionality, there are two formatter
interfaces,
- * accessed via [EMAIL PROTECTED] #getBasicFormatter()} and [EMAIL PROTECTED]
#getExtendedFormatter()}
- * . A browser that does not support rich text editing at all will return
+ * accessed via [EMAIL PROTECTED] #getBasicFormatter()} and [EMAIL PROTECTED]
#getExtendedFormatter()}.
+ * A browser that does not support rich text editing at all will return
* <code>null</code> for both of these, while one that supports only the
basic
* functionality will return <code>null</code> for the latter.
*
@@ -33,7 +33,9 @@
* <img class='gallery' src='RichTextArea.png'/>
* </p>
*
- * <h3>CSS Style Rules</h3> <ul class="css"> <li>.gwt-RichTextArea { }</li>
+ * <h3>CSS Style Rules</h3>
+ * <ul class="css">
+ * <li>.gwt-RichTextArea { }</li>
* </ul>
*/
public class RichTextArea extends FocusWidget implements HasHTML,
Modified:
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/RootPanel.java
==============================================================================
---
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/RootPanel.java
(original)
+++
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/RootPanel.java
Wed Nov 12 14:28:21 2008
@@ -28,8 +28,7 @@
/**
* The panel to which all other widgets must ultimately be added.
RootPanels are
- * never created directly. Rather, they are accessed via [EMAIL PROTECTED]
RootPanel#get()}
- * .
+ * never created directly. Rather, they are accessed via [EMAIL PROTECTED]
RootPanel#get()}.
*
* <p>
* Most applications will add widgets to the default root panel in their
Modified:
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/SuggestBox.java
==============================================================================
---
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/SuggestBox.java
(original)
+++
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/SuggestBox.java
Wed Nov 12 14:28:21 2008
@@ -275,15 +275,12 @@
left = textBoxAbsoluteLeft - offsetWidthDiff;
// If the suggestion popup is not as wide as the text box,
always
- // align
- // to the right edge of the text box. Otherwise, figure out
whether
- // to
- // right-align or left-align the popup.
+ // align to the right edge of the text box. Otherwise, figure
out
+ // whether to right-align or left-align the popup.
if (offsetWidthDiff > 0) {
// Make sure scrolling is taken into account, since
- // box.getAbsoluteLeft()
- // takes scrolling into account.
+ // box.getAbsoluteLeft() takes scrolling into account.
int windowRight = Window.getClientWidth()
+ Window.getScrollLeft();
int windowLeft = Window.getScrollLeft();
@@ -293,25 +290,20 @@
+ textBoxOffsetWidth;
// Distance from the right edge of the text box to the right
edge
- // of the
- // window
+ // of the window
int distanceToWindowRight = windowRight
- textBoxLeftValForRightEdge;
// Distance from the right edge of the text box to the left
edge
- // of the
- // window
+ // of the window
int distanceFromWindowLeft = textBoxLeftValForRightEdge
- windowLeft;
// If there is not enough space for the overflow of the
popup's
- // width to
- // the right of the text box and there IS enough space for
the
- // overflow
- // to the right of the text box, then left-align the popup.
- // However, if
- // there is not enough space on either side, stick with
- // right-alignment.
+ // width to the right of the text box and there IS enough
space
+ // for the overflow to the right of the text box, then
left-align
+ // the popup. However, if there is not enough space on either
+ // side, stick with right-alignment.
if (distanceFromWindowLeft < offsetWidth
&& distanceToWindowRight >= offsetWidthDiff) {
// Align with the left edge of the text box.
@@ -324,36 +316,28 @@
left = box.getAbsoluteLeft();
// If the suggestion popup is not as wide as the text box,
always
- // align
- // to the left edge of the text box. Otherwise, figure out
whether
- // to
- // left-align or right-align the popup.
+ // align to the left edge of the text box. Otherwise, figure
out
+ // whether to left-align or right-align the popup.
if (offsetWidthDiff > 0) {
// Make sure scrolling is taken into account, since
- // box.getAbsoluteLeft()
- // takes scrolling into account.
+ // box.getAbsoluteLeft() takes scrolling into account.
int windowRight = Window.getClientWidth()
+ Window.getScrollLeft();
int windowLeft = Window.getScrollLeft();
// Distance from the left edge of the text box to the right
edge
- // of the
- // window
+ // of the window
int distanceToWindowRight = windowRight - left;
// Distance from the left edge of the text box to the left
edge of
- // the
- // window
+ // the window
int distanceFromWindowLeft = left - windowLeft;
// If there is not enough space for the overflow of the
popup's
- // width to
- // the right of hte text box, and there IS enough space for
the
- // overflow
- // to the left of the text box, then right-align the popup.
- // However, if
- // there is not enough space on either side, then stick with
- // left-alignment.
+ // width to the right of hte text box, and there IS enough
space
+ // for the overflow to the left of the text box, then
right-align
+ // the popup. However, if there is not enough space on either
+ // side, then stick with left-alignment.
if (distanceToWindowRight < offsetWidth
&& distanceFromWindowLeft >= offsetWidthDiff) {
// Align with the right edge of the text box.
@@ -367,8 +351,7 @@
int top = box.getAbsoluteTop();
// Make sure scrolling is taken into account, since
- // box.getAbsoluteTop()
- // takes scrolling into account.
+ // box.getAbsoluteTop() takes scrolling into account.
int windowTop = Window.getScrollTop();
int windowBottom = Window.getScrollTop() +
Window.getClientHeight();
@@ -377,20 +360,15 @@
int distanceFromWindowTop = top - windowTop;
// Distance from the bottom edge of the window to the bottom
edge of
- // the
- // text box
+ // the text box
int distanceToWindowBottom = windowBottom
- (top + box.getOffsetHeight());
// If there is not enough space for the popup's height below the
text
- // box
- // and there IS enough space for the popup's height above the
text
- // box,
- // then then position the popup above the text box. However, if
there
- // is
- // not enough space on either side, then stick with displaying
the
- // popup
- // below the text box.
+ // box and there IS enough space for the popup's height above
the text
+ // box, then then position the popup above the text box.
However, if
+ // there is not enough space on either side, then stick with
+ // displaying the popup below the text box.
if (distanceToWindowBottom < offsetHeight
&& distanceFromWindowTop >= offsetHeight) {
top -= offsetHeight;
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---