com.google.gwt.user.client.ui
Class SuggestBox.DefaultSuggestionDisplay

java.lang.Object
  extended by com.google.gwt.user.client.ui.SuggestBox.SuggestionDisplay
      extended by com.google.gwt.user.client.ui.SuggestBox.DefaultSuggestionDisplay
All Implemented Interfaces:
HasAnimation
Enclosing class:
SuggestBox

public static class SuggestBox.DefaultSuggestionDisplay
extends SuggestBox.SuggestionDisplay
implements HasAnimation

The default implementation of SuggestBox.SuggestionDisplay displays suggestions in a PopupPanel beneath the SuggestBox.

CSS Style Rules

.gwt-SuggestBoxPopup
the suggestion popup
.gwt-SuggestBoxPopup .item
an unselected suggestion
.gwt-SuggestBoxPopup .item-selected
a selected suggestion
.gwt-SuggestBoxPopup .suggestPopupTopLeft
the top left cell
.gwt-SuggestBoxPopup .suggestPopupTopLeftInner
the inner element of the cell
.gwt-SuggestBoxPopup .suggestPopupTopCenter
the top center cell
.gwt-SuggestBoxPopup .suggestPopupTopCenterInner
the inner element of the cell
.gwt-SuggestBoxPopup .suggestPopupTopRight
the top right cell
.gwt-SuggestBoxPopup .suggestPopupTopRightInner
the inner element of the cell
.gwt-SuggestBoxPopup .suggestPopupMiddleLeft
the middle left cell
.gwt-SuggestBoxPopup .suggestPopupMiddleLeftInner
the inner element of the cell
.gwt-SuggestBoxPopup .suggestPopupMiddleCenter
the middle center cell
.gwt-SuggestBoxPopup .suggestPopupMiddleCenterInner
the inner element of the cell
.gwt-SuggestBoxPopup .suggestPopupMiddleRight
the middle right cell
.gwt-SuggestBoxPopup .suggestPopupMiddleRightInner
the inner element of the cell
.gwt-SuggestBoxPopup .suggestPopupBottomLeft
the bottom left cell
.gwt-SuggestBoxPopup .suggestPopupBottomLeftInner
the inner element of the cell
.gwt-SuggestBoxPopup .suggestPopupBottomCenter
the bottom center cell
.gwt-SuggestBoxPopup .suggestPopupBottomCenterInner
the inner element of the cell
.gwt-SuggestBoxPopup .suggestPopupBottomRight
the bottom right cell
.gwt-SuggestBoxPopup .suggestPopupBottomRightInner
the inner element of the cell


Constructor Summary
SuggestBox.DefaultSuggestionDisplay()
          Construct a new SuggestBox.DefaultSuggestionDisplay.
 
Method Summary
 void hideSuggestions()
          Hide the list of suggestions from view.
 boolean isAnimationEnabled()
           
 boolean isSuggestionListShowing()
          Check whether or not the list of suggestions is being shown.
 void setAnimationEnabled(boolean enable)
          Enable or disable animations.
 void setPopupStyleName(java.lang.String style)
          Sets the style name of the suggestion popup.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuggestBox.DefaultSuggestionDisplay

public SuggestBox.DefaultSuggestionDisplay()
Construct a new SuggestBox.DefaultSuggestionDisplay.

Method Detail

hideSuggestions

public void hideSuggestions()
Description copied from class: SuggestBox.SuggestionDisplay
Hide the list of suggestions from view.


isAnimationEnabled

public boolean isAnimationEnabled()
Specified by:
isAnimationEnabled in interface HasAnimation
Returns:
true if animations are enabled, false if not

isSuggestionListShowing

public boolean isSuggestionListShowing()
Check whether or not the list of suggestions is being shown.

Returns:
true if the suggestions are visible, false if not

setAnimationEnabled

public void setAnimationEnabled(boolean enable)
Description copied from interface: HasAnimation
Enable or disable animations.

Specified by:
setAnimationEnabled in interface HasAnimation
Parameters:
enable - true to enable, false to disable

setPopupStyleName

public void setPopupStyleName(java.lang.String style)
Sets the style name of the suggestion popup.

Parameters:
style - the new primary style name
See Also:
UIObject.setStyleName(String)