Saturday, July 30, 2011

DisclosurePanelImages alternative?

DisclosurePanelImages is depreciated, so I wondered whats the correct
method for getting to the Disclosure panels default images?

(for, say, making a custom header)

My old code was;

final DisclosurePanelImages dpimages = (DisclosurePanelImages)
GWT.create(DisclosurePanelImages.class);

class DisclosurePanelHeader extends HorizontalPanel
{
AbstractImagePrototype closedImage =
dpimages.disclosurePanelClosed();
AbstractImagePrototype openImage = dpimages.disclosurePanelOpen();
Image arrowImage = closedImage.createImage();

public DisclosurePanelHeader()
{
......

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

1 comment: