/**
*
*/
public static ModeEnum getMode(JRCommonElement element, ModeEnum defaultMode)
{
ModeEnum ownMode = element.getOwnModeValue();
if (ownMode != null)
{
return ownMode;
}
JRStyle style = getBaseStyle(element);
if (style != null)
{
ModeEnum mode = style.getModeValue();
if (mode != null)
{
return mode;
}
}