/** * Finds the {@link Form.Section} that the given component belongs to. * Only finds the section if the component is a direct child of the section. * * @see #getEnclosingSection getEnclosingSection(Component) */ public static Section getSection(Component component) { return (Section)component.getAttribute(Attribute.SECTION); }
public static boolean isRequired(Component component) { Boolean value = (Boolean)component.getAttribute(Attribute.REQUIRED); return (value == null) ? false : value; }
public static int getRowSpan(Component component) { Integer value = (Integer)component.getAttribute(Attribute.ROW_SPAN); return (value == null) ? 1 : value; }
public static String getLabel(Component component) { return (String)component.getAttribute(Attribute.LABEL); }
public static Object getTabData(Component component) { return component.getAttribute(Attribute.TAB_DATA); }
public static int getColumnSpan(Component component) { Integer value = (Integer)component.getAttribute(Attribute.COLUMN_SPAN); return (value == null) ? 1 : value; }
public static int getColumnSpan(Component component) { Integer value = (Integer)component.getAttribute(Attribute.COLUMN_SPAN); return (value == null) ? 1 : value; }
public static String getTooltipText(Component component) { return (String)component.getAttribute(Attribute.TOOLTIP_TEXT); }
public static String getTooltipText(Component component) { return (String)component.getAttribute(Attribute.TOOLTIP_TEXT); }
public static Object getHeaderData(Component component) { return component.getAttribute(Attribute.HEADER_DATA); }
public static String getTooltipText(Component component) { return (String)component.getAttribute(Attribute.TOOLTIP_TEXT); }
public static Flag getFlag(Component component) { return (Flag)component.getAttribute(Attribute.FLAG); }
public static String getLabel(Component component) { return (String)component.getAttribute(Attribute.LABEL); }
public static Object getTabData(Component component) { return component.getAttribute(Attribute.TAB_DATA); }
public static int getRowSpan(Component component) { Integer value = (Integer)component.getAttribute(Attribute.ROW_SPAN); return (value == null) ? 1 : value; }
public static boolean isRequired(Component component) { Boolean value = (Boolean)component.getAttribute(Attribute.REQUIRED); return (value == null) ? false : value; }
public static Flag getFlag(Component component) { return (Flag)component.getAttribute(Attribute.FLAG); }
public static Object getHeaderData(Component component) { return component.getAttribute(Attribute.HEADER_DATA); }
public static String getTooltipText(Component component) { return (String)component.getAttribute(Attribute.TOOLTIP_TEXT); }
public static Section getSection(Component component) { return (Section)component.getAttribute(Attribute.SECTION); }