org.popper.fw.element.ISelectBox Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Interfaces Show documentation
Show all versions of Interfaces Show documentation
Definition of the interfaces all Popper Framework
implementations depend on
/*
* Copyright [2013] [Michael Bulla, [email protected]]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.popper.fw.element;
import org.popper.fw.annotations.Accessor;
import org.popper.fw.annotations.Action;
import org.popper.fw.annotations.ParamName;
/**
* Definies the methods a selectbox must provide
* @author Michael
*
*/
public interface ISelectBox extends IInput {
/**
* Select the option based on the visible text of that option
* @param text visible text
*/
@Action(name="select by text")
public void selectByText(@ParamName("Displayed Text") String text);
/**
* Select the option based on the value of that option
* @param value value
*/
@Action(name="select by value")
public void selectByValue(@ParamName("Value") String value);
/**
* Get the value of the selected option
* @return value of the selected option
*/
@Accessor(name="selected value")
public String getSelectedValue();
/**
* get the visible text of the selected option
* @return text of the selected option
*/
@Accessor(name="selected text")
public String getSelectedText();
}