public static class

DropDownModelBuilder.DropDownItemImpl

extends Object
implements DropDownModel.DropDownItem
java.lang.Object
   ↳ com.atlassian.jira.web.ui.model.DropDownModelBuilder.DropDownItemImpl

Summary

Public Constructors
DropDownModelBuilder.DropDownItemImpl()
Public Methods
String getAttr(String name)
String getAttrAndRemove(String name)
This is useful to do 1 time read of all the attributes such that the act of reading one removes it.
Set<String> getAttrs()
String getText()
DropDownModelBuilder.DropDownItemImpl setAttr(String attrName, String attrValue)
DropDownModelBuilder.DropDownItemImpl setText(String itemText)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.web.ui.model.DropDownModel.DropDownItem

Public Constructors

public DropDownModelBuilder.DropDownItemImpl ()

Public Methods

public String getAttr (String name)

public String getAttrAndRemove (String name)

This is useful to do 1 time read of all the attributes such that the act of reading one removes it. It allows you to place say class=xxx somewhere in the markup and then iterator thought the rest of the attributes and not repeat say class=xxx

Parameters
name the name of the attribute
Returns
  • an attribute with a given name and removes it from the underlying map

public Set<String> getAttrs ()

public String getText ()

public DropDownModelBuilder.DropDownItemImpl setAttr (String attrName, String attrValue)

public DropDownModelBuilder.DropDownItemImpl setText (String itemText)