Class AbstractLinearContainerStyle<S extends ILinearContainerStyle<S> & IMultiStateConfiguration<S, ControlState>>
java.lang.Object
ch.nolix.system.element.base.AbstractElement
ch.nolix.system.element.multistateconfiguration.AbstractMultiStateConfiguration<S, ControlState>
ch.nolix.system.webgui.controlstyle.AbstractControlStyle<S>
ch.nolix.system.webcontainercontrol.linearcontainer.AbstractLinearContainerStyle<S>
- Type Parameters:
S- is the type of aAbstractLinearContainerStyle.
- All Implemented Interfaces:
Resettable, IElement, IMultiStateConfiguration<S, ControlState>, IMutableElement, IRespondingMutableElement<S>, ILinearContainerStyle<S>, IBackgroundStyle<S>, IBorderStyle<S>, IControlBaseStyle<S>, IControlStyle<S>, ICornerStyle<S>, IPaddingStyle<S>, IShadowStyle<S>, ISizeStyle<S>
- Direct Known Subclasses:
FloatContainerStyle, HorizontalStackStyle, VerticalStackStyle
public abstract class AbstractLinearContainerStyle<S extends ILinearContainerStyle<S> & IMultiStateConfiguration<S, ControlState>>
extends AbstractControlStyle<S>
implements ILinearContainerStyle<S>
- Author:
- Silvan Wyss
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final booleanstatic final intstatic final Fontstatic final doublestatic final Colorstatic final LineDecorationFields inherited from class AbstractControlStyle
DEFAULT_BACKGROUND, DEFAULT_BORDER_COLOR, DEFAULT_BORDER_THICKNESS, DEFAULT_CORNER_RADIUS, DEFAULT_PADDING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <C2 extends IControlBaseStyle<C2>>
voidaddChild(C2 controlStyle) booleanfinal SforStateSetBoldTextFlag(ControlState state, boolean boldTextFlag) final SforStateSetFont(ControlState state, Font font) final SforStateSetOpacity(ControlState state, double opacity) final SforStateSetTextColor(ControlState state, IColor textColor) forStateSetTextLineDecoration(ControlState state, LineDecoration textLineDecoration) final SforStateSetTextSize(ControlState state, int textSize) final booleanintfinal FontgetFontWhenHasState(ControlState state) final doublefinal IColorfinal intfinal voidvoidfinal voidfinal voidfinal voidvoidfinal voidsetChildControlMarginForState(ControlState state, int childControlMargin) Methods inherited from class AbstractControlStyle
definesHeightForState, definesWidthForState, forStateSetBackground, forStateSetBackgroundColor, forStateSetBackgroundColorGradient, forStateSetBackgroundImage, forStateSetBorderColor, forStateSetBorderThickness, forStateSetBottomBorderColor, forStateSetBottomBorderThickness, forStateSetBottomPadding, forStateSetCornerRadius, forStateSetCornerShadow, forStateSetCornerShadows, forStateSetHeight, forStateSetHeightInPercentOfViewArea, forStateSetLeftBorderColor, forStateSetLeftBorderThickness, forStateSetLeftPadding, forStateSetPadding, forStateSetRightBorderColor, forStateSetRightBorderThickness, forStateSetRightPadding, forStateSetTopBorderColor, forStateSetTopBorderThickness, forStateSetTopPadding, forStateSetWidth, forStateSetWidthInPercentOfViewAreaWidth, getBackgroundWhenHasState, getBottomBorderColorWhenHasState, getBottomBorderThicknessWhenHasState, getBottomPaddingWhenHasState, getCornerRadiusWhenHasState, getCornerShadowsWhenHasState, getHeightForState, getLeftBorderColorWhenHasState, getLeftBorderThicknessWhenHasState, getLeftPaddingWhenHasState, getRightBorderColorWhenHasState, getRightBorderThicknessWhenHasState, getRightPaddingWhenHasState, getTopBorderColorWhenHasState, getTopBorderThicknessWhenHasState, getTopPaddingWhenHasState, getWidthForState, removeCustomBackgrounds, removeCustomBorderColors, removeCustomBorderThicknesses, removeCustomBottomBorderColors, removeCustomBottomBorderThicknesses, removeCustomBottomPaddings, removeCustomCornerRadiuses, removeCustomCornerShadows, removeCustomHeights, removeCustomLeftBorderColors, removeCustomLeftBorderThicknesses, removeCustomLeftPaddings, removeCustomPaddings, removeCustomRightBorderColors, removeCustomRightBorderThicknesses, removeCustomRightPaddings, removeCustomTopBorderColors, removeCustomTopBorderThicknesses, removeCustomTopPaddings, removeCustomWidthsMethods inherited from class AbstractMultiStateConfiguration
addedOrChangedAttribute, addOrChangeAttribute, addOrChangeAttribute, getAttributes, getBaseState, reset, setFromMethods inherited from class AbstractElement
equals, getSpecification, hashCode, toStringMethods inherited from interface IBackgroundStyle
forStateSetBackground, forStateSetBackgroundColor, forStateSetBackgroundColorGradient, forStateSetBackgroundImage, getBackgroundWhenHasState, removeCustomBackgroundsMethods inherited from interface IBorderStyle
forStateSetBorderColor, forStateSetBorderThickness, forStateSetBottomBorderColor, forStateSetBottomBorderThickness, forStateSetLeftBorderColor, forStateSetLeftBorderThickness, forStateSetRightBorderColor, forStateSetRightBorderThickness, forStateSetTopBorderColor, forStateSetTopBorderThickness, getBottomBorderColorWhenHasState, getBottomBorderThicknessWhenHasState, getLeftBorderColorWhenHasState, getLeftBorderThicknessWhenHasState, getRightBorderColorWhenHasState, getRightBorderThicknessWhenHasState, getTopBorderColorWhenHasState, getTopBorderThicknessWhenHasState, removeCustomBorderColors, removeCustomBorderThicknesses, removeCustomBottomBorderColors, removeCustomBottomBorderThicknesses, removeCustomLeftBorderColors, removeCustomLeftBorderThicknesses, removeCustomRightBorderColors, removeCustomRightBorderThicknesses, removeCustomTopBorderColors, removeCustomTopBorderThicknessesMethods inherited from interface IControlBaseStyle
addChild, definesTextLineDecorationForState, forStateSetBoldTextFlag, forStateSetFont, forStateSetOpacity, forStateSetTextColor, forStateSetTextLineDecoration, forStateSetTextSize, getBoldTextFlagWhenHasState, getFontWhenHasState, getOpacityWhenHasState, getTextColorWhenHasState, getTextLineDecorationWhenHasState, getTextSizeWhenHasState, removeCustomBoldTextFlags, removeCustomFonts, removeCustomOpacities, removeCustomTextColors, removeCustomTextLineDecorations, removeCustomTextSizesMethods inherited from interface ICornerStyle
forStateSetCornerRadius, getCornerRadiusWhenHasState, removeCustomCornerRadiusesMethods inherited from interface IElement
getAttributes, getSpecification, toFormatedString, toXmlMethods inherited from interface IMultiStateConfiguration
getBaseStateMethods inherited from interface IMutableElement
addOrChangeAttribute, addOrChangeAttribute, addOrChangeAttributes, addOrChangeAttributes, addOrChangeAttributes, resetFromAttributes, resetFromSpecificationMethods inherited from interface IPaddingStyle
forStateSetBottomPadding, forStateSetLeftPadding, forStateSetPadding, forStateSetRightPadding, forStateSetTopPadding, getBottomPaddingWhenHasState, getLeftPaddingWhenHasState, getRightPaddingWhenHasState, getTopPaddingWhenHasState, removeCustomBottomPaddings, removeCustomLeftPaddings, removeCustomPaddings, removeCustomRightPaddings, removeCustomTopPaddingsMethods inherited from interface IRespondingMutableElement
addedOrChangedAttributeMethods inherited from interface IShadowStyle
forStateSetCornerShadow, forStateSetCornerShadows, getCornerShadowsWhenHasState, removeCustomCornerShadowsMethods inherited from interface ISizeStyle
definesHeightForState, definesWidthForState, forStateSetHeight, forStateSetHeightInPercentOfViewArea, forStateSetWidth, forStateSetWidthInPercentOfViewAreaWidth, getHeightForState, getWidthForState, removeCustomHeights, removeCustomWidthsMethods inherited from interface Resettable
reset
-
Field Details
-
DEFAULT_CHILD_CONTROL_MARGIN
public static final int DEFAULT_CHILD_CONTROL_MARGIN- See Also:
-
DEFAULT_OPACITY
public static final double DEFAULT_OPACITY- See Also:
-
DEFAULT_FONT
-
DEFAULT_BOLD_TEXT_FLAG
public static final boolean DEFAULT_BOLD_TEXT_FLAG- See Also:
-
DEAULT_TEXT_SIZE
public static final int DEAULT_TEXT_SIZE- See Also:
-
DEFAULT_TEXT_LINE_DECORATION
-
DEFAULT_TEXT_COLOR
-
-
Constructor Details
-
AbstractLinearContainerStyle
public AbstractLinearContainerStyle()
-
-
Method Details
-
getChildControlMarginWhenHasState
- Specified by:
getChildControlMarginWhenHasStatein interfaceILinearContainerStyle<S extends ILinearContainerStyle<S> & IMultiStateConfiguration<S, ControlState>>
-
removeCustomChildControlMargins
public void removeCustomChildControlMargins()- Specified by:
removeCustomChildControlMarginsin interfaceILinearContainerStyle<S extends ILinearContainerStyle<S> & IMultiStateConfiguration<S, ControlState>>
-
setChildControlMarginForState
- Specified by:
setChildControlMarginForStatein interfaceILinearContainerStyle<S extends ILinearContainerStyle<S> & IMultiStateConfiguration<S, ControlState>>
-
addChild
- Specified by:
addChildin interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
definesTextLineDecorationForState
- Specified by:
definesTextLineDecorationForStatein interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
getBoldTextFlagWhenHasState
- Specified by:
getBoldTextFlagWhenHasStatein interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
getFontWhenHasState
- Specified by:
getFontWhenHasStatein interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
getOpacityWhenHasState
- Specified by:
getOpacityWhenHasStatein interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
getTextColorWhenHasState
- Specified by:
getTextColorWhenHasStatein interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
getTextLineDecorationWhenHasState
- Specified by:
getTextLineDecorationWhenHasStatein interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
getTextSizeWhenHasState
- Specified by:
getTextSizeWhenHasStatein interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
removeCustomBoldTextFlags
public final void removeCustomBoldTextFlags()- Specified by:
removeCustomBoldTextFlagsin interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
removeCustomFonts
public final void removeCustomFonts()- Specified by:
removeCustomFontsin interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
removeCustomOpacities
public final void removeCustomOpacities()- Specified by:
removeCustomOpacitiesin interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
removeCustomTextColors
public final void removeCustomTextColors()- Specified by:
removeCustomTextColorsin interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
removeCustomTextLineDecorations
public void removeCustomTextLineDecorations()- Specified by:
removeCustomTextLineDecorationsin interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
removeCustomTextSizes
public final void removeCustomTextSizes()- Specified by:
removeCustomTextSizesin interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
forStateSetBoldTextFlag
- Specified by:
forStateSetBoldTextFlagin interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
forStateSetFont
- Specified by:
forStateSetFontin interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
forStateSetOpacity
- Specified by:
forStateSetOpacityin interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
forStateSetTextColor
- Specified by:
forStateSetTextColorin interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
forStateSetTextLineDecoration
- Specified by:
forStateSetTextLineDecorationin interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-
forStateSetTextSize
- Specified by:
forStateSetTextSizein interfaceIControlBaseStyle<C extends IControlBaseStyle<C>>
-