From 24f1b7d680425bf8a84b4bca11bb34ee193828d7 Mon Sep 17 00:00:00 2001 From: Legit Cheetah Date: Wed, 7 Feb 2024 17:05:42 +0100 Subject: [PATCH] added more attributes and renamed the others to better distinguish --- src/main/htmlModules/ModuleGeneric.java | 178 +++++++++++++++++++----- src/main/htmlModules/ModuleTag.java | 4 +- 2 files changed, 142 insertions(+), 40 deletions(-) diff --git a/src/main/htmlModules/ModuleGeneric.java b/src/main/htmlModules/ModuleGeneric.java index da5ac9e..f123ec7 100644 --- a/src/main/htmlModules/ModuleGeneric.java +++ b/src/main/htmlModules/ModuleGeneric.java @@ -13,54 +13,156 @@ public class ModuleGeneric { protected List content = new ArrayList<>(); //Global Attributes------------------------------------------------------------------------------------------------- - protected char accessKey; - protected String styleClass; - protected Boolean contentEditable; - protected String dataPrefix; //used with dataValue - protected String dataValue; //used with dataPrefix - protected String dir; - protected Enum draggable; - protected String enterKeyHint; - protected boolean hidden; - protected String id; - protected boolean inert; - protected Enum inputMethod; - protected Enum lang; - 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; - + protected char globalAttributeAccesskey; + protected String globalAttributeClass; + protected Boolean globalAttributeContenteditable; + protected String globalAttributeDataPrefix; //used with dataValue + protected String globalAttributeDataValue; //used with dataPrefix + protected String globalAttributeDir; + protected Enum globalAttributeDraggable; + protected String globalAttributeEnterkeyhint; + protected boolean globalAttributeHidden; + protected String globalAttributeId; + protected boolean globalAttributeInert; + protected Enum globalAttributeInputmethod; + protected Enum globalAttributeLang; + protected boolean globalAttributePopover; //used with id & needs popovertarget on another tag + protected Boolean globalAttributeSpellcheck; + protected HashMap globalAttributeStyle; + protected int globalAttributeTabindex; + protected String globalAttributeTitle; + protected Boolean globalAttributeTranslate; //Specific Attributes----------------------------------------------------------------------------------------------- + // + protected String areaAttributeAlt; + protected String areaAttributeCoords; + protected String areaAttributeDownload; + protected String areaAttributeHref; + protected Enum areaAttributeHreflang; + protected String areaAttributeMedia; //Enums + protected Enum areaAttributeReferrerpolicy; + protected Enum areaAttributeRel; + protected Enum areaAttributeShape; + protected String areaAttributeTarget; //and Enum + protected Enum areaAttributeType; + //