Class WebGui
- All Implemented Interfaces:
IFluentMutableTitleHolder<WebGui>, IFluentMutableMultiTokenHolder<WebGui>, IFluentMutableOptionalIdHolder<WebGui>, ITitleHolder, IMultiTokenHolder, IOptionalIdHolder, RootRequestable, TypeRequestable, Clearable, Resettable, EmptinessRequestable, IElement, IStructureElement, IMutableElement, IBackgroundHolder<WebGui>, IGui<WebGui>, IStylableElement<WebGui>, IStyleElement<WebGui>, IWebGui<WebGui>
- Author:
- Silvan Wyss
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes the elements of the currentClearable.booleancontainsControl(IControl<?, ?> control) getCss()getHtml()getIcon()intgetOptionalStoredControlByInternalId(String internalId) IContainer<? extends IStylableElement<?>> IContainer<IControl<?, ?>> IContainer<ILayer<?>> ILayer<?> getTitle()booleanbooleanbooleanbooleanisEmpty()booleanisRoot()pushLayerWithRootControl(IControl<?, ?> rootControl) voidvoidremoveLayer(ILayer<?> layer) setBackground(IBackground background) setBackgroundColor(IColor backgroundColor) setBackgroundColorGradient(IColorGradient backgroundColorGradient) setBackgroundImage(IImage backgroundImage) setBackgroundImage(IImage backgroundImage, ImageApplication imageApplication) setFrontEndReaderAndFrontEndWriter(IFrontEndReader frontEndReader, IFrontEndWriter frontEndWriter) Sets the icon of the currentIGui.setRemoveLayerAction(Runnable removeLayerAction) Sets the title of the currentIFluentMutableTitleHolder.Methods inherited from class AbstractStyleElement
applyStyleIfHasStyle, hasStyle, removeStyle, setStyleMethods inherited from class AbstractStylableElement
addToken, getChildStructureElements, getId, getTokens, hasId, removeId, removeToken, removeTokens, reset, resetStyleRecursively, setIdMethods inherited from class AbstractMutableElement
addOrChangeAttribute, addOrChangeAttribute, equals, getAttributes, getSpecification, hashCode, resetFromFileWithFilePath, toStringMethods inherited from interface EmptinessRequestable
containsAnyMethods inherited from interface IElement
getAttributes, getSpecification, toFormatedString, toXmlMethods inherited from interface IFluentMutableMultiTokenHolder
addToken, removeToken, removeTokensMethods inherited from interface IFluentMutableOptionalIdHolder
removeId, setIdMethods inherited from interface IMultiTokenHolder
getTokensMethods inherited from interface IMutableElement
addOrChangeAttribute, addOrChangeAttribute, addOrChangeAttributes, addOrChangeAttributes, addOrChangeAttributes, resetFromAttributes, resetFromSpecificationMethods inherited from interface IOptionalIdHolder
getId, getIdInQuotes, hasId, hasIdMethods inherited from interface IStructureElement
getChildStructureElementsMethods inherited from interface IStylableElement
resetStyleRecursivelyMethods inherited from interface IStyleElement
applyStyleIfHasStyle, hasStyle, removeStyle, setStyleMethods inherited from interface ITitleHolder
getTitleInQuotesMethods inherited from interface Resettable
resetMethods inherited from interface RootRequestable
isChildMethods inherited from interface TypeRequestable
getType, isOfConcreteType, isOfConcreteType, isOfType, isOfType
-
Field Details
-
DEFAULT_TITLE
- See Also:
-
DEFAULT_ICON
-
DEFAULT_BACKGROUND_COLOR
-
-
Constructor Details
-
WebGui
public WebGui()
-
-
Method Details
-
containsControl
- Specified by:
containsControlin interfaceIWebGui<WebGui>
-
clear
-
fromFrontEnd
- Specified by:
fromFrontEndin interfaceIGui<WebGui>- Returns:
- the
IFrontEndReaderof the currentIGui.
-
getBackground
- Specified by:
getBackgroundin interfaceIBackgroundHolder<WebGui>
-
getBackgroundColor
- Specified by:
getBackgroundColorin interfaceIBackgroundHolder<WebGui>
-
getBackgroundColorGradient
- Specified by:
getBackgroundColorGradientin interfaceIBackgroundHolder<WebGui>
-
getBackgroundImage
- Specified by:
getBackgroundImagein interfaceIBackgroundHolder<WebGui>
-
getBackgroundImageApplication
- Specified by:
getBackgroundImageApplicationin interfaceIBackgroundHolder<WebGui>
-
getBackgroundType
- Specified by:
getBackgroundTypein interfaceIBackgroundHolder<WebGui>
-
getCss
-
getHtml
-
getIcon
-
getHtmlElementEventRegistrations
- Specified by:
getHtmlElementEventRegistrationsin interfaceIWebGui<WebGui>
-
getLayerCount
public int getLayerCount()- Specified by:
getLayerCountin interfaceIWebGui<WebGui>
-
getOptionalStoredControlByInternalId
-
getStoredChildStylableElements
- Specified by:
getStoredChildStylableElementsin interfaceIStylableElement<WebGui>- Returns:
- the child
IStylableElements of the currentIStylableElement.
-
getStoredControls
- Specified by:
getStoredControlsin interfaceIWebGui<WebGui>
-
getStoredLayers
- Specified by:
getStoredLayersin interfaceIWebGui<WebGui>
-
getStoredTopLayer
- Specified by:
getStoredTopLayerin interfaceIWebGui<WebGui>
-
getTitle
- Specified by:
getTitlein interfaceITitleHolder- Returns:
- the title of the current
ITitleHolder.
-
hasBackground
public boolean hasBackground()- Specified by:
hasBackgroundin interfaceIBackgroundHolder<WebGui>
-
hasRemoveLayerAction
public boolean hasRemoveLayerAction()- Specified by:
hasRemoveLayerActionin interfaceIWebGui<WebGui>
-
hasRole
- Specified by:
hasRolein interfaceIStylableElement<WebGui>- Parameters:
role-- Returns:
- true if the current
IStylableElementhas the given role, false otherwise.
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceEmptinessRequestable- Returns:
- true if
EmptinessRequestabledoes not contain an element, false otherwise.
-
isRoot
public boolean isRoot()- Specified by:
isRootin interfaceRootRequestable- Returns:
- true if the current
RootRequestableis a root object, false otherwise.
-
onFrontEnd
- Specified by:
onFrontEndin interfaceIGui<WebGui>- Returns:
- the
IFrontEndWriterof the currentIGui.
-
pushLayer
-
pushLayerWithRootControl
- Specified by:
pushLayerWithRootControlin interfaceIWebGui<WebGui>
-
removeBackground
public void removeBackground()- Specified by:
removeBackgroundin interfaceIBackgroundHolder<WebGui>
-
removeLayer
- Specified by:
removeLayerin interfaceIWebGui<WebGui>
-
setBackground
-
setBackgroundColor
- Specified by:
setBackgroundColorin interfaceIBackgroundHolder<WebGui>
-
setBackgroundColorGradient
- Specified by:
setBackgroundColorGradientin interfaceIBackgroundHolder<WebGui>
-
setBackgroundImage
- Specified by:
setBackgroundImagein interfaceIBackgroundHolder<WebGui>
-
setBackgroundImage
- Specified by:
setBackgroundImagein interfaceIBackgroundHolder<WebGui>
-
setFrontEndReaderAndFrontEndWriter
public WebGui setFrontEndReaderAndFrontEndWriter(IFrontEndReader frontEndReader, IFrontEndWriter frontEndWriter) - Specified by:
setFrontEndReaderAndFrontEndWriterin interfaceIWebGui<WebGui>
-
setIcon
-
setRemoveLayerAction
- Specified by:
setRemoveLayerActionin interfaceIWebGui<WebGui>
-
setTitle
Sets the title of the currentIFluentMutableTitleHolder.- Specified by:
setTitlein interfaceIFluentMutableTitleHolder<WebGui>- Parameters:
title-- Returns:
- the current
IFluentMutableTitleHolder.
-