private boolean checkFieldsForSaving(boolean aReturnTrue) {
        boolean mReturnValue = true;
        
        //Check whether there has been a node selected in the parent categories.
        if (aReturnTrue == false && (trvParentCategory.getSelectionCount() == 0 || getParentID() == this.pCategoryDetail.getID())) {
            mReturnValue = false;
            trvParentCategory.setBackground(new Color(255, 200, 200));
        } else {
            trvParentCategory.setBackground(new Color(255, 255, 255));
        }
        
        //Check whether there is some text in the category name field.
        if (aReturnTrue == false && (txtCategoryName.getText().length() == 0)) {
            mReturnValue = false;
            txtCategoryName.setBackground(new Color(255, 200, 200));
        } else {
            txtCategoryName.setBackground(new Color(255, 255, 255));
        }
        
        return mReturnValue;
    }