public void mouseClicked(int button, int x, int y, int clickCount) {
        if (!contains(x, y)) {
            return;
        }
        switch (button) {
        case Input.MOUSE_LEFT_BUTTON:
            switch (clickCount) {
            case 1:
                clickListener.onClick(this, x, y);
                break;
            case 2:
                clickListener.onDoubleClick(this, x, y);
                break;
            default:
                break;
            }
            break;
        case Input.MOUSE_RIGHT_BUTTON:
            clickListener.onRightClick(this, x, y);
            break;
        default:
            break;
        }
    }