public void onMouseUp(MouseUpEvent event) {

        switch (m_state) {
            case SELECTING:
            case DRAGGING:
            case RESIZE_HEIGHT:
            case RESIZE_WIDTH:
                m_state = State.SELECTED;
                m_mouseOverArea = null;
                fireChangeEvent(true);
                DOM.releaseCapture(getElement());
                event.preventDefault();
                event.stopPropagation();
                break;
            case SELECTED:
            case EMPTY:
            default:
        }
    }