◆ create()
void org.turro.documentation.model.DefinitionsVM.create |
( |
| ) |
|
Definition at line 127 of file DefinitionsVM.java.
128 Dialogs.title(I_.get(
"Create"))
131 .addField(DialogField.field(
"Documentation"))
132 .addField(DialogField.field(
"Type").onEditor(() -> {
133 return new DefinitionTypeListbox();
136 String docdef = dialogs.<Textbox>getEditor(
"Documentation").getValue();
137 if(!Strings.isBlank(docdef) && !DocumentDefinitions.instance().names().contains(docdef)) {
138 DocumentType dt = dialogs.<DefinitionTypeListbox>getEditor(
"Type").getObjectValue();
139 DocumentDefinition dd =
new DocumentDefinition(docdef, dt);
140 DocumentDefinitions.instance().add(dd);
141 BindUtils.postNotifyChange(
null,
null, DefinitionsVM.this,
"model");
◆ delete()
void org.turro.documentation.model.DefinitionsVM.delete |
( |
| ) |
|
Definition at line 115 of file DefinitionsVM.java.
117 Messages.confirmDeletion().add(selected.
getName()).show(() -> {
119 DocumentDefinitions.instance().
remove(selected);
121 BindUtils.postNotifyChange(
null,
null, DefinitionsVM.this,
"model");
◆ deleteDoc()
void org.turro.documentation.model.DefinitionsVM.deleteDoc |
( |
@BindingParam("document") Document |
document | ) |
|
Definition at line 106 of file DefinitionsVM.java.
107 Messages.confirmDeletion().add(document.name()).show(() -> {
109 document.folder().removeEmpties();
void setSelected(DocumentDefinition selected)
◆ download()
void org.turro.documentation.model.DefinitionsVM.download |
( |
@BindingParam("document") Document |
document | ) |
|
◆ getContact()
IContact org.turro.documentation.model.DefinitionsVM.getContact |
( |
| ) |
|
◆ getDocumentKeys()
List<String> org.turro.documentation.model.DefinitionsVM.getDocumentKeys |
( |
| ) |
|
Definition at line 73 of file DefinitionsVM.java.
74 return selected !=
null ?
new ArrayList<>(documentMap.keySet()) : null;
◆ getDocuments()
List<Document> org.turro.documentation.model.DefinitionsVM.getDocuments |
( |
String |
key | ) |
|
◆ getKeyName()
String org.turro.documentation.model.DefinitionsVM.getKeyName |
( |
String |
key | ) |
|
Definition at line 81 of file DefinitionsVM.java.
82 if(
"*".equals(key))
return I_.get(
"All");
83 IContact folder = Contacts.getContactById(key);
84 if(Contacts.isValid(folder))
return folder.getFullName();
◆ getModel()
◆ getSelected()
◆ save()
void org.turro.documentation.model.DefinitionsVM.save |
( |
| ) |
|
◆ setContact()
void org.turro.documentation.model.DefinitionsVM.setContact |
( |
IContact |
contact | ) |
|
◆ setSelected()
void org.turro.documentation.model.DefinitionsVM.setSelected |
( |
DocumentDefinition |
selected | ) |
|
Definition at line 67 of file DefinitionsVM.java.
68 this.selected = selected;
70 BindUtils.postNotifyChange(
null,
null, DefinitionsVM.this,
"documentKeys");
Map< String, List< Document > > getDocumentsMap()
◆ upload()
void org.turro.documentation.model.DefinitionsVM.upload |
( |
@BindingParam("medias") Media |
medias[] | ) |
|
Definition at line 89 of file DefinitionsVM.java.
92 folder = folder.child(contact.
getId());
94 for(Media media : medias) {
95 Medias.toFolder(media, folder);
The documentation for this class was generated from the following file: