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 classCrudI18n.ConfirmationsThe 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 CrudI18ncreateDefault()Creates a new instance with the default messagesStringgetCancel()Gets the cancel button textCrudI18n.ConfirmationsgetConfirm()Gets the confirmation dialogsStringgetDeleteItem()Gets the delete button textStringgetEditItem()Gets the edit editor title textStringgetEditLabel()Gets the edit button aria labelStringgetNewItem()Gets the new button and editor title textStringgetSaveItem()Gets the save button textvoidsetCancel(String cancel)Sets the cancel button textvoidsetConfirm(CrudI18n.Confirmations confirm)Sets the confirmation dialogsvoidsetDeleteItem(String deleteItem)Sets the delete button textvoidsetEditItem(String editItem)Sets the edit editor title textvoidsetEditLabel(String editLabel)Sets the edit button aria labelvoidsetNewItem(String newItem)Sets the new button and editor title textvoidsetSaveItem(String saveItem)Sets the save button textStringtoString()
-
-
-
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
-
-