public interface UIFactory
Modifier and Type | Method and Description |
---|---|
JFButton |
createButton(java.lang.String text)
Creates custom JButton component with specified text.
|
JFButton |
createButton(java.lang.String text,
JFButton.ButtonType type)
Creates custom JButton component with specified text and type.
|
JFCheckBox |
createCheckBox(java.lang.String text)
Creates custom JCheckBox component with specified text.
|
<T> JFComboBox<T> |
createComboBox(java.lang.Class<T> clazz)
Creates custom JComboBox component.
|
JFInstrumentComboBox |
createInstrumentComboBox()
Creates custom component for Instrument selection.
|
JFInstrumentComboBox |
createInstrumentComboBoxSmall()
Creates custom component for Instrument selection.
|
JFLabel |
createLabel(java.lang.String text)
Creates custom JLabel component with specified text.
|
JFMenuItem |
createMenuItem(java.lang.String text)
Creates custom JMenuItem component with specified text.
|
JFMenuItem |
createMenuItem(java.lang.String text,
javax.swing.Icon icon)
Creates custom JMenuItem component with specified text and icon.
|
JFMenuItem |
createMenuItem(java.lang.String text,
java.net.URL iconURL)
Creates custom JMenuItem component with specified text and icon URL.
|
JFNumberSpinner |
createNumberSpinner(java.math.BigDecimal value,
java.math.BigDecimal minimum,
java.math.BigDecimal maximum,
java.math.BigDecimal stepSize)
Creates custom JSpinner component with number data model.
|
JFNumberSpinner |
createNumberSpinner(double value,
double minimum,
double maximum,
double stepSize)
Creates custom JSpinner component with number data model.
|
JFNumberSpinner |
createNumberSpinner(double value,
double minimum,
double maximum,
double stepSize,
int maximumFractionDigits)
Creates custom JSpinner component with number data model.
|
JFNumberSpinner |
createNumberSpinner(int value,
int minimum,
int maximum,
int stepSize)
Creates custom JSpinner component with number data model.
|
JFNumberSpinner |
createNumberSpinner(long value,
long minimum,
long maximum,
long stepSize)
Creates custom JSpinner component with number data model.
|
JFOrderAmountPanel |
createOrderAmountPanel()
Creates custom component (with instrument type specific label) for editing order amount.
|
JFOrderTimeLimitationPanel |
createOrderTimeLimitationPanel()
Creates custom JPanel component with fields for editing order time to live value.
|
JFPanel |
createPanel()
Creates custom JPanel component.
|
JFPanel |
createPanel(java.lang.String title)
Creates custom JPanel component with labeled border.
|
JFPopupMenu |
createPopupMenu()
Creates custom JPopupMenu component.
|
JFPresetsPanel |
createPresetsPanel(IPluginContext context,
IPluginWidget widget,
JFPresetsPanel.IParametersEditor parametersEditor)
Creates custom component for managing plugin presets.
|
JFPriceSpinner |
createPriceSpinner()
Creates custom JSpinner component for editing price value.
|
JFRadioButton |
createRadioButton(java.lang.String text)
Creates custom JRadioButton component with specified text.
|
JFScrollPane |
createScrollPane(java.awt.Component component)
Creates custom JScrollPane component.
|
JFScrollPane |
createScrollPane(java.awt.Component component,
int vsbPolicy,
int hsbPolicy)
Creates custom JScrollPane component with specified vertical/horizontal scrollbar policy.
|
JFScrollPane |
createScrollPanel(java.awt.Component component)
Deprecated.
use
createScrollPane(java.awt.Component) instead |
JFSlippagePanel |
createSlippagePanel(java.lang.String text)
Creates custom component (enabled by check box) for editing slippage value.
|
JFTable |
createTable()
Creates custom JTable component.
|
JFTable |
createTable(javax.swing.table.TableModel tableModel)
Creates custom JTable component with specified data model.
|
JFTextField |
createTextField()
Creates custom JTextField component.
|
JFToggleButton |
createToggleButton(javax.swing.Icon icon)
Creates custom JToggleButton component with specified icon.
|
JFToggleButton |
createToggleButton(javax.swing.Icon icon,
java.lang.String tooltipText)
Creates custom JToggleButton component with specified icon and tool tip text.
|
JFToggleButton |
createToggleButton(java.net.URL iconURL)
Creates custom JToggleButton component with specified icon URL.
|
JFToggleButton |
createToggleButton(java.net.URL iconURL,
java.lang.String tooltipText)
Creates custom JToggleButton component with specified icon URL and tool tip text.
|
JFPanel createPanel()
JFPanel createPanel(java.lang.String title)
title
- label for panel border@Deprecated JFScrollPane createScrollPanel(java.awt.Component component)
createScrollPane(java.awt.Component)
insteadcomponent
- the component to display in the scrollpane's viewportJFScrollPane createScrollPane(java.awt.Component component)
component
- the component to display in the scrollpane's viewportJFScrollPane createScrollPane(java.awt.Component component, int vsbPolicy, int hsbPolicy)
component
- the component to display in the scrollpane's viewportvsbPolicy
- an integer that specifies the vertical scrollbar policyhsbPolicy
- an integer that specifies the horizontal scrollbar policyJFTable createTable()
JFTable createTable(javax.swing.table.TableModel tableModel)
tableModel
- the data model for the tableJFPopupMenu createPopupMenu()
JFMenuItem createMenuItem(java.lang.String text)
text
- the string used to set the textJFMenuItem createMenuItem(java.lang.String text, javax.swing.Icon icon)
text
- the string used to set the texticon
- the icon used as the default imageJFMenuItem createMenuItem(java.lang.String text, java.net.URL iconURL)
text
- the string used to set the texticonURL
- URL of the icon used as the default imageJFLabel createLabel(java.lang.String text)
text
- the text to be displayed by the labelJFButton createButton(java.lang.String text)
text
- the string used to set the textJFButton createButton(java.lang.String text, JFButton.ButtonType type)
text
- the string used to set the texttype
- type of button used to set its appropriate lookJFTextField createTextField()
<T> JFComboBox<T> createComboBox(java.lang.Class<T> clazz)
T
- the type of the elements of this combo boxclazz
- class of the type TJFCheckBox createCheckBox(java.lang.String text)
text
- the text of the check boxJFRadioButton createRadioButton(java.lang.String text)
text
- the string used to set the textJFToggleButton createToggleButton(javax.swing.Icon icon)
icon
- the icon used as the default imageJFToggleButton createToggleButton(java.net.URL iconURL)
iconURL
- URL of the icon used as the default imageJFToggleButton createToggleButton(javax.swing.Icon icon, java.lang.String tooltipText)
icon
- the icon used as the default imagetooltipText
- the string to display tool tipJFToggleButton createToggleButton(java.net.URL iconURL, java.lang.String tooltipText)
iconURL
- URL of the icon used as the default imagetooltipText
- the string to display tool tipJFNumberSpinner createNumberSpinner(double value, double minimum, double maximum, double stepSize)
value
- the current value of the modelminimum
- the first number in the sequencemaximum
- the last number in the sequencestepSize
- the difference between elements of the sequenceJFNumberSpinner createNumberSpinner(double value, double minimum, double maximum, double stepSize, int maximumFractionDigits)
value
- the current value of the modelminimum
- the first number in the sequencemaximum
- the last number in the sequencestepSize
- the difference between elements of the sequencemaximumFractionDigits
- number of displayed fraction digitsJFNumberSpinner createNumberSpinner(long value, long minimum, long maximum, long stepSize)
value
- the current value of the modelminimum
- the first number in the sequencemaximum
- the last number in the sequencestepSize
- the difference between elements of the sequenceJFNumberSpinner createNumberSpinner(int value, int minimum, int maximum, int stepSize)
value
- the current value of the modelminimum
- the first number in the sequencemaximum
- the last number in the sequencestepSize
- the difference between elements of the sequenceJFNumberSpinner createNumberSpinner(java.math.BigDecimal value, java.math.BigDecimal minimum, java.math.BigDecimal maximum, java.math.BigDecimal stepSize)
value
- the current value of the modelminimum
- the first number in the sequencemaximum
- the last number in the sequencestepSize
- the difference between elements of the sequenceJFInstrumentComboBox createInstrumentComboBox()
JFInstrumentComboBox createInstrumentComboBoxSmall()
JFOrderAmountPanel createOrderAmountPanel()
JFPriceSpinner createPriceSpinner()
JFSlippagePanel createSlippagePanel(java.lang.String text)
text
- the text of the check boxJFOrderTimeLimitationPanel createOrderTimeLimitationPanel()
JFPresetsPanel createPresetsPanel(IPluginContext context, IPluginWidget widget, JFPresetsPanel.IParametersEditor parametersEditor)
context
- plugin contextwidget
- plugin widgetparametersEditor
- object implementing JFPresetsPanel.IParametersEditor
interfaceCopyright © 2024. All rights reserved.