// this might be invalid ...
if (BlockProgression.TB.equals(blockProgression))
{
if (rightToLeft)
{
layoutContext.setValue(key, new CSSValuePair(RIGHT_BOTTOM, LEFT_TOP));
}
else
{
layoutContext.setValue(key, new CSSValuePair(LEFT_TOP, LEFT_TOP));
}
}
else if (BlockProgression.RL.equals(blockProgression))
{
if (rightToLeft)
{
layoutContext.setValue(key, new CSSValuePair(LEFT_TOP, LEFT_TOP));
}
else
{
layoutContext.setValue(key, new CSSValuePair(RIGHT_BOTTOM, LEFT_TOP));
}
}
else if (BlockProgression.LR.equals(blockProgression))
{
if (rightToLeft)
{
layoutContext.setValue(key, new CSSValuePair(RIGHT_BOTTOM, RIGHT_BOTTOM));
}
else
{
layoutContext.setValue(key, new CSSValuePair(LEFT_TOP, LEFT_TOP));
}
}
}