Class AbstractControl<C extends Control<C,S>, S extends ControlStyle<S>>
java.lang.Object
ch.nolix.system.element.mutableelement.AbstractMutableElementWithProperties
ch.nolix.system.style.stylable.AbstractStylableElement<C>
ch.nolix.system.webgui.main.AbstractControl<C,S>
- Type Parameters:
C- the type of aAbstractControl.S- the type of theControlStyleof aAbstractControl.
- All Implemented Interfaces:
FluentMutableMultiTokenHolder<C>, FluentMutableOptionalIdHolder<C>, MultiTokenHolder, OptionalIdHolder, Resettable, ControlComponent<Control<?,?>>, GuiComponent<IWebGui<?>>, LayerComponent<ILayer>, TypeRequestable, AttributesRepresentable, Element, SpecificationRepresentable, MutableElement, StylableElement<C>, PresenceSettable<C>, SizeAdjustableRectangle<C>, HtmlGetter, Control<C, S>, IUserInputCell<C>, PresenceRequestable
- 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 ControlStyle<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 StylableElement<?>> final Control<?, ?> final IWebGui<?> final ILayerfinal SbooleanhasInternalId(String internalId) final booleanfinal booleanfinal booleanfinal booleanfinal voidfinal voidinternalSetControlParent(IControlParent controlParent) final booleanfinal booleanfinal booleanfinal 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 AbstractMutableElementWithProperties
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 IUserInputCell
getUserInput, setUserInputMethods 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
hasRole, resetStyleRecursivelyMethods 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 interfaceControlComponent<C extends Control<C,S>> - Returns:
- true if the current
ControlComponentbelongs to a control, false otherwise
-
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 ControlStyle<S>>
-
getCursorIcon
- Specified by:
getCursorIconin interfaceControl<C extends Control<C,S>, S extends ControlStyle<S>>
-
getHtml
- Specified by:
getHtmlin interfaceHtmlGetter
-
getInternalId
- Specified by:
getInternalIdin interfaceControl<C extends Control<C,S>, S extends ControlStyle<S>>
-
getMaxHeight
- Specified by:
getMaxHeightin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
getMaxWidth
- Specified by:
getMaxWidthin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
getMinHeight
- Specified by:
getMinHeightin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
getMinWidth
- Specified by:
getMinWidthin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
getPresence
- Specified by:
getPresencein interfacePresenceRequestable
-
getOptionalStoredChildControlByInternalId
-
getStoredChildStylableElements
- Specified by:
getStoredChildStylableElementsin interfaceStylableElement<C extends Control<C,S>> - Returns:
- the child
StylableElements of the currentStylableElement.
-
getStoredParentControl
- Specified by:
getStoredParentControlin interfaceControlComponent<C extends Control<C,S>> - Returns:
- the control of the current
ControlComponent
-
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 ControlStyle<S>>
-
hasInternalId
- Specified by:
hasInternalIdin interfaceControl<C extends Control<C,S>, S extends ControlStyle<S>>
-
hasMaxHeight
public final boolean hasMaxHeight()- Specified by:
hasMaxHeightin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
hasMaxWidth
public final boolean hasMaxWidth()- Specified by:
hasMaxWidthin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
hasMinHeight
public final boolean hasMinHeight()- Specified by:
hasMinHeightin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
hasMinWidth
public final boolean hasMinWidth()- Specified by:
hasMinWidthin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
internalRemoveControlParent
public final void internalRemoveControlParent()- Specified by:
internalRemoveControlParentin interfaceControl<C extends Control<C,S>, S extends ControlStyle<S>>
-
internalSetControlParent
- Specified by:
internalSetControlParentin interfaceControl<C extends Control<C,S>, S extends ControlStyle<S>>
-
isCollapsed
public final boolean isCollapsed()- Specified by:
isCollapsedin interfacePresenceRequestable
-
isInvisible
public final boolean isInvisible()- Specified by:
isInvisiblein interfacePresenceRequestable
-
isVisible
public final boolean isVisible()- Specified by:
isVisiblein interfacePresenceRequestable
-
removeMaxHeight
public final void removeMaxHeight()- Specified by:
removeMaxHeightin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
removeMaxWidth
public final void removeMaxWidth()- Specified by:
removeMaxWidthin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
removeMinHeight
public final void removeMinHeight()- Specified by:
removeMinHeightin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
removeMinWidth
public final void removeMinWidth()- Specified by:
removeMinWidthin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
removeParentLayerFromGui
public final void removeParentLayerFromGui()- Specified by:
removeParentLayerFromGuiin interfaceControl<C extends Control<C,S>, S extends ControlStyle<S>>
-
setCollapsed
- Specified by:
setCollapsedin interfacePresenceSettable<C extends Control<C,S>>
-
setCursorIcon
- Specified by:
setCursorIconin interfaceControl<C extends Control<C,S>, S extends ControlStyle<S>>
-
setInvisible
- Specified by:
setInvisiblein interfacePresenceSettable<C extends Control<C,S>>
-
setMaxHeight
- Specified by:
setMaxHeightin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
setMaxHeightInPercentOfViewAreaHeight
- Specified by:
setMaxHeightInPercentOfViewAreaHeightin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
setMaxWidth
- Specified by:
setMaxWidthin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
setMaxWidthInPercentOfViewAreaWidth
- Specified by:
setMaxWidthInPercentOfViewAreaWidthin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
setMinHeight
- Specified by:
setMinHeightin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
setMinHeightInPercentOfViewAreaHeight
- Specified by:
setMinHeightInPercentOfViewAreaHeightin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
setMinWidth
- Specified by:
setMinWidthin interfaceSizeAdjustableRectangle<C extends Control<C,S>>
-
setMinWidthInPercentOfViewAreaWidth
- Specified by:
setMinWidthInPercentOfViewAreaWidthin interfaceSizeAdjustableRectangle<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>>
-