Class Button
java.lang.Object
ch.nolix.system.element.mutableelement.AbstractMutableElement
ch.nolix.system.style.stylable.AbstractStylableElement<IButton>
ch.nolix.system.webgui.main.Control<IButton, IButtonStyle>
ch.nolix.system.webatomiccontrol.button.Button
- All Implemented Interfaces:
IFluentMutableTextHolder<IButton>, IFluentMutableMultiTokenHolder<IButton>, IFluentMutableOptionalIdHolder<IButton>, ITextHolder, IMultiTokenHolder, IOptionalIdHolder, Linkable, LinkedRequestable, TypeRequestable, Resettable, IHtmlGetter, IElement, IStructureElement, IMutableElement, ISizeAdjustableBox<IButton>, PresenceRequestable, PresenceSettable<IButton>, IStylableElement<IButton>, IButton, IControl<IButton, IButtonStyle>, IUserInputCell<IButton>
- Author:
- Silvan Wyss
-
Field Summary
FieldsFields inherited from class Control
DEFAULT_CURSOR_ICON, DEFAULT_PRESENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRole()IContainer<IControl<?, ?>> getText()booleanhasRole()booleanvoidvoidvoidvoidvoidvoidvoidrunHtmlEvent(String htmlEvent) setLeftMouseButtonPressAction(Runnable leftMouseButtonPressAction) setLeftMouseButtonPressAction(Consumer<IButton> leftMouseButtonPressAction) setLeftMouseButtonRelaseAction(Runnable leftMouseButtonReleaseAction) setLeftMouseButtonRelaseAction(Consumer<IButton> leftMouseButtonReleaseAction) setRole(ButtonRole role) Sets the text of the currentIFluentMutableTextHolder.setUserInput(String userInput) Methods inherited from class Control
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, internalSetParentControl, internalSetParentLayer, isCollapsed, isInvisible, isLinkedTo, isLinkedToAnObject, isVisible, linkTo, removeMaxHeight, removeMaxWidth, removeMinHeight, removeMinWidth, setCollapsed, setCursorIcon, setInvisible, setMaxHeight, setMaxHeightInPercentOfViewAreaHeight, setMaxWidth, setMaxWidthInPercentOfViewAreaWidth, setMinHeight, setMinHeightInPercentOfViewAreaHeight, setMinWidth, setMinWidthInPercentOfViewAreaWidth, setVisibility, setVisibleMethods 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 IControl
belongsToControl, belongsToGui, belongsToLayer, editStyle, getCssRules, getCursorIcon, getInternalId, getOptionalStoredChildControlByInternalId, getStoredParentControl, getStoredParentGui, getStoredParentLayer, getStoredStyle, hasInternalId, internalSetParentControl, internalSetParentLayer, setCursorIconMethods inherited from interface IElement
getAttributes, getSpecification, toFormatedString, toXmlMethods inherited from interface IFluentMutableMultiTokenHolder
addToken, removeToken, removeTokensMethods inherited from interface IFluentMutableOptionalIdHolder
removeId, setIdMethods inherited from interface IHtmlGetter
getHtmlMethods 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 ISizeAdjustableBox
getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, hasMaxHeight, hasMaxWidth, hasMinHeight, hasMinWidth, removeMaxHeight, removeMaxWidth, removeMinHeight, removeMinWidth, setMaxHeight, setMaxHeightInPercentOfViewAreaHeight, setMaxWidth, setMaxWidthInPercentOfViewAreaWidth, setMinHeight, setMinHeightInPercentOfViewAreaHeight, setMinWidth, setMinWidthInPercentOfViewAreaWidthMethods inherited from interface IStructureElement
getChildStructureElementsMethods inherited from interface IStylableElement
getStoredChildStylableElements, resetStyleRecursivelyMethods inherited from interface LinkedRequestable
getStoredLinkedObjects, isLinkedTo, isLinkedToAnObjectMethods inherited from interface PresenceRequestable
getPresence, isCollapsed, isInvisible, isVisibleMethods inherited from interface PresenceSettable
setCollapsed, setInvisible, setVisibility, setVisibleMethods inherited from interface Resettable
resetMethods inherited from interface TypeRequestable
getType, isOfConcreteType, isOfConcreteType, isOfType, isOfType
-
Field Details
-
DEFAULT_TEXT
- See Also:
-
-
Constructor Details
-
Button
public Button()
-
-
Method Details
-
getOptionalJavaScriptUserInputFunction
- Specified by:
getOptionalJavaScriptUserInputFunctionin interfaceIControl<IButton, IButtonStyle>
-
getStoredChildControls
- Specified by:
getStoredChildControlsin interfaceIControl<IButton, IButtonStyle>
-
getRole
-
getText
- Specified by:
getTextin interfaceITextHolder- Returns:
- the text of the current
ITextHolder.
-
getUserInput
- Specified by:
getUserInputin interfaceIUserInputCell<IButton>
-
hasRole
- Specified by:
hasRolein interfaceIStylableElement<IButton>- Parameters:
role-- Returns:
- true if the current
IStylableElementhas the given role, false otherwise.
-
hasRole
-
pressLeftMouseButton
public void pressLeftMouseButton()- Specified by:
pressLeftMouseButtonin interfaceIButton
-
registerHtmlElementEventsAt
- Specified by:
registerHtmlElementEventsAtin interfaceIControl<IButton, IButtonStyle>
-
releaseLeftMouseButton
public void releaseLeftMouseButton()- Specified by:
releaseLeftMouseButtonin interfaceIButton
-
removeLeftMouseButtonPressAction
public void removeLeftMouseButtonPressAction()- Specified by:
removeLeftMouseButtonPressActionin interfaceIButton
-
removeLeftMouseButtonReleaseAction
public void removeLeftMouseButtonReleaseAction()- Specified by:
removeLeftMouseButtonReleaseActionin interfaceIButton
-
removeRole
public void removeRole()- Specified by:
removeRolein interfaceIButton
-
runHtmlEvent
- Specified by:
runHtmlEventin interfaceIControl<IButton, IButtonStyle>
-
setLeftMouseButtonPressAction
- Specified by:
setLeftMouseButtonPressActionin interfaceIButton
-
setLeftMouseButtonPressAction
- Specified by:
setLeftMouseButtonPressActionin interfaceIButton
-
setLeftMouseButtonRelaseAction
- Specified by:
setLeftMouseButtonRelaseActionin interfaceIButton
-
setLeftMouseButtonRelaseAction
- Specified by:
setLeftMouseButtonRelaseActionin interfaceIButton
-
setRole
-
setText
Sets the text of the currentIFluentMutableTextHolder.- Specified by:
setTextin interfaceIFluentMutableTextHolder<IButton>- Parameters:
text-- Returns:
- the current
IFluentMutableTextHolder.
-
setUserInput
- Specified by:
setUserInputin interfaceIUserInputCell<IButton>
-