Skip to content

Commit

Permalink
Javadoc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
car031 committed Apr 23, 2024
1 parent 2d05d44 commit 642a5d6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client.widgets.form.fields.FormItem;
import com.smartgwt.client.widgets.form.fields.SelectItem;
import com.smartgwt.client.widgets.form.fields.events.ChangedEvent;
import com.smartgwt.client.widgets.grid.ListGridRecord;
import com.smartgwt.client.widgets.layout.HLayout;
import com.smartgwt.client.widgets.toolbar.ToolStrip;
Expand Down Expand Up @@ -60,7 +59,7 @@ public void onDraw() {
selectedOcrTemplate != null ? selectedOcrTemplate.getId() : null);
}

private void refresh(Long templateId, Long barcodeTemplateId) {
private void refresh(Long templateId, Long ocrTemplateId) {
if (toolStrip != null)
removeMember(toolStrip);

Expand All @@ -70,7 +69,7 @@ private void refresh(Long templateId, Long barcodeTemplateId) {

addTemplateSelector(templateId, toolBar);

addOcrTemplateSelector(templateId, barcodeTemplateId, toolBar);
addOcrTemplateSelector(templateId, ocrTemplateId, toolBar);

addNewButton(toolBar);

Expand Down Expand Up @@ -174,8 +173,7 @@ private void addAddZoneButton(ToolStrip toolStrip) {

LinkedHashMap<String, String> map = new LinkedHashMap<>();
for (GUIAttribute att : selectedOcrTemplate.getTemplate().getAttributes()) {
if (att.getParent() == null && selectedOcrTemplate.getZone(att.getName()) == null
&& !att.isSection())
if (att.getParent() == null && selectedOcrTemplate.getZone(att.getName()) == null && !att.isSection())
map.put(att.getName(), att.getName() + " (" + AttributeTypeFormatter.format(att.getType()) + ")");
}
select.setValueMap(map);
Expand Down Expand Up @@ -297,7 +295,7 @@ private void addTemplateSelector(Long templateId, ToolStrip toolStrip) {
templateSelector.setWrapTitle(false);
templateSelector.setMultiple(false);
templateSelector.setEndRow(false);
templateSelector.addChangedHandler((ChangedEvent event) -> {
templateSelector.addChangedHandler(changed -> {
selectedOcrTemplate = null;

ListGridRecord rec = templateSelector.getSelectedRecord();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import com.logicaldoc.gui.frontend.client.services.ZonalOCRService;

/**
* A canvas that contains a note to be displayed in a page of a document
* A canvas that contains a zone to be displayed in a ZonalOCR sample
*
* @author Marco Meschieri - LogicalDOC
* @since 8.4.2
Expand Down Expand Up @@ -42,13 +42,11 @@ public void onSuccess(GUIZone newZone) {

ZonalOCRZoneCanvas.this.zone.setSample(newZone.getSample());
ZonalOCRZoneCanvas.this.zone.setSampleText(newZone.getSampleText());
ZoneEditor editor = new ZoneEditor(zone);
editor.show();
new ZoneEditor(zone).show();
}
});
} else {
ZoneEditor editor = new ZoneEditor(zone);
editor.show();
new ZoneEditor(zone).show();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import com.smartgwt.client.widgets.menu.MenuItem;

/**
* A generic panel displaying a zone
* A generic panel displaying a zone inside an image.
*
* @author Marco Meschieri - LogicalDOC
* @since 8.8.3
Expand Down Expand Up @@ -101,7 +101,7 @@ protected void showContextMenu() {
}

/**
* Abstract metod invoked when the user wants to edit a zone
* Abstract method invoked when the user wants to edit a zone
*/
protected abstract void onEdit();
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*
* @author Marco Meschieri - LogicalDOC
* @since 8.8.3
*
*/
public abstract class ZoneTemplatePanel extends VLayout {

Expand Down Expand Up @@ -38,8 +37,7 @@ public void showZones() {
if (selectedOcrTemplate.getZones() != null)
for (GUIZone zone : selectedOcrTemplate.getZones()) {
zone.setTemplateId(selectedOcrTemplate.getId());
ZoneCanvas zoneCanvas = newZoneCanvas(zone);
sample.addCanvas(zoneCanvas);
sample.addCanvas(newZoneCanvas(zone));
}
}

Expand Down

0 comments on commit 642a5d6

Please sign in to comment.