case VERTICAL: case HORIZONTAL:
case SConstants.VERTICAL: case SConstants.HORIZONTAL:
    public void setOrientation(int newOrientation) {        if (orientation != newOrientation) {            switch (newOrientation) {                case VERTICAL:                case HORIZONTAL:                    int oldOrientation = orientation;                    orientation = newOrientation;                    reloadIfChange(oldOrientation, newOrientation);                    break;                default:                    throw new IllegalArgumentException(newOrientation +                            " is not a legal orientation");            }        }    }