Package overit.geocall.basic.ui
Class DocType
java.lang.Object
overit.geocall.basic.ui.DocType
- All Implemented Interfaces:
Serializable
This class implements the object which consist of the instruction, given to the web browser,
about what version of HTML the page is written in. It must be the first line of the html page.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected booleanstatic final DocTypeDoctype created with the string declaration for HTML 5static final DocTypeDoctype created with the string declaration for HTML 4.01 Strict.static final DocTypeDoctype created with the string declaration for TML 4.01 Transitional.static final DocTypeDeprecated.this is not supported anymore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the DocType declaration stringstatic DocTypegetInstance(String nick) Returns the instance of DocType that corresponds to the name passed as parameter; if the name isnullor an empty string, it is used, if present, the one set in the configuration file of the application (PropertiesUI.DOC_TYPE)booleanChecks if the DocType is for quirks mode
-
Field Details
-
HTML
Doctype created with the string declaration for HTML 5 -
HTML401STRICT
Doctype created with the string declaration for HTML 4.01 Strict.
This declaration contains all HTML elements and attributes, but does not include presentational or deprecated elements (like font). Framesets are not allowed. -
HTML401TRANSITIONAL
Doctype created with the string declaration for TML 4.01 Transitional.
This declaration contains all HTML elements and attributes, including presentational and deprecated elements (like font). Framesets are not allowed. -
QUIRKS
Deprecated.this is not supported anymoreDoctype created to manage the quirks mode.
This mode refers to a technique used by some web browsers to maintain backward compatibility with web pages designed for Internet Explorer 5 and earlier, instead of strictly complying with W3C standards. -
_nick
-
_declaration
-
_quirksMode
protected boolean _quirksMode
-
-
Constructor Details
-
DocType
Creates a DocType- Parameters:
nick- The string used to identify the DocTypedeclaration- The declaration stringquirksMode- Determine if the DocType is for quirks mode
-
-
Method Details
-
getInstance
Returns the instance of DocType that corresponds to the name passed as parameter; if the name isnullor an empty string, it is used, if present, the one set in the configuration file of the application (PropertiesUI.DOC_TYPE)- Parameters:
nick- The name used to identify the DocType- Returns:
- The instance of DocType that corresponds to the name passed as parameter or the name set in the
configuration file. If the name does not have a match, it will be returned the
QUIRKS
-
getDeclaration
Returns the DocType declaration string- Returns:
- The DocType declaration string
-
isQuirksMode
public boolean isQuirksMode()Checks if the DocType is for quirks mode- Returns:
trueif the DocType is for quirks mode,falseotherwise
-