added Attributes (unfinished)

This commit is contained in:
LegitCheetah 2024-02-06 23:30:41 +01:00
parent 36e2248ab3
commit 076d17be2e
2 changed files with 27 additions and 7 deletions

View File

@ -12,12 +12,12 @@ public class ModuleGeneric {
protected String comment;
protected List<ModuleGeneric> content = new ArrayList<>();
//Global Attributes
//Global Attributes-------------------------------------------------------------------------------------------------
protected char accessKey;
protected String styleClass;
protected Boolean contentEditable;
protected String dataPrefix;
protected String dataValue;
protected String dataPrefix; //used with dataValue
protected String dataValue; //used with dataPrefix
protected String dir;
protected Enum draggable;
protected String enterKeyHint;
@ -26,17 +26,35 @@ public class ModuleGeneric {
protected boolean inert;
protected Enum inputMethod;
protected Enum lang;
protected boolean popOver;
protected String popOverTaret;
protected Boolean spellcheck;
protected boolean popOver; //used with id & needs popovertarget on another tag
protected String popOverTaret; //needs id with the same name & popover on another tag
protected Boolean spellCheck;
protected HashMap style;
protected int tabIndex;
protected String title;
protected Boolean translate;
//
//Specific Attributes-----------------------------------------------------------------------------------------------
//<input>
protected String accept; //used with type="file" //custom or Enum
protected String alt; //used with type="image"
protected Enum autoComplete; //Enum
protected Boolean autoFocus;
protected boolean checked; //used with type="checkbox" or type="radio"
protected boolean dirname; //used with name="<value>" -> dirname="<value.dir>"
protected boolean disabled;
protected String form; //needs formID
protected String formAction; //used with type="submit" or type="image"
protected Enum formenctype; //used with type="submit" or type="image"
protected Enum formmethod; //used with type="submit" or type="image"
protected boolean formNoValidate; //used with type="submit"
protected Enum formTarget; //or custom //use with type="submit" or type="image"
//form
protected String acceptCharset;
protected String action;
public StringBuilder build(){
StringBuilder buildString = new StringBuilder();
buildString

View File

@ -28,6 +28,8 @@ public class SiteGeneric extends ModuleTag {
addModule(this.body);
}
@Override
public StringBuilder build() {
StringBuilder buildString = new StringBuilder();