forked from External/mage
Added new choose dialog (creature types and etc):
* added incremental search; * added keyboard hotkeys (up/down for select, enter for choose); * added choose by mouse double click; * added source card name; * fixed cancel button on required choice (#4230); * fixed text sizes form messages (now it's auto size);
This commit is contained in:
parent
1efb51a22c
commit
749ca59ad6
7 changed files with 597 additions and 247 deletions
|
|
@ -37,19 +37,34 @@ import java.util.Set;
|
|||
*/
|
||||
public interface Choice {
|
||||
|
||||
boolean isChosen();
|
||||
boolean isRequired();
|
||||
void clearChoice();
|
||||
String getMessage();
|
||||
void setMessage(String message);
|
||||
void setChoice(String choice);
|
||||
void setChoiceByKey(String choiceKey);
|
||||
Set<String> getChoices();
|
||||
Map<String,String> getKeyChoices();
|
||||
void setChoices(Set<String> choices);
|
||||
void setKeyChoices(Map<String, String> choices);
|
||||
String getChoice();
|
||||
String getChoiceKey();
|
||||
boolean isKeyChoice();
|
||||
|
||||
String getSubMessage();
|
||||
void setSubMessage(String subMessage);
|
||||
|
||||
void clearChoice();
|
||||
boolean isChosen();
|
||||
boolean isRequired();
|
||||
|
||||
Choice copy();
|
||||
|
||||
// string choice
|
||||
void setChoices(Set<String> choices);
|
||||
Set<String> getChoices();
|
||||
void setChoice(String choice);
|
||||
String getChoice();
|
||||
|
||||
// key-value choice
|
||||
boolean isKeyChoice();
|
||||
void setKeyChoices(Map<String, String> choices);
|
||||
Map<String,String> getKeyChoices();
|
||||
void setChoiceByKey(String choiceKey);
|
||||
String getChoiceKey();
|
||||
|
||||
// search
|
||||
boolean isSearchEnabled();
|
||||
void setSearchEnabled(boolean isEnabled);
|
||||
void setSearchText(String searchText);
|
||||
String getSearchText();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue