- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 40 of file SynonymsVM.java.
◆ SynonymsVM()
org.turro.synonyms.SynonymsVM.SynonymsVM |
( |
| ) |
|
◆ addGroup()
void org.turro.synonyms.SynonymsVM.addGroup |
( |
| ) |
|
◆ addWord()
void org.turro.synonyms.SynonymsVM.addWord |
( |
| ) |
|
Definition at line 90 of file SynonymsVM.java.
91 if(selected !=
null) {
92 InputDialog.getInput(Framework.getCurrent().getPage(),
93 I_.get(
"Synonyms"),
"Word",
94 "",
null, 0, (Context context) -> {
95 String value = (String) context.get(
"value");
96 if(!Strings.isBlank(value)) {
97 selected.getWords().add(value);
98 selected = getDao().saveObject(selected);
99 BindUtils.postNotifyChange(null, null, SynonymsVM.this,
"model");
100 BindUtils.postNotifyChange(null, null, SynonymsVM.this,
"wordModel");
◆ deleteGroup()
void org.turro.synonyms.SynonymsVM.deleteGroup |
( |
| ) |
|
Definition at line 82 of file SynonymsVM.java.
83 if(selected !=
null) {
void deleteObject(Object obj)
◆ deleteWord()
void org.turro.synonyms.SynonymsVM.deleteWord |
( |
@BindingParam("word") String |
word | ) |
|
Definition at line 109 of file SynonymsVM.java.
110 if(selected !=
null) {
111 if(selected.
getWords().remove(word)) {
116 selected = getDao().saveObject(selected);
◆ getModel()
List<Synonyms> org.turro.synonyms.SynonymsVM.getModel |
( |
| ) |
|
Definition at line 133 of file SynonymsVM.java.
134 if(!Strings.isBlank(searchValue)) {
135 return Synonyms.getSynonyms(searchValue, 0);
137 return getDao().getResultList(
"select s from Synonyms s");
◆ getSearchValue()
String org.turro.synonyms.SynonymsVM.getSearchValue |
( |
| ) |
|
◆ getSelected()
Synonyms org.turro.synonyms.SynonymsVM.getSelected |
( |
| ) |
|
◆ getWordModel()
Set<String> org.turro.synonyms.SynonymsVM.getWordModel |
( |
| ) |
|
◆ isSelected()
boolean org.turro.synonyms.SynonymsVM.isSelected |
( |
Synonyms |
synonyms | ) |
|
Definition at line 64 of file SynonymsVM.java.
65 return selected !=
null && synonyms !=
null &&
66 selected.
getId() !=
null && synonyms.getId() !=
null &&
67 selected.
getId().equals(synonyms.getId());
◆ selectSynonyms()
void org.turro.synonyms.SynonymsVM.selectSynonyms |
( |
@BindingParam("selected") Synonyms |
selected | ) |
|
◆ setSearchValue()
void org.turro.synonyms.SynonymsVM.setSearchValue |
( |
String |
searchValue | ) |
|
◆ setSelected()
void org.turro.synonyms.SynonymsVM.setSelected |
( |
Synonyms |
selected | ) |
|
◆ update()
void org.turro.synonyms.SynonymsVM.update |
( |
| ) |
|
The documentation for this class was generated from the following file: