Skip to content

Commit 1186559

Browse files
committed
WIP: replace single lombok usage with getter method
1 parent 54d1b3a commit 1186559

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/main/java/com/flowingcode/vaadin/addons/chatassistant/ChatAssistant.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
import com.vaadin.flow.dom.Style;
4949
import com.vaadin.flow.function.SerializableSupplier;
5050
import com.vaadin.flow.shared.Registration;
51-
import lombok.Getter;
5251

5352
import java.io.Serializable;
5453
import java.time.LocalDateTime;
@@ -94,7 +93,6 @@ public class ChatAssistant<T extends Message> extends Div {
9493
private static final String DEFAULT_RESIZE_CLASS = "fc-chat-assistant-resize";
9594
private static final String DEFAULT_UNREAD_BADGE_CLASS = "fc-chat-assistant-unread-badge";
9695

97-
@Getter
9896
private Component headerComponent;
9997
private Component footerContainer;
10098
private final VirtualList<T> content;
@@ -601,6 +599,11 @@ public void setHeaderComponent(Component component) {
601599
this.container.addComponentAsFirst(this.headerComponent);
602600
}
603601

602+
/** Returns the current component configured as the header of the chat window. */
603+
public Component getHeaderComponent() {
604+
return this.headerComponent;
605+
}
606+
604607
/**
605608
* Allows changing the footer of the chat window.
606609
*

0 commit comments

Comments
 (0)