com.vaadin.flow.component.crud.
Class CrudI18n
- java.lang.Object
-
- com.vaadin.flow.component.crud.CrudI18n
-
All Implemented Interfaces:
public class CrudI18n extends Object implements 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
Nested Classes Modifier and Type Class and Description static class
CrudI18n.Confirmations
The confirmation dialogs used in the component
-
Constructor Summary
Constructors Constructor and Description CrudI18n()
-
Method Summary
All Methods Modifier and Type Method and Description static CrudI18n
createDefault()
Creates a new instance with the default messages
String
getCancel()
Gets the cancel button text
CrudI18n.Confirmations
getConfirm()
Gets the confirmation dialogs
String
getDeleteItem()
Gets the delete button text
String
getEditItem()
Gets the edit editor title text
String
getEditLabel()
Gets the edit button aria label
String
getNewItem()
Gets the new button and editor title text
String
getSaveItem()
Gets the save button text
void
setCancel(String cancel)
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
String
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
-
-