Package com.vaadin.flow.component.crud
Class CrudI18n
java.lang.Object
com.vaadin.flow.component.crud.CrudI18n
- All Implemented Interfaces:
Serializable
Internationalization object for customizing the component UI texts. An
instance with the default messages can be obtained using
createDefault()
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The confirmation dialogs used in the component -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CrudI18n
Creates a new instance with the default messagesGets the cancel button textGets the confirmation dialogsGets the delete button textGets the edit editor title textGets the edit button aria labelGets the new button and editor title textGets the save button textvoid
Sets the cancel button textvoid
setConfirm
(CrudI18n.Confirmations confirm) Sets the confirmation dialogsvoid
setDeleteItem
(String deleteItem) Sets the delete button textvoid
setEditItem
(String editItem) Sets the edit editor title textvoid
setEditLabel
(String editLabel) Sets the edit button aria labelvoid
setNewItem
(String newItem) Sets the new button and editor title textvoid
setSaveItem
(String saveItem) Sets the save button texttoString()
-
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
-