mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-02 10:23:51 +00:00
Bug 4104: Added tooltips for action buttons in tag cell
This commit is contained in:
1 parent
a27156c067
commit
e84ebbbde8
4 files changed
+10
-5
No files matched your search
+1
@@ -2105,6 +2105,7 @@ public interface StringMessages extends com.sap.sse.gwt.client.StringMessages,
|
||||
String tagNoTagsFound();
|
||||
String tagAddTag();
|
||||
String tagEditTag();
|
||||
String tagDeleteTag();
|
||||
String tagAddTags();
|
||||
String tagSavedSuccessfully();
|
||||
String tagNotSaved();
|
||||
|
||||
+1
@@ -2100,6 +2100,7 @@ tagCreated=(created by {0} at {1})
|
||||
tagNoTagsFound=No tags found!
|
||||
tagAddTag=Add Tag
|
||||
tagEditTag=Edit Tag
|
||||
tagDeleteTag=Delete Tag
|
||||
tagAddTags=Add Tags
|
||||
tagSavedSuccessfully=Saved tag successfully
|
||||
tagNotSaved=Could not save new tag!
|
||||
|
||||
+2
-1
@@ -2094,7 +2094,8 @@ tagPanel=Tags
|
||||
tagCreated=(erstellt von {0} am {1})
|
||||
tagNoTagsFound=Keine Tags gefunden!
|
||||
tagAddTag=Tag hinzufügen
|
||||
tagEditTag= Tag bearbeiten
|
||||
tagEditTag=Tag bearbeiten
|
||||
tagDeleteTag=Tag löschen
|
||||
tagAddTags=Tags hinzufügen
|
||||
tagSavedSuccessfully=Tag erfolgreich gespeichert
|
||||
tagNotSaved=Tag konnte nicht gespeichert werden!
|
||||
|
||||
+6
-4
@@ -116,12 +116,14 @@ public class TagCell extends AbstractCell<TagDTO> {
|
||||
/**
|
||||
* Renders button with given content.
|
||||
*
|
||||
* @param title
|
||||
* will be shown as tooltip of button
|
||||
* @param content
|
||||
* content of button
|
||||
* @return {@link SafeHtml HTML template}
|
||||
*/
|
||||
@Template("<button class='{0}'>{1}</button>")
|
||||
SafeHtml button(String classButton, SafeHtml content);
|
||||
@Template("<button class='{0}' title='{1}'>{2}</button>")
|
||||
SafeHtml button(String classButton, String title, SafeHtml content);
|
||||
}
|
||||
|
||||
private final TagCellTemplate tagCellTemplate = GWT.create(TagCellTemplate.class);
|
||||
@@ -193,9 +195,9 @@ public class TagCell extends AbstractCell<TagDTO> {
|
||||
if (userService.getCurrentUser() != null) {
|
||||
// create buttons with icons
|
||||
SafeHtml deleteButton = tagCellTemplate.button(style.tagActionButton() + " " + style.tagDeleteButton(),
|
||||
tagCellTemplate.icon(resources.deleteIcon().getSafeUri()));
|
||||
stringMessages.tagDeleteTag(), tagCellTemplate.icon(resources.deleteIcon().getSafeUri()));
|
||||
SafeHtml editButton = tagCellTemplate.button(style.tagActionButton() + " " + style.tagEditButton(),
|
||||
tagCellTemplate.icon(resources.editIcon().getSafeUri()));
|
||||
stringMessages.tagEditTag(), tagCellTemplate.icon(resources.editIcon().getSafeUri()));
|
||||
if (tag.getUsername().equals(userService.getCurrentUser().getName())) {
|
||||
headingButtons = tagCellTemplate.headerButtonsDeletableAndModifyable(style.tagCellHeadingButtons(),
|
||||
editButton, deleteButton);
|
||||
|
||||
Reference in new issue
Block a user