Class Control<C extends IControl<C,S>, S extends IControlStyle<S>>
java.lang.Object
ch.nolix.system.element.mutableelement.AbstractMutableElement
ch.nolix.system.style.stylable.AbstractStylableElement<C>
ch.nolix.system.webgui.main.Control<C,S>
- Type Parameters:
C- is the type of aControl.S- is the type of theIControlStyleof aControl.
- All Implemented Interfaces:
IFluentMutableMultiTokenHolder<C>, IFluentMutableOptionalIdHolder<C>, IMultiTokenHolder, IOptionalIdHolder, Linkable, LinkedRequestable, TypeRequestable, Resettable, IHtmlGetter, IElement, IStructureElement, IMutableElement, ISizeAdjustableBox<C>, PresenceRequestable, PresenceSettable<C>, IStylableElement<C>, IControl<C,S>, IUserInputCell<C>
- Direct Known Subclasses:
AbstractContainer, AbstractItemMenu, Button, Component, ComponentWithAdapterFactory, ImageControl, Label, Link, Textbox, Uploader, ValidationLabel
public abstract class Control<C extends IControl<C,S>, S extends IControlStyle<S>>
extends AbstractStylableElement<C>
implements IControl<C,S>
- Author:
- Silvan Wyss
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal booleanfinal booleanfinal Cfinal IContainer<ICssRule> final CursorIconfinal IHtmlElementgetHtml()final Stringfinal IAbsoluteOrRelativeIntfinal IAbsoluteOrRelativeIntfinal IAbsoluteOrRelativeIntfinal IAbsoluteOrRelativeIntgetOptionalStoredChildControlByInternalId(String internalId) final Presencefinal IContainer<? extends IStylableElement<?>> final IControl<?, ?> final IWebGui<?> final ILayer<?> final SbooleanhasInternalId(String internalId) final booleanfinal booleanfinal booleanfinal booleanfinal voidinternalSetParentControl(IControl<?, ?> parentControl) final voidinternalSetParentLayer(ILayer<?> parentLayer) final booleanfinal booleanbooleanisLinkedTo(Object object) final 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, 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
getOptionalJavaScriptUserInputFunction, getStoredChildControls, registerHtmlElementEventsAt, runHtmlEventMethods inherited from interface IElement
getAttributes, getSpecification, toFormatedString, toXmlMethods inherited from interface IFluentMutableMultiTokenHolder
addToken, removeToken, removeTokensMethods inherited from interface IFluentMutableOptionalIdHolder
removeId, setIdMethods 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 IStructureElement
getChildStructureElementsMethods inherited from interface IStylableElement
hasRole, resetStyleRecursivelyMethods inherited from interface IUserInputCell
getUserInput, setUserInputMethods inherited from interface Resettable
resetMethods inherited from interface TypeRequestable
getType, isOfConcreteType, isOfConcreteType, isOfType, isOfType
-
Field Details
-
DEFAULT_PRESENCE
-
DEFAULT_CURSOR_ICON
-
-
Constructor Details
-
Control
public Control()
-
-
Method Details
-
belongsToControl
public final boolean belongsToControl()- Specified by:
belongsToControlin interfaceIControl<C extends IControl<C,S>, S extends IControlStyle<S>>
-
belongsToGui
public final boolean belongsToGui()- Specified by:
belongsToGuiin interfaceIControl<C extends IControl<C,S>, S extends IControlStyle<S>>
-
belongsToLayer
public final boolean belongsToLayer()- Specified by:
belongsToLayerin interfaceIControl<C extends IControl<C,S>, S extends IControlStyle<S>>
-
editStyle
-
getCssRules
- Specified by:
getCssRulesin interfaceIControl<C extends IControl<C,S>, S extends IControlStyle<S>>
-
getCursorIcon
- Specified by:
getCursorIconin interfaceIControl<C extends IControl<C,S>, S extends IControlStyle<S>>
-
getHtml
- Specified by:
getHtmlin interfaceIHtmlGetter
-
getInternalId
- Specified by:
getInternalIdin interfaceIControl<C extends IControl<C,S>, S extends IControlStyle<S>>
-
getMaxHeight
- Specified by:
getMaxHeightin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
getMaxWidth
- Specified by:
getMaxWidthin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
getMinHeight
- Specified by:
getMinHeightin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
getMinWidth
- Specified by:
getMinWidthin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
getPresence
- Specified by:
getPresencein interfacePresenceRequestable
-
getOptionalStoredChildControlByInternalId
-
getStoredChildStylableElements
- Specified by:
getStoredChildStylableElementsin interfaceIStylableElement<C extends IControl<C,S>> - Returns:
- the child
IStylableElements of the currentIStylableElement.
-
getStoredLinkedObjects
- Specified by:
getStoredLinkedObjectsin interfaceLinkedRequestable
-
getStoredParentControl
- Specified by:
getStoredParentControlin interfaceIControl<C extends IControl<C,S>, S extends IControlStyle<S>>
-
getStoredParentGui
- Specified by:
getStoredParentGuiin interfaceIControl<C extends IControl<C,S>, S extends IControlStyle<S>>
-
getStoredParentLayer
- Specified by:
getStoredParentLayerin interfaceIControl<C extends IControl<C,S>, S extends IControlStyle<S>>
-
getStoredStyle
- Specified by:
getStoredStylein interfaceIControl<C extends IControl<C,S>, S extends IControlStyle<S>>
-
hasInternalId
- Specified by:
hasInternalIdin interfaceIControl<C extends IControl<C,S>, S extends IControlStyle<S>>
-
hasMaxHeight
public final boolean hasMaxHeight()- Specified by:
hasMaxHeightin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
hasMaxWidth
public final boolean hasMaxWidth()- Specified by:
hasMaxWidthin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
hasMinHeight
public final boolean hasMinHeight()- Specified by:
hasMinHeightin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
hasMinWidth
public final boolean hasMinWidth()- Specified by:
hasMinWidthin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
internalSetParentControl
- Specified by:
internalSetParentControlin interfaceIControl<C extends IControl<C,S>, S extends IControlStyle<S>>
-
internalSetParentLayer
- Specified by:
internalSetParentLayerin interfaceIControl<C extends IControl<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 IControl<C,S>>
-
removeMaxWidth
public final void removeMaxWidth()- Specified by:
removeMaxWidthin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
removeMinHeight
public final void removeMinHeight()- Specified by:
removeMinHeightin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
removeMinWidth
public final void removeMinWidth()- Specified by:
removeMinWidthin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
setCollapsed
- Specified by:
setCollapsedin interfacePresenceSettable<C extends IControl<C,S>>
-
setCursorIcon
- Specified by:
setCursorIconin interfaceIControl<C extends IControl<C,S>, S extends IControlStyle<S>>
-
setInvisible
- Specified by:
setInvisiblein interfacePresenceSettable<C extends IControl<C,S>>
-
setMaxHeight
- Specified by:
setMaxHeightin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
setMaxHeightInPercentOfViewAreaHeight
- Specified by:
setMaxHeightInPercentOfViewAreaHeightin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
setMaxWidth
- Specified by:
setMaxWidthin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
setMaxWidthInPercentOfViewAreaWidth
- Specified by:
setMaxWidthInPercentOfViewAreaWidthin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
setMinHeight
- Specified by:
setMinHeightin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
setMinHeightInPercentOfViewAreaHeight
- Specified by:
setMinHeightInPercentOfViewAreaHeightin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
setMinWidth
- Specified by:
setMinWidthin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
setMinWidthInPercentOfViewAreaWidth
- Specified by:
setMinWidthInPercentOfViewAreaWidthin interfaceISizeAdjustableBox<C extends IControl<C,S>>
-
setVisible
- Specified by:
setVisiblein interfacePresenceSettable<C extends IControl<C,S>>
-
setVisibility
- Specified by:
setVisibilityin interfacePresenceSettable<C extends IControl<C,S>>
-