com.atlassian.jira.webtest.framework.core.component
Class Options

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.core.component.Options

public class Options
extends Object

Options.IdOption objects factory.

Since:
v4.3

Nested Class Summary
static class Options.FullOption
           
static class Options.IdOption
           
static class Options.LabelOption
           
static class Options.ValueOption
           
 
Field Summary
static String DEFAULT_OPTION_VALUE
           
 
Constructor Summary
Options()
           
 
Method Summary
static Option defaultValue()
          New option with default option value.
static Option full(String id, String value, String label)
          New option distinguishable all identifiers.
static Options.IdOption id(String id)
          New option distinguishable by its HTML ID.
static Options.LabelOption label(String label)
          New option distinguishable by its UI label.
static Options.ValueOption value(String value)
          New option distinguishable by its HTML value attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_OPTION_VALUE

public static final String DEFAULT_OPTION_VALUE
Constructor Detail

Options

public Options()
Method Detail

id

public static Options.IdOption id(String id)
New option distinguishable by its HTML ID.

Parameters:
id - HTML id of the option
Returns:
new option

value

public static Options.ValueOption value(String value)
New option distinguishable by its HTML value attribute.

Parameters:
value - HTML value attribute of the option
Returns:
new option

label

public static Options.LabelOption label(String label)
New option distinguishable by its UI label.

Parameters:
label - label of the option visible in the UI
Returns:
new option

full

public static Option full(String id,
                          String value,
                          String label)
New option distinguishable all identifiers. Some of the identifiers may be null, but at least one has to be non-null

Parameters:
id - HTML id of the option
value - HTML value attribute of the option
label - label of the option visible in the UI
Returns:
new option

defaultValue

public static Option defaultValue()
New option with default option value.

Returns:
new default option
See Also:
DEFAULT_OPTION_VALUE


Copyright © 2002-2013 Atlassian. All Rights Reserved.