20 package net.sf.gridarta.gui.panel.gameobjectattributes;
22 import java.awt.Component;
23 import java.awt.event.FocusEvent;
24 import java.awt.event.FocusListener;
25 import java.util.ArrayList;
26 import java.util.Collection;
31 import org.jetbrains.annotations.NotNull;
32 import org.jetbrains.annotations.Nullable;
43 private final Collection<GameObjectAttributesTabListener<G, A, R>>
listeners =
new ArrayList<>();
65 public void focusGained(
final FocusEvent e) {
70 public void focusLost(
final FocusEvent e) {
90 public void refreshSelectedGameObject() {
95 gameObjectAttributesModel.addGameObjectAttributesModelListener(gameObjectAttributesModelListener);
140 protected abstract void refresh(@Nullable G gameObject);
146 protected abstract void apply(@NotNull G gameObject);