com.vaadin.flow.component.crud.
Class CrudI18n
All Implemented Interfaces:
Internationalization object for customizing the component UI texts. An
instance with the default messages can be obtained using
createDefault()
See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The confirmation dialogs used in the component
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CrudI18n
Creates a new instance with the default messages
Gets the cancel button text
Gets the confirmation dialogs
Gets the delete button text
Gets the edit editor title text
Gets the edit button aria label
Gets the new button and editor title text
Gets the save button text
void
Sets the cancel button text
void
setConfirm
(CrudI18n.Confirmations confirm) Sets the confirmation dialogs
void
setDeleteItem
(String deleteItem) Sets the delete button text
void
setEditItem
(String editItem) Sets the edit editor title text
void
setEditLabel
(String editLabel) Sets the edit button aria label
void
setNewItem
(String newItem) Sets the new button and editor title text
void
setSaveItem
(String saveItem) Sets the save button text
toString()
-
Constructor Details
-
CrudI18n
public CrudI18n()
-
-
Method Details
-
createDefault
Creates a new instance with the default messages
Returns:
a new instance with the default messages
-
getNewItem
Gets the new button and editor title text
Returns:
the new button and editor title text
-
setNewItem
Sets the new button and editor title text
Parameters:
newItem
- the new button and editor title text -
getSaveItem
Gets the save button text
Returns:
the save button text
-
setSaveItem
Sets the save button text
Parameters:
saveItem
- the save button text -
getDeleteItem
Gets the delete button text
Returns:
the delete button text
-
setDeleteItem
Sets the delete button text
Parameters:
deleteItem
- the delete button text -
getEditItem
Gets the edit editor title text
Returns:
the edit editor title text
-
setEditItem
Sets the edit editor title text
Parameters:
editItem
- the edit editor title text -
getCancel
Gets the cancel button text
Returns:
the cancel button text
-
setCancel
Sets the cancel button text
Parameters:
cancel
- the cancel button text -
getEditLabel
Gets the edit button aria label
Returns:
the edit button aria label
-
setEditLabel
Sets the edit button aria label
Parameters:
editLabel
- the edit button aria label -
getConfirm
Gets the confirmation dialogs
Returns:
the confirmation dialogs
-
setConfirm
Sets the confirmation dialogs
Parameters:
confirm
- the confirmation dialogs -
toString
-