Package com.vaadin.flow.component.crud
Class CrudI18n
- java.lang.Object
-
- com.vaadin.flow.component.crud.CrudI18n
-
- All Implemented Interfaces:
Serializable
public class CrudI18n extends Object implements Serializable
Internationalization object for customizing the component UI texts. An instance with the default messages can be obtained usingcreateDefault()
- See Also:
Crud.setI18n(CrudI18n)
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CrudI18n.Confirmations
The confirmation dialogs used in the component
-
Constructor Summary
Constructors Constructor Description CrudI18n()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CrudI18n
createDefault()
Creates a new instance with the default messagesString
getCancel()
Gets the cancel button textCrudI18n.Confirmations
getConfirm()
Gets the confirmation dialogsString
getDeleteItem()
Gets the delete button textString
getEditItem()
Gets the edit editor title textString
getEditLabel()
Gets the edit button aria labelString
getNewItem()
Gets the new button and editor title textString
getSaveItem()
Gets the save button textvoid
setCancel(String cancel)
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 textString
toString()
-
-
-
Method Detail
-
createDefault
public static CrudI18n createDefault()
Creates a new instance with the default messages- Returns:
- a new instance with the default messages
-
getNewItem
public String getNewItem()
Gets the new button and editor title text- Returns:
- the new button and editor title text
-
setNewItem
public void setNewItem(String newItem)
Sets the new button and editor title text- Parameters:
newItem
- the new button and editor title text
-
getSaveItem
public String getSaveItem()
Gets the save button text- Returns:
- the save button text
-
setSaveItem
public void setSaveItem(String saveItem)
Sets the save button text- Parameters:
saveItem
- the save button text
-
getDeleteItem
public String getDeleteItem()
Gets the delete button text- Returns:
- the delete button text
-
setDeleteItem
public void setDeleteItem(String deleteItem)
Sets the delete button text- Parameters:
deleteItem
- the delete button text
-
getEditItem
public String getEditItem()
Gets the edit editor title text- Returns:
- the edit editor title text
-
setEditItem
public void setEditItem(String editItem)
Sets the edit editor title text- Parameters:
editItem
- the edit editor title text
-
getCancel
public String getCancel()
Gets the cancel button text- Returns:
- the cancel button text
-
setCancel
public void setCancel(String cancel)
Sets the cancel button text- Parameters:
cancel
- the cancel button text
-
getEditLabel
public String getEditLabel()
Gets the edit button aria label- Returns:
- the edit button aria label
-
setEditLabel
public void setEditLabel(String editLabel)
Sets the edit button aria label- Parameters:
editLabel
- the edit button aria label
-
getConfirm
public CrudI18n.Confirmations getConfirm()
Gets the confirmation dialogs- Returns:
- the confirmation dialogs
-
setConfirm
public void setConfirm(CrudI18n.Confirmations confirm)
Sets the confirmation dialogs- Parameters:
confirm
- the confirmation dialogs
-
-