Class RoleForm
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.formlayout.FormLayout
hu.rts.mike.example.dev.crm.view.role.RoleForm
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.formlayout.FormLayout>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,Serializable
@RolesAllowed("READ_ROLE")
public class RoleForm
extends com.vaadin.flow.component.formlayout.FormLayout
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.formlayout.FormLayout
com.vaadin.flow.component.formlayout.FormLayout.FormItem, com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.data.binder.Binder<RoleListDto>protected Runnableprotected com.vaadin.flow.component.button.Buttonprotected com.vaadin.flow.component.textfield.TextFieldprotected booleanprotected com.vaadin.flow.component.textfield.TextFieldprotected com.vaadin.flow.component.combobox.MultiSelectComboBox<String>protected RoleListDtoprivate RoleServiceprotected com.vaadin.flow.component.button.Buttonprotected Consumer<RoleListDto>protected boolean -
Constructor Summary
ConstructorsConstructorDescriptionRoleForm(boolean writeMode) RoleForm(boolean writeMode, RoleListDto roleListDto) -
Method Summary
Modifier and TypeMethodDescriptionprivate com.vaadin.flow.component.orderedlayout.HorizontalLayoutprivate voidinit(boolean writeMode) voidsetCancelCallback(Runnable cancelCallback) voidsetSaveCallback(Consumer<RoleListDto> saveCallback) voidsetTexts()Methods inherited from class com.vaadin.flow.component.formlayout.FormLayout
add, addFormItem, addFormItem, getColspan, getResponsiveSteps, setColspan, setResponsiveSteps, setResponsiveStepsMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
roleService
-
writeMode
protected boolean writeMode -
isNew
protected boolean isNew -
binder
-
roleListDto
-
saveCallback
-
cancelCallback
-
name
protected com.vaadin.flow.component.textfield.TextField name -
displayName
protected com.vaadin.flow.component.textfield.TextField displayName -
privilegeList
-
save
protected com.vaadin.flow.component.button.Button save -
close
protected com.vaadin.flow.component.button.Button close
-
-
Constructor Details
-
RoleForm
public RoleForm(boolean writeMode) -
RoleForm
-
-
Method Details
-
init
private void init(boolean writeMode) -
createButtonsLayout
private com.vaadin.flow.component.orderedlayout.HorizontalLayout createButtonsLayout() -
getSaveCallback
-
setSaveCallback
-
getCancelCallback
-
setCancelCallback
-
setTexts
public void setTexts()
-