com.google.gwt.dom.client.UListElement Java Examples

The following examples show how to use com.google.gwt.dom.client.UListElement. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TodoListMapper.java    From mapper with Apache License 2.0 6 votes vote down vote up
private void setActive(final AnchorElement element, final UListElement active, final List<UListElement> allElements) {
  $(element).click(new Function() {
    @Override
    public boolean f(Event e) {
      $("a.inline").removeClass("selected");
      $(element).addClass("selected");
      for (UListElement otherElement : allElements) {
        if (otherElement != active) {
          $(otherElement).hide();
        }
      }
      $(active).show();
      return false;
    }
  });
}
 
Example #2
Source File: LineRendering.java    From swellrt with Apache License 2.0 5 votes vote down vote up
@Override
public Element createDomImpl(Renderable element) {
  UListElement e = Document.get().createULElement();

  // Be careful if you want to move these into CSS - they might affect rendering
  // of email notifications in gmail. Find a nicer way to deal with this.
  e.getStyle().setPadding(0, Unit.PX);
  e.getStyle().setMargin(0, Unit.PX);
  return element.setAutoAppendContainer(e);
}
 
Example #3
Source File: LineRendering.java    From incubator-retired-wave with Apache License 2.0 5 votes vote down vote up
@Override
public Element createDomImpl(Renderable element) {
  UListElement e = Document.get().createULElement();

  // Be careful if you want to move these into CSS - they might affect rendering
  // of email notifications in gmail. Find a nicer way to deal with this.
  e.getStyle().setPadding(0, Unit.PX);
  e.getStyle().setMargin(0, Unit.PX);
  return element.setAutoAppendContainer(e);
}
 
Example #4
Source File: Nav.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 4 votes vote down vote up
public Nav() {
	super(UListElement.TAG);
	StyleUtils.addStyle(this, Nav.STYLE_NAV);
}
 
Example #5
Source File: List.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 4 votes vote down vote up
public List() {
	this(UListElement.TAG);
}
 
Example #6
Source File: List.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 4 votes vote down vote up
@UiConstructor
public List(String tag) {
	super(OListElement.TAG.equals(tag) || UListElement.TAG.equals(tag) ? tag : UListElement.TAG);
	this.setType(this.type);
}
 
Example #7
Source File: ErrorGroup.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 4 votes vote down vote up
public ErrorGroup() {
	super(UListElement.TAG);
	this.setColor(this.color);
}
 
Example #8
Source File: ContentAssistAspect.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 4 votes vote down vote up
DropdownMenu() {
	super(UListElement.TAG);
	StyleUtils.addStyle(this, ContentAssistAspect.STYLE_MENU);
	StyleUtils.addStyle(this, ContentAssistAspect.STYLE_SCROLLABLE);
}