Class MapPaintDialog.InfoAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.dialogs.MapPaintDialog.InfoAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- Enclosing class:
- MapPaintDialog
protected class MapPaintDialog.InfoAction extends AbstractAction
Displays information about selected paint style in a new dialog.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
errorsTabLoaded
private boolean
sourceTabLoaded
private boolean
warningsTabLoaded
-
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
-
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
-
Constructor Summary
Constructors Constructor Description InfoAction()
Constructs a newInfoAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
private JPanel
addErrorOrWarningTab(JTabbedPane tabs, JLabel lblInfo, Collection<?> items, String title, int pos, ImageIcon icon)
private <T> void
buildErrorsOrWarningPanel(Collection<T> items, JPanel p)
private JPanel
buildInfoPanel(StyleSource s)
private void
buildSourcePanel(StyleSource s, JPanel p)
private String
tableRow(String firstColumn, String secondColumn)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
errorsTabLoaded
private boolean errorsTabLoaded
-
warningsTabLoaded
private boolean warningsTabLoaded
-
sourceTabLoaded
private boolean sourceTabLoaded
-
-
Constructor Detail
-
InfoAction
public InfoAction()
Constructs a newInfoAction
.
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent e)
-
addErrorOrWarningTab
private JPanel addErrorOrWarningTab(JTabbedPane tabs, JLabel lblInfo, Collection<?> items, String title, int pos, ImageIcon icon)
-
buildInfoPanel
private JPanel buildInfoPanel(StyleSource s)
-
buildSourcePanel
private void buildSourcePanel(StyleSource s, JPanel p)
-
buildErrorsOrWarningPanel
private <T> void buildErrorsOrWarningPanel(Collection<T> items, JPanel p)
-
-