Class ImageControl
java.lang.Object
ch.nolix.system.element.propertieselement.AbstractPropertiesElement
ch.nolix.system.style.stylable.AbstractStylableElement<IImageControl>
ch.nolix.system.webgui.main.AbstractControl<IImageControl, IImageControlStyle>
ch.nolix.system.control.imagecontrol.ImageControl
- All Implemented Interfaces:
FluentMutableMultiTokenHolder<IImageControl>, FluentMutableOptionalIdHolder<IImageControl>, MultiTokenHolder, OptionalIdHolder, GuiComponent<IWebGui<?>>, LayerComponent<ILayer>, Linkable, LinkedRequestable, TypeRequestable, Clearable, Resettable, EmptinessRequestable, IImageControl, AttributesRepresentable, IElement, SpecificationRepresentable, IMutableElement, ISizeAdjustableBox<IImageControl>, PresenceRequestable, PresenceSettable<IImageControl>, IStylableElement<IImageControl>, HtmlGetter, Control<IImageControl, IImageControlStyle>, IUserInputCell<IImageControl>
public final class ImageControl
extends AbstractControl<IImageControl, IImageControlStyle>
implements IImageControl
- Author:
- Silvan Wyss
-
Field Summary
FieldsFields inherited from class AbstractControl
DEFAULT_CURSOR_ICON, DEFAULT_PRESENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes the elements of the currentClearable.ExtendedIterable<Control<?, ?>> ExtendedIterable<Control<?, ?>> booleanbooleanbooleanbooleanisEmpty()voidvoidvoidvoidrunHtmlEvent(String htmlEvent) setAlternateText(String alternateText) setLeftMouseButtonPressAction(Runnable leftMouseButtonPressAction) setLeftMouseButtonPressAction(Consumer<IImageControl> leftMouseButtonPressAction) setLeftMouseButtonRelaseAction(Runnable leftMouseButtonReleaseAction) setLeftMouseButtonRelaseAction(Consumer<IImageControl> leftMouseButtonReleaseAction) setUserInput(String userInput) Methods inherited from class AbstractControl
belongsToControl, belongsToGui, belongsToLayer, editStyle, getCssRules, getCursorIcon, getHtml, getInternalId, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOptionalStoredChildControlByInternalId, getPresence, getStoredChildStylableElements, getStoredLinkedObjects, getStoredParentControl, getStoredParentGui, getStoredParentLayer, getStoredStyle, hasInternalId, hasMaxHeight, hasMaxWidth, hasMinHeight, hasMinWidth, internalRemoveControlParent, internalSetControlParent, isCollapsed, isInvisible, isLinkedTo, isLinkedToAnObject, isVisible, linkTo, removeMaxHeight, removeMaxWidth, removeMinHeight, removeMinWidth, removeParentLayerFromGui, setCollapsed, setCursorIcon, setInvisible, setMaxHeight, setMaxHeightInPercentOfViewAreaHeight, setMaxWidth, setMaxWidthInPercentOfViewAreaWidth, setMinHeight, setMinHeightInPercentOfViewAreaHeight, setMinWidth, setMinWidthInPercentOfViewAreaWidth, setVisibility, setVisibleMethods inherited from class AbstractStylableElement
addToken, getId, getTokens, hasId, removeId, removeToken, removeTokens, reset, resetStyleRecursively, setIdMethods inherited from class AbstractPropertiesElement
addOrChangeAttribute, addOrChangeAttribute, equals, getAttributes, getSpecification, hashCode, toStringMethods inherited from interface AttributesRepresentable
getAttributesMethods inherited from interface Control
belongsToControl, editStyle, getCssRules, getCursorIcon, getInternalId, getOptionalStoredChildControlByInternalId, getStoredParentControl, getStoredStyle, hasInternalId, internalRemoveControlParent, internalSetControlParent, removeParentLayerFromGui, setCursorIconMethods inherited from interface EmptinessRequestable
containsAnyMethods inherited from interface FluentMutableMultiTokenHolder
addToken, removeToken, removeTokensMethods inherited from interface FluentMutableOptionalIdHolder
removeId, setIdMethods inherited from interface GuiComponent
belongsToGui, getStoredParentGuiMethods inherited from interface HtmlGetter
getHtmlMethods inherited from interface IMutableElement
addOrChangeAttribute, addOrChangeAttribute, addOrChangeAttributes, resetFromAttributes, resetFromSpecificationMethods inherited from interface ISizeAdjustableBox
getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, hasMaxHeight, hasMaxWidth, hasMinHeight, hasMinWidth, removeMaxHeight, removeMaxWidth, removeMinHeight, removeMinWidth, setMaxHeight, setMaxHeightInPercentOfViewAreaHeight, setMaxWidth, setMaxWidthInPercentOfViewAreaWidth, setMinHeight, setMinHeightInPercentOfViewAreaHeight, setMinWidth, setMinWidthInPercentOfViewAreaWidthMethods inherited from interface IStylableElement
getStoredChildStylableElements, resetStyleRecursivelyMethods inherited from interface LayerComponent
belongsToLayer, getStoredParentLayerMethods inherited from interface LinkedRequestable
getStoredLinkedObjects, isLinkedTo, isLinkedToAnObjectMethods inherited from interface MultiTokenHolder
getTokensMethods inherited from interface OptionalIdHolder
getId, getIdInSingleQuotes, hasId, hasIdMethods inherited from interface PresenceRequestable
getPresence, isCollapsed, isInvisible, isVisibleMethods inherited from interface PresenceSettable
setCollapsed, setInvisible, setVisibility, setVisibleMethods inherited from interface Resettable
resetMethods inherited from interface SpecificationRepresentable
getSpecification, hasEqualSpecificationAsElement, toFormatedStringMethods inherited from interface TypeRequestable
getType, isOfConcreteType, isOfConcreteType, isOfType, isOfType
-
Field Details
-
DEFAULT_ALTERNATE_TEXT
- See Also:
-
-
Constructor Details
-
ImageControl
public ImageControl()
-
-
Method Details
-
clear
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceEmptinessRequestable- Returns:
- true if
EmptinessRequestabledoes not contain an element, false otherwise.
-
getAlternateText
- Specified by:
getAlternateTextin interfaceIImageControl
-
getOptionalJavaScriptUserInputFunction
- Specified by:
getOptionalJavaScriptUserInputFunctionin interfaceControl<IImageControl, IImageControlStyle>
-
getStoredChildControls
- Specified by:
getStoredChildControlsin interfaceControl<IImageControl, IImageControlStyle>
-
getStoredImage
- Specified by:
getStoredImagein interfaceIImageControl
-
getStoredStructureControls
- Specified by:
getStoredStructureControlsin interfaceControl<IImageControl, IImageControlStyle>
-
getUserInput
- Specified by:
getUserInputin interfaceIUserInputCell<IImageControl>
-
hasLeftMouseButtonPressAction
public boolean hasLeftMouseButtonPressAction()- Specified by:
hasLeftMouseButtonPressActionin interfaceIImageControl
-
hasLeftMouseButtonReleaseAction
public boolean hasLeftMouseButtonReleaseAction()- Specified by:
hasLeftMouseButtonReleaseActionin interfaceIImageControl
-
hasRole
- Specified by:
hasRolein interfaceIStylableElement<IImageControl>- Parameters:
role-- Returns:
- true if the current
IStylableElementhas the given role, false otherwise.
-
registerHtmlElementEventsAt
- Specified by:
registerHtmlElementEventsAtin interfaceControl<IImageControl, IImageControlStyle>
-
removeLeftMouseButtonPressAction
public void removeLeftMouseButtonPressAction()- Specified by:
removeLeftMouseButtonPressActionin interfaceIImageControl
-
removeLeftMouseButtonReleaseAction
public void removeLeftMouseButtonReleaseAction()- Specified by:
removeLeftMouseButtonReleaseActionin interfaceIImageControl
-
runHtmlEvent
- Specified by:
runHtmlEventin interfaceControl<IImageControl, IImageControlStyle>
-
setAlternateText
- Specified by:
setAlternateTextin interfaceIImageControl
-
setImage
- Specified by:
setImagein interfaceIImageControl
-
setLeftMouseButtonPressAction
- Specified by:
setLeftMouseButtonPressActionin interfaceIImageControl
-
setLeftMouseButtonPressAction
public IImageControl setLeftMouseButtonPressAction(Consumer<IImageControl> leftMouseButtonPressAction) - Specified by:
setLeftMouseButtonPressActionin interfaceIImageControl
-
setLeftMouseButtonRelaseAction
- Specified by:
setLeftMouseButtonRelaseActionin interfaceIImageControl
-
setLeftMouseButtonRelaseAction
public IImageControl setLeftMouseButtonRelaseAction(Consumer<IImageControl> leftMouseButtonReleaseAction) - Specified by:
setLeftMouseButtonRelaseActionin interfaceIImageControl
-
setUserInput
- Specified by:
setUserInputin interfaceIUserInputCell<IImageControl>
-