com.atlassian.jira.web.ui.model
Class DropDownModelBuilder.DropDownItemImpl

java.lang.Object
  extended by com.atlassian.jira.web.ui.model.DropDownModelBuilder.DropDownItemImpl
All Implemented Interfaces:
DropDownModel.DropDownItem
Enclosing class:
DropDownModelBuilder

public static class DropDownModelBuilder.DropDownItemImpl
extends Object
implements DropDownModel.DropDownItem


Constructor Summary
DropDownModelBuilder.DropDownItemImpl()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropDownModelBuilder.DropDownItemImpl

public DropDownModelBuilder.DropDownItemImpl()
Method Detail

getText

public String getText()
Specified by:
getText in interface DropDownModel.DropDownItem
Returns:
the text of the menu item

getAttr

public String getAttr(String name)
Specified by:
getAttr in interface DropDownModel.DropDownItem
Parameters:
name - the name of the attribute
Returns:
an attribute with a given name

getAttrAndRemove

public String getAttrAndRemove(String name)
Description copied from interface: DropDownModel.DropDownItem
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

Specified by:
getAttrAndRemove in interface DropDownModel.DropDownItem
Parameters:
name - the name of the attribute
Returns:
an attribute with a given name and removes it from the underlying map

getAttrs

public Set<String> getAttrs()
Specified by:
getAttrs in interface DropDownModel.DropDownItem
Returns:
the list of attributes associated with item

setText

public DropDownModelBuilder.DropDownItemImpl setText(String itemText)

setAttr

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.