Class AbstractControl<C extends Control<C,S>, S extends IControlStyle<S>>
java.lang.Object
ch.nolix.system.element.propertieselement.AbstractPropertiesElement
ch.nolix.system.style.stylable.AbstractStylableElement<C>
ch.nolix.system.webgui.main.AbstractControl<C,S>
- Type Parameters:
C- is the type of aAbstractControl.S- the type of theIControlStyleof aAbstractControl.
- All Implemented Interfaces:
FluentMutableMultiTokenHolder<C>, FluentMutableOptionalIdHolder<C>, MultiTokenHolder, OptionalIdHolder, GuiComponent<IWebGui<?>>, LayerComponent<ILayer>, Linkable, LinkedRequestable, TypeRequestable, Resettable, AttributesRepresentable, IElement, SpecificationRepresentable, IMutableElement, ISizeAdjustableBox<C>, PresenceRequestable, PresenceSettable<C>, IStylableElement<C>, HtmlGetter, Control<C,S>, IUserInputCell<C>
- Direct Known Subclasses:
AbstractContainer, AbstractItemMenu, Button, Component, ComponentWithAdapterFactory, ImageControl, Label, Link, Textbox, Uploader, ValidationLabel
public abstract class AbstractControl<C extends Control<C,S>, S extends IControlStyle<S>>
extends AbstractStylableElement<C>
implements Control<C,S>
- Author:
- Silvan Wyss
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal booleanfinal booleanfinal Cfinal ExtendedIterable<ICssRule> final CursorIconfinal IHtmlElementgetHtml()final Stringfinal IAbsoluteOrRelativeIntfinal IAbsoluteOrRelativeIntfinal IAbsoluteOrRelativeIntfinal IAbsoluteOrRelativeIntgetOptionalStoredChildControlByInternalId(String internalId) final Presencefinal ExtendedIterable<? extends IStylableElement<?>> final Control<?, ?> final IWebGui<?> final ILayerfinal SbooleanhasInternalId(String internalId) final booleanfinal booleanfinal booleanfinal booleanfinal voidfinal voidinternalSetControlParent(IControlParent controlParent) final booleanfinal booleanbooleanisLinkedTo(Object object) final booleanfinal booleanfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal Cfinal CsetCursorIcon(CursorIcon cursorIcon) final Cfinal CsetMaxHeight(int maxHeight) final CsetMaxHeightInPercentOfViewAreaHeight(double maxHeightInPercentOfViewAreaHeight) final CsetMaxWidth(int maxWidth) final CsetMaxWidthInPercentOfViewAreaWidth(double maxWidthInPercentOfViewAreaWidth) final CsetMinHeight(int minHeight) final CsetMinHeightInPercentOfViewAreaHeight(double minHeightInPercentOfViewAreaHeight) final CsetMinWidth(int minWidth) final CsetMinWidthInPercentOfViewAreaWidth(double minWidthInPercentOfViewAreaWidth) final CsetVisibility(boolean visible) final CMethods 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
getOptionalJavaScriptUserInputFunction, getStoredChildControls, getStoredStructureControls, registerHtmlElementEventsAt, runHtmlEventMethods inherited from interface FluentMutableMultiTokenHolder
addToken, removeToken, removeTokensMethods inherited from interface FluentMutableOptionalIdHolder
removeId, setIdMethods inherited from interface IMutableElement
addOrChangeAttribute, addOrChangeAttribute, addOrChangeAttributes, resetFromAttributes, resetFromSpecificationMethods inherited from interface IStylableElement
hasRole, resetStyleRecursivelyMethods inherited from interface IUserInputCell
getUserInput, setUserInputMethods inherited from interface MultiTokenHolder
getTokensMethods inherited from interface OptionalIdHolder
getId, getIdInSingleQuotes, hasId, hasIdMethods inherited from interface Resettable
resetMethods inherited from interface SpecificationRepresentable
getSpecification, hasEqualSpecificationAsElement, toFormatedStringMethods inherited from interface TypeRequestable
getType, isOfConcreteType, isOfConcreteType, isOfType, isOfType
-
Field Details
-
DEFAULT_PRESENCE
-
DEFAULT_CURSOR_ICON
-
-
Constructor Details
-
AbstractControl
public AbstractControl()
-
-
Method Details
-
belongsToControl
public final boolean belongsToControl()- Specified by:
belongsToControlin interfaceControl<C extends Control<C,S>, S extends IControlStyle<S>>
-
belongsToGui
public final boolean belongsToGui()- Specified by:
belongsToGuiin interfaceGuiComponent<C extends Control<C,S>> - Returns:
- true if the current
GuiComponentbelongs to a GUI, false otherwise.
-
belongsToLayer
public final boolean belongsToLayer()- Specified by:
belongsToLayerin interfaceLayerComponent<C extends Control<C,S>> - Returns:
- true if the current
LayerComponentbelongs to a layer, false otherwise.
-
editStyle
-
getCssRules
- Specified by:
getCssRulesin interfaceControl<C extends Control<C,S>, S extends IControlStyle<S>>
-
getCursorIcon
- Specified by:
getCursorIconin interfaceControl<C extends Control<C,S>, S extends IControlStyle<S>>
-
getHtml
- Specified by:
getHtmlin interfaceHtmlGetter
-
getInternalId
- Specified by:
getInternalIdin interfaceControl<C extends Control<C,S>, S extends IControlStyle<S>>
-
getMaxHeight
- Specified by:
getMaxHeightin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
getMaxWidth
- Specified by:
getMaxWidthin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
getMinHeight
- Specified by:
getMinHeightin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
getMinWidth
- Specified by:
getMinWidthin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
getPresence
- Specified by:
getPresencein interfacePresenceRequestable
-
getOptionalStoredChildControlByInternalId
-
getStoredChildStylableElements
- Specified by:
getStoredChildStylableElementsin interfaceIStylableElement<C extends Control<C,S>> - Returns:
- the child
IStylableElements of the currentIStylableElement.
-
getStoredLinkedObjects
- Specified by:
getStoredLinkedObjectsin interfaceLinkedRequestable
-
getStoredParentControl
- Specified by:
getStoredParentControlin interfaceControl<C extends Control<C,S>, S extends IControlStyle<S>>
-
getStoredParentGui
- Specified by:
getStoredParentGuiin interfaceGuiComponent<C extends Control<C,S>> - Returns:
- the GUI of the current
GuiComponent.
-
getStoredParentLayer
- Specified by:
getStoredParentLayerin interfaceLayerComponent<C extends Control<C,S>> - Returns:
- the parent layer of the current
LayerComponent.
-
getStoredStyle
- Specified by:
getStoredStylein interfaceControl<C extends Control<C,S>, S extends IControlStyle<S>>
-
hasInternalId
- Specified by:
hasInternalIdin interfaceControl<C extends Control<C,S>, S extends IControlStyle<S>>
-
hasMaxHeight
public final boolean hasMaxHeight()- Specified by:
hasMaxHeightin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
hasMaxWidth
public final boolean hasMaxWidth()- Specified by:
hasMaxWidthin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
hasMinHeight
public final boolean hasMinHeight()- Specified by:
hasMinHeightin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
hasMinWidth
public final boolean hasMinWidth()- Specified by:
hasMinWidthin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
internalRemoveControlParent
public final void internalRemoveControlParent()- Specified by:
internalRemoveControlParentin interfaceControl<C extends Control<C,S>, S extends IControlStyle<S>>
-
internalSetControlParent
- Specified by:
internalSetControlParentin interfaceControl<C extends Control<C,S>, S extends IControlStyle<S>>
-
isCollapsed
public final boolean isCollapsed()- Specified by:
isCollapsedin interfacePresenceRequestable
-
isInvisible
public final boolean isInvisible()- Specified by:
isInvisiblein interfacePresenceRequestable
-
isLinkedTo
- Specified by:
isLinkedToin interfaceLinkedRequestable
-
isLinkedToAnObject
public final boolean isLinkedToAnObject()- Specified by:
isLinkedToAnObjectin interfaceLinkedRequestable
-
isVisible
public final boolean isVisible()- Specified by:
isVisiblein interfacePresenceRequestable
-
linkTo
-
removeMaxHeight
public final void removeMaxHeight()- Specified by:
removeMaxHeightin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
removeMaxWidth
public final void removeMaxWidth()- Specified by:
removeMaxWidthin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
removeMinHeight
public final void removeMinHeight()- Specified by:
removeMinHeightin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
removeMinWidth
public final void removeMinWidth()- Specified by:
removeMinWidthin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
removeParentLayerFromGui
public final void removeParentLayerFromGui()- Specified by:
removeParentLayerFromGuiin interfaceControl<C extends Control<C,S>, S extends IControlStyle<S>>
-
setCollapsed
- Specified by:
setCollapsedin interfacePresenceSettable<C extends Control<C,S>>
-
setCursorIcon
- Specified by:
setCursorIconin interfaceControl<C extends Control<C,S>, S extends IControlStyle<S>>
-
setInvisible
- Specified by:
setInvisiblein interfacePresenceSettable<C extends Control<C,S>>
-
setMaxHeight
- Specified by:
setMaxHeightin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
setMaxHeightInPercentOfViewAreaHeight
- Specified by:
setMaxHeightInPercentOfViewAreaHeightin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
setMaxWidth
- Specified by:
setMaxWidthin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
setMaxWidthInPercentOfViewAreaWidth
- Specified by:
setMaxWidthInPercentOfViewAreaWidthin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
setMinHeight
- Specified by:
setMinHeightin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
setMinHeightInPercentOfViewAreaHeight
- Specified by:
setMinHeightInPercentOfViewAreaHeightin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
setMinWidth
- Specified by:
setMinWidthin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
setMinWidthInPercentOfViewAreaWidth
- Specified by:
setMinWidthInPercentOfViewAreaWidthin interfaceISizeAdjustableBox<C extends Control<C,S>>
-
setVisible
- Specified by:
setVisiblein interfacePresenceSettable<C extends Control<C,S>>
-
setVisibility
- Specified by:
setVisibilityin interfacePresenceSettable<C extends Control<C,S>>
-