/** * Add a sub division for further logical grouping of content. * * @param name * (Required) a local identifier used to differentiate the * element from its siblings. * @param rend * (May be null) a rendering hint used to override the default * display of the element. * @return A new sub Division */ public Division addDivision(String name, String rend) throws WingException { Division division = new Division(context, name, rend); contents.add(division); return division; }
/** * Append a new division (div element) to the document's body. The division * created is not interactive meaning that it may not contain any form * elements, to create an interactive division use addInteractiveDivision(). * * @param name * (Required) a local identifier used to differentiate the * element from its siblings. * @param rend * (May be null) a rendering hint used to override the default * display of the element. * @return a new division. */ public Division addDivision(String name, String rend) throws WingException { Division div = new Division(context, name, rend); divisions.add(div); return div; }
/** * Add an interactive sub division for further logical grouping of content. * * The valid values for method may be found in the static variable METHODS. * * @param name * (Required) a local identifier used to differentiate the * element from its siblings. * @param action * (Required) The form action attribute determines where the form * information should be sent for processing. * @param method * (Required) Accepted values are "get", "post", and "multipart". * Determines the method used to pass gathered field values to * the handler specified by the action attribute. The multipart * method should be used if there are any file fields used within * the division. * @param rend * (May be null) a rendering hint used to override the default * display of the element. * @return A new interactive sub division */ public Division addInteractiveDivision(String name, String action, String method, String rend) throws WingException { Division division = new Division(context, name, action, method, rend); contents.add(division); return division; }
/** * Append a new interactive division (div element) to the document's body. * An interactive division is able to contain form elements as. The extra * parameters required such as action and method dictate where and how the * form data should be processed. * * @param name * (Required) a local identifier used to differentiate the * element from its siblings. * @param action * (Required) determines where the form information should be * sent for processing. * @param method * (Required) determines the method used to pass gathered field * values to the handler specified by the action attribute. The * multipart method should be used if there are any file fields * used within the division. * @param rend * (May be null) a rendering hint used to override the default * display of the element. * @return A new division. */ public Division addInteractiveDivision(String name, String action, String method, String rend) throws WingException { Division div = new Division(context, name, action, method, rend); divisions.add(div); return div; }