org.moxieapps.gwt.highcharts.client
Class RangeSelector.Button
java.lang.Object
org.moxieapps.gwt.highcharts.client.Configurable<RangeSelector.Button>
org.moxieapps.gwt.highcharts.client.RangeSelector.Button
- Enclosing class:
- RangeSelector
public static class RangeSelector.Button
- extends Configurable<RangeSelector.Button>
Manages the options for configuring the buttons to show within the RangeSelector
of
a StockChart
. For example, to create a button to display a 6 month time selection:
new RangeSelector.Button()
.setType(RangeSelector.ButtonType.MONTH)
.setCount(6)
.setText("6m");
- See Also:
RangeSelector.setButtons(RangeSelector.Button...)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RangeSelector.Button
public RangeSelector.Button()
setType
public RangeSelector.Button setType(RangeSelector.ButtonType type)
- Defines the timespan unit of the button.
- Parameters:
type
- the button type which defines the timespan unit of the button
- Returns:
- A reference to this
RangeSelector.Button
instance for convenient method chaining.
setCount
public RangeSelector.Button setCount(Number count)
- Defines how many units of the defined type to use.
- Parameters:
count
- the count of the type unit
- Returns:
- A reference to this
RangeSelector.Button
instance for convenient method chaining.
setText
public RangeSelector.Button setText(String text)
- Set the text to display on the button
- Parameters:
text
- the text to display on the button
- Returns:
- A reference to this
RangeSelector.Button
instance for convenient method chaining.
Copyright © 2015. All Rights Reserved.