001 002package gudusoft.gsqlparser.pp.para.styleenums; 003 004/** 005 * Horizontal alignment direction for text padded to a shared width. 006 */ 007public enum TAlignOption { 008 /** Keep the text's left edge fixed and append padding on the right. */ 009 AloLeft, 010 /** Prepend padding so the text's right edge aligns with the widest item. */ 011 AloRight; 012 013 public static TAlignOption of(String type) { 014 if (type == null) 015 return null; 016 for (TAlignOption value : TAlignOption.values()) { 017 if (value.name().equalsIgnoreCase(type)) { 018 return value; 019 } 020 } 021 return null; 022 } 023}