9091929394959697
public void setSelected(boolean selected) { this.selected = selected; if (selected) { eventBus.fireEvent(new LayerSelectedEvent(this)); } else { eventBus.fireEvent(new LayerDeselectedEvent(this)); } }