com.atlassian.jira.web.ui.model
Interface DropDownModel.DropDownItem

All Known Implementing Classes:
DropDownModelBuilder.DropDownItemImpl
Enclosing interface:
DropDownModel

public static interface DropDownModel.DropDownItem


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()
           
 

Method Detail

getText

String getText()
Returns:
the text of the menu item

getAttr

String getAttr(String name)
Parameters:
name - the name of the attribute
Returns:
an attribute with a given name

getAttrAndRemove

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

getAttrs

Set<String> getAttrs()
Returns:
the list of attributes associated with item


Copyright © 2002-2014 Atlassian. All Rights Reserved.