Class ContextButton
- All Implemented Interfaces:
Serializable
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for ContextButton.ContextButton(Boolean enabled) Constructor for ContextButton.ContextButton(String text) Constructor for ContextButton. -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()Getter for the fieldalign.Getter for the fieldenabled.Getter for the fieldheight.Getter for the fieldsymbol.Getter for the fieldsymbolFill.Getter for the fieldsymbolSize.Getter for the fieldsymbolStroke.Getter for the fieldsymbolStrokeWidth.Getter for the fieldsymbolX.Getter for the fieldsymbolY.getText()Getter for the fieldtext.getTheme()Getter for the fieldtheme.Getter for the fieldverticalAlign.getWidth()Getter for the fieldwidth.getX()Getter for the fieldx.getY()Getter for the fieldy.voidsetAlign(HorizontalAlign align) Alignment for the buttons.voidsetEnabled(Boolean enabled) Whether to enable buttons.voidPixel height of the buttons.voidThe symbol for the button.voidsetSymbolFill(Color symbolFill) See navigation.buttonOptions => symbolFill.voidsetSymbolSize(Number symbolSize) The pixel size of the symbol on the button.voidsetSymbolStroke(Color symbolStroke) The color of the symbol's stroke or line.voidsetSymbolStrokeWidth(Number symbolStrokeWidth) The pixel stroke width of the symbol on the button.voidsetSymbolX(Number symbolX) The x position of the center of the symbol inside the button.voidsetSymbolY(Number symbolY) The y position of the center of the symbol inside the button.voidA text string to add to the individual button.voidsetTheme(ButtonTheme theme) A configuration object for the button theme.voidsetVerticalAlign(VerticalAlign verticalAlign) The vertical alignment of the buttons.voidThe pixel width of the button.voidThe horizontal position of the button relative to thealignoption.voidThe vertical offset of the button's position relative to itsverticalAlign. .
-
Constructor Details
-
Method Details
-
getAlign
Getter for the field
align.- Returns:
- a
HorizontalAlignobject. - See Also:
-
setAlign
Alignment for the buttons.Defaults to: right
- Parameters:
align- aHorizontalAlignobject.
-
getEnabled
Getter for the field
enabled.- Returns:
- a
Booleanobject. - See Also:
-
setEnabled
Whether to enable buttons.Defaults to: true
- Parameters:
enabled- aBooleanobject.
-
getHeight
Getter for the field
height.- Returns:
- a
Numberobject. - See Also:
-
setHeight
Pixel height of the buttons.Defaults to: 20
- Parameters:
height- aNumberobject.
-
getSymbol
Getter for the field
symbol.- Returns:
- a
Stringobject. - See Also:
-
setSymbol
The symbol for the button. Points to a definition function in theHighcharts.Renderer.symbolscollection. The defaultexportIconfunction is part of the exporting module.Defaults to: menu
- Parameters:
symbol- aStringobject.
-
getSymbolFill
Getter for the field
symbolFill.- Returns:
- a
Colorobject. - See Also:
-
setSymbolFill
See navigation.buttonOptions => symbolFill.Defaults to: #A8BF77
- Parameters:
symbolFill- aColorobject.
-
getSymbolSize
Getter for the field
symbolSize.- Returns:
- a
Numberobject. - See Also:
-
setSymbolSize
The pixel size of the symbol on the button.Defaults to: 14
- Parameters:
symbolSize- aNumberobject.
-
getSymbolStroke
Getter for the field
symbolStroke.- Returns:
- a
Colorobject. - See Also:
-
setSymbolStroke
The color of the symbol's stroke or line.Defaults to: #666
- Parameters:
symbolStroke- aColorobject.
-
getSymbolStrokeWidth
Getter for the field
symbolStrokeWidth.- Returns:
- a
Numberobject. - See Also:
-
setSymbolStrokeWidth
The pixel stroke width of the symbol on the button.Defaults to: 1
- Parameters:
symbolStrokeWidth- aNumberobject.
-
getSymbolX
Getter for the field
symbolX.- Returns:
- a
Numberobject. - See Also:
-
setSymbolX
The x position of the center of the symbol inside the button.Defaults to: 12.5
- Parameters:
symbolX- aNumberobject.
-
getSymbolY
Getter for the field
symbolY.- Returns:
- a
Numberobject. - See Also:
-
setSymbolY
The y position of the center of the symbol inside the button.Defaults to: 10.5
- Parameters:
symbolY- aNumberobject.
-
getText
Getter for the field
text.- Returns:
- a
Stringobject. - See Also:
-
setText
A text string to add to the individual button.Defaults to: null
- Parameters:
text- aStringobject.
-
getTheme
Getter for the field
theme.- Returns:
- a
ButtonThemeobject. - See Also:
-
setTheme
A configuration object for the button theme. The object accepts SVG properties likestroke-width,strokeandfill. Tri-state button styles are supported by thestates.hoverandstates.selectobjects.- Parameters:
theme- aButtonThemeobject.
-
getVerticalAlign
Getter for the field
verticalAlign.- Returns:
- a
VerticalAlignobject. - See Also:
-
setVerticalAlign
The vertical alignment of the buttons. Can be one of "top", "middle" or "bottom".Defaults to: top
- Parameters:
verticalAlign- aVerticalAlignobject.
-
getWidth
Getter for the field
width.- Returns:
- a
Numberobject. - See Also:
-
setWidth
The pixel width of the button.Defaults to: 24
- Parameters:
width- aNumberobject.
-
getX
Getter for the field
x.- Returns:
- a
Numberobject. - See Also:
-
setX
The horizontal position of the button relative to thealignoption.Defaults to: -10
- Parameters:
x- aNumberobject.
-
getY
Getter for the field
y.- Returns:
- a
Numberobject. - See Also:
-
setY
The vertical offset of the button's position relative to itsverticalAlign. .Defaults to: 0
- Parameters:
y- aNumberobject.
-