scroll buttons if necessary.
* https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/wN8lLU23wPA
*/
public class ScrollableTabLayoutPanel extends TabLayoutPanel {
private static final String SCROLL_BUTTON_STYLE = gwt-TabLayoutPanelScrollButton;
private static final String
By popular demand (my own taste, and a request of a tester), I hide a button when we can
no longer scroll in this direction...
I replaced the hackish test:
if (scrollRightButton.isVisible())
with a specialized field:
private boolean isScrolling;
The following are the added / modified
com.google.gwt.user.client.ui.Widget;
/**
* A {@link TabLayoutPanel} that shows scroll buttons if necessary.
*
https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/wN8lLU23wPA
*/
public class ScrollableTabLayoutPanel extends TabLayoutPanel
{
private static final String
com.google.gwt.user.client.ui.Widget;
/**
* A {@link TabLayoutPanel} that shows scroll buttons if necessary.
*
https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/wN8lLU23wPA
*/
public class ScrollableTabLayoutPanel extends TabLayoutPanel
{
private static final int IMAGE_PADDING_PIXELS
please can you show me how to use it , i coudn't even test it !
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/RUADpqouugoJ.
To post to this
hi ,
please can help me understand what do you mean by saying You should be
able to wrap it into a Composite and then reference that
Composite in your UiBinder file though. ??
and i m searching for a widget that can help me do this
com.google.gwt.event.logical.shared.SelectionHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.*;
/**
* A {@link TabLayoutPanel} that shows scroll buttons
Hi,
you won't be able to use this custom widget directly within an
UiBinder file due to this issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=4342.
You should be able to wrap it into a Composite and then reference that
Composite in your UiBinder file though.
Hth,
Matt
On 18
I'm trying to use this with UIBinder but getting issues telling me
that I am missing required attributes barUnit, barHeight etc. Has
anybody got this working with UIBinder?
You received this message because you are subscribed to the Google
Groups Google Web Toolkit group.
To post to this group,
Awesome. This saved me a few days work ! Thank you !
Small error, forgot to initialize the local image vars in the
constructor though:
...
super(barHeight, barUnit);
this.leftArrowImage = leftArrowImage;
this.rightArrowImage = rightArrowImage;
Hi,
the GWT TabLayoutPanel doesn't show scroll buttons if the visible
panel bar becomes smaller then width of all open tab headers.
There is an enhacement request issue pending that might be implemented
in a future version of GWT, until then you might find the attached
code snippet useful
11 matches
Mail list logo