|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
info.bioinfweb.treegraph.gui.dialogs.elementformats.DecimalFormatPanel
public class DecimalFormatPanel
Panel of the ElementFormatsDialog used to edit the decimal formats of text elements.
ElementFormatsDialog,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private info.webinsel.util.swing.SwingChangeMonitor |
changeMonitor
|
private JPanel |
examplePanel
|
static double |
FORMAT_EXAMPLE
|
private JLabel |
formatLabel
|
private JPanel |
formatPanel
|
private JTextField |
formatTextField
|
private JLabel |
hintLabel
|
private JComboBox |
localeComboBox
|
private JLabel |
localeLabel
|
private JLabel |
negativeExampleLabel
|
private JLabel |
positiveExampleLabel
|
private JTable |
predifinedTable
|
private static long |
serialVersionUID
|
private JScrollPane |
tableScrollPane
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DecimalFormatPanel()
This is the default constructor |
|
| Method Summary | |
|---|---|
void |
addError(List<String> list)
Adds error messages to the given list, if this tab contains any invalid user inputs. |
void |
addOperators(List<FormatOperator> operators)
|
private DecimalFormat |
getDecimalFormat()
|
private JPanel |
getExamplePanel()
This method initializes examplePanel |
private JPanel |
getFormatPanel()
This method initializes formatPanel |
private JTextField |
getFormatTextField()
This method initializes formatTextField |
private JComboBox |
getLocaleComboBox()
This method initializes localeComboBox |
private Locale |
getLocaleValue()
|
private JLabel |
getNegativeExampleLabel()
|
private JLabel |
getPositiveExampleLabel()
|
private JTable |
getPredifinedTable()
This method initializes predifinedTable |
private JScrollPane |
getTableScrollPane()
This method initializes tableScrollPane |
private void |
initialize()
This method initializes this |
void |
resetChangeMonitors()
|
boolean |
setValues(TreeSelection selection)
The values of the first compatible element in the selection should be set to the input components of this tab. |
String |
title()
|
private void |
updateExample()
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
public static final double FORMAT_EXAMPLE
private JPanel formatPanel
private JPanel examplePanel
private JLabel formatLabel
private JTextField formatTextField
private JTable predifinedTable
private JComboBox localeComboBox
private JLabel localeLabel
private info.webinsel.util.swing.SwingChangeMonitor changeMonitor
private JScrollPane tableScrollPane
private JLabel positiveExampleLabel
private JLabel negativeExampleLabel
private JLabel hintLabel
| Constructor Detail |
|---|
public DecimalFormatPanel()
| Method Detail |
|---|
private Locale getLocaleValue()
private DecimalFormat getDecimalFormat()
public void addOperators(List<FormatOperator> operators)
addOperators in interface ElementFormatTabpublic void addError(List<String> list)
ElementFormatTab
addError in interface ElementFormatTablist - the list to add the messaged topublic void resetChangeMonitors()
resetChangeMonitors in interface ElementFormatTabpublic boolean setValues(TreeSelection selection)
ElementFormatTab
setValues in interface ElementFormatTabselection - the currently selected tree elements
false if no compatible element was selectedpublic String title()
title in interface ElementFormatTabprivate void updateExample()
private void initialize()
private JPanel getFormatPanel()
private JPanel getExamplePanel()
private JLabel getPositiveExampleLabel()
private JLabel getNegativeExampleLabel()
private JTextField getFormatTextField()
private JTable getPredifinedTable()
private JComboBox getLocaleComboBox()
private JScrollPane getTableScrollPane()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||