@Override
	public void handle(MouseEvent event) {
		if (isSelected()) {
			if (event.getButton() == MouseButton.PRIMARY) {
				if (getGraphic() == null) {
					for (ButtonEventHandler buttonEvent : buttonEventList) {
						buttonEvent.onLeftClick(xPos, yPos);
						buttonEvent.onFirstClick();
					}
				} else {
					setSelected(false);
				}
			}
		} else if (event.getButton() == MouseButton.SECONDARY) {
			for (ButtonEventHandler buttonEvent : buttonEventList) {
				buttonEvent.onRightClick(xPos, yPos);
			}

		} else if (event.getButton() != MouseButton.MIDDLE) {
			setSelected(true);
		}
		event.consume();

	}