Class WebGui
- All Implemented Interfaces:
FluentMutableTitleHolder<WebGui>, FluentMutableMultiTokenHolder<WebGui>, FluentMutableOptionalIdHolder<WebGui>, TitleHolder, MultiTokenHolder, OptionalIdHolder, Clearable, Resettable, EmptinessRequestable, TypeRequestable, AttributesRepresentable, Element, SpecificationRepresentable, MutableElement, BackgroundManager<WebGui>, FluentMutableIconHolder<WebGui>, IconHolder, Gui<WebGui>, StylableElement<WebGui>, StyleHolder<WebGui>, IWebGui<WebGui>
- Author:
- Silvan Wyss
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Colorstatic final ImmutableImagestatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes the elements of the currentClearable.booleancontainsControl(Control<?, ?> control) getCss()getHtml()getIcon()intgetOptionalStoredControlByInternalId(String internalId) ExtendedIterable<? extends StylableElement<?>> ExtendedIterable<Control<?, ?>> ExtendedIterable<Control<?, ?>> getTitle()booleanbooleanbooleanbooleanisEmpty()pushLayerWithRootControl(Control<?, ?> rootControl) voidvoidremoveLayer(ILayer layer) setBackground(IBackground background) setBackgroundColor(IColor backgroundColor) setBackgroundColorGradient(IColorGradient backgroundColorGradient) setBackgroundImage(Image backgroundImage) setBackgroundImage(Image backgroundImage, ImageApplication imageApplication) setFrontEndReaderAndFrontEndWriter(IFrontEndReader frontEndReader, IFrontEndWriter frontEndWriter) Sets the icon of the currentFluentMutableIconHolder.setRemoveLayerAction(Runnable removeLayerAction) Sets the title of the currentFluentMutableTitleHolder.Methods inherited from class AbstractStyleElement
applyStyleIfHasStyle, hasStyle, removeStyle, setStyleMethods inherited from class AbstractStylableElement
addToken, getId, getTokens, hasId, removeId, removeToken, removeTokens, reset, resetStyleRecursively, setIdMethods inherited from class AbstractMutableElementWithProperties
addOrChangeAttribute, addOrChangeAttribute, equals, getAttributes, getSpecification, hashCode, toStringMethods inherited from interface AttributesRepresentable
getAttributesMethods inherited from interface EmptinessRequestable
containsAnyMethods inherited from interface FluentMutableMultiTokenHolder
addToken, removeToken, removeTokensMethods inherited from interface FluentMutableOptionalIdHolder
removeId, setIdMethods inherited from interface MultiTokenHolder
getTokensMethods inherited from interface MutableElement
addOrChangeAttribute, addOrChangeAttribute, addOrChangeAttributes, resetFromAttributes, resetFromSpecificationMethods inherited from interface OptionalIdHolder
getId, getIdInSingleQuotes, hasId, hasIdMethods inherited from interface Resettable
resetMethods inherited from interface SpecificationRepresentable
getSpecification, hasEqualSpecificationAsElement, toFormatedStringMethods inherited from interface StylableElement
resetStyleRecursivelyMethods inherited from interface StyleHolder
applyStyleIfHasStyle, hasStyle, removeStyle, setStyleMethods inherited from interface TitleHolder
getTitleInSingleQuotesMethods 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 interfaceGui<WebGui>- Returns:
- the
IFrontEndReaderof the currentGui
-
getBackground
- Specified by:
getBackgroundin interfaceBackgroundManager<WebGui>
-
getBackgroundColor
- Specified by:
getBackgroundColorin interfaceBackgroundManager<WebGui>
-
getBackgroundColorGradient
- Specified by:
getBackgroundColorGradientin interfaceBackgroundManager<WebGui>
-
getBackgroundImage
- Specified by:
getBackgroundImagein interfaceBackgroundManager<WebGui>
-
getBackgroundImageApplication
- Specified by:
getBackgroundImageApplicationin interfaceBackgroundManager<WebGui>
-
getBackgroundType
- Specified by:
getBackgroundTypein interfaceBackgroundManager<WebGui>
-
getCss
-
getHtml
-
getIcon
- Specified by:
getIconin interfaceIconHolder- Returns:
- the icon of the current
IconHolder
-
getHtmlElementEventRegistrations
- Specified by:
getHtmlElementEventRegistrationsin interfaceIWebGui<WebGui>
-
getLayerCount
public int getLayerCount()- Specified by:
getLayerCountin interfaceIWebGui<WebGui>
-
getOptionalStoredControlByInternalId
-
getStoredChildStylableElements
- Specified by:
getStoredChildStylableElementsin interfaceStylableElement<WebGui>- Returns:
- the child
StylableElements of the currentStylableElement.
-
getStoredControls
- Specified by:
getStoredControlsin interfaceIWebGui<WebGui>
-
getStoredLayers
- Specified by:
getStoredLayersin interfaceIWebGui<WebGui>
-
getStoredStructureControls
- Specified by:
getStoredStructureControlsin interfaceIWebGui<WebGui>
-
getStoredTopLayer
- Specified by:
getStoredTopLayerin interfaceIWebGui<WebGui>
-
getTitle
- Specified by:
getTitlein interfaceTitleHolder- Returns:
- the title of the current
TitleHolder
-
hasBackground
public boolean hasBackground()- Specified by:
hasBackgroundin interfaceBackgroundManager<WebGui>
-
hasRemoveLayerAction
public boolean hasRemoveLayerAction()- Specified by:
hasRemoveLayerActionin interfaceIWebGui<WebGui>
-
hasRole
- Specified by:
hasRolein interfaceStylableElement<WebGui>- Parameters:
role-- Returns:
- true if the current
StylableElementhas the given role, false otherwise
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceEmptinessRequestable- Returns:
- true if
EmptinessRequestabledoes not contain an element, false otherwise
-
onFrontEnd
- Specified by:
onFrontEndin interfaceGui<WebGui>- Returns:
- the
IFrontEndWriterof the currentGui
-
pushLayer
-
pushLayerWithRootControl
- Specified by:
pushLayerWithRootControlin interfaceIWebGui<WebGui>
-
removeBackground
public void removeBackground()- Specified by:
removeBackgroundin interfaceBackgroundManager<WebGui>
-
removeLayer
- Specified by:
removeLayerin interfaceIWebGui<WebGui>
-
setBackground
-
setBackgroundColor
- Specified by:
setBackgroundColorin interfaceBackgroundManager<WebGui>
-
setBackgroundColorGradient
- Specified by:
setBackgroundColorGradientin interfaceBackgroundManager<WebGui>
-
setBackgroundImage
- Specified by:
setBackgroundImagein interfaceBackgroundManager<WebGui>
-
setBackgroundImage
- Specified by:
setBackgroundImagein interfaceBackgroundManager<WebGui>
-
setFrontEndReaderAndFrontEndWriter
public WebGui setFrontEndReaderAndFrontEndWriter(IFrontEndReader frontEndReader, IFrontEndWriter frontEndWriter) - Specified by:
setFrontEndReaderAndFrontEndWriterin interfaceIWebGui<WebGui>
-
setIcon
Sets the icon of the currentFluentMutableIconHolder.- Specified by:
setIconin interfaceFluentMutableIconHolder<WebGui>- Parameters:
icon-- Returns:
- the current
FluentMutableIconHolder
-
setRemoveLayerAction
- Specified by:
setRemoveLayerActionin interfaceIWebGui<WebGui>
-
setTitle
Sets the title of the currentFluentMutableTitleHolder.- Specified by:
setTitlein interfaceFluentMutableTitleHolder<WebGui>- Parameters:
title-- Returns:
- the current
FluentMutableTitleHolder
-