Class ChangesetDetailPanel
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- org.openstreetmap.josm.gui.dialogs.changeset.ChangesetDetailPanel
-
- All Implemented Interfaces:
java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.accessibility.Accessible
,ChangesetAware
,Destroyable
public class ChangesetDetailPanel extends javax.swing.JPanel implements java.beans.PropertyChangeListener, ChangesetAware, Destroyable
This panel displays the properties of the currently selected changeset in theChangesetCacheManager
.- Since:
- 2689
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
ChangesetDetailPanel.OpenChangesetPopupMenuAction
The action for openingOpenChangesetPopupMenu
(package private) class
ChangesetDetailPanel.RemoveFromCacheAction
The action for removing the currently selected changeset from the changeset cache(package private) class
ChangesetDetailPanel.SelectInCurrentLayerAction
Selects the primitives in the content of this changeset in the current data layer.(package private) class
ChangesetDetailPanel.UpdateChangesetAction
Updates the current changeset from the OSM server(package private) class
ChangesetDetailPanel.ZoomInCurrentLayerAction
Zooms to the primitives in the content of this changeset in the current data layer.-
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
-
-
Field Summary
Fields Modifier and Type Field Description private DownloadChangesetContentAction
actDownloadChangesetContent
private ChangesetDetailPanel.OpenChangesetPopupMenuAction
actOpenChangesetPopupMenu
private ChangesetDetailPanel.RemoveFromCacheAction
actRemoveFromCache
private ChangesetDetailPanel.SelectInCurrentLayerAction
actSelectInCurrentLayer
private ChangesetDetailPanel.UpdateChangesetAction
actUpdateChangesets
private ChangesetDetailPanel.ZoomInCurrentLayerAction
actZoomInCurrentLayerAction
private javax.swing.JButton
btnOpenChangesetPopupMenu
private Changeset
currentChangeset
private JosmTextArea
taComment
private JosmTextField
tfClosedOn
private JosmTextField
tfCreatedOn
private JosmTextField
tfID
private JosmTextField
tfOpen
private JosmTextField
tfUser
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor Description ChangesetDetailPanel()
Constructs a newChangesetDetailPanel
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
build()
protected javax.swing.JPanel
buildActionButtonPanel()
protected javax.swing.JPanel
buildDetailViewPanel()
protected void
clearView()
void
destroy()
Called when the object has been destroyed.Changeset
getCurrentChangeset()
Returns the current changeset.void
propertyChange(java.beans.PropertyChangeEvent evt)
protected void
setCurrentChangeset(Changeset cs)
protected void
updateView(Changeset cs)
-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
tfID
private final JosmTextField tfID
-
taComment
private final JosmTextArea taComment
-
tfOpen
private final JosmTextField tfOpen
-
tfUser
private final JosmTextField tfUser
-
tfCreatedOn
private final JosmTextField tfCreatedOn
-
tfClosedOn
private final JosmTextField tfClosedOn
-
actOpenChangesetPopupMenu
private final ChangesetDetailPanel.OpenChangesetPopupMenuAction actOpenChangesetPopupMenu
-
actDownloadChangesetContent
private final DownloadChangesetContentAction actDownloadChangesetContent
-
actUpdateChangesets
private final ChangesetDetailPanel.UpdateChangesetAction actUpdateChangesets
-
actRemoveFromCache
private final ChangesetDetailPanel.RemoveFromCacheAction actRemoveFromCache
-
actSelectInCurrentLayer
private final ChangesetDetailPanel.SelectInCurrentLayerAction actSelectInCurrentLayer
-
actZoomInCurrentLayerAction
private final ChangesetDetailPanel.ZoomInCurrentLayerAction actZoomInCurrentLayerAction
-
btnOpenChangesetPopupMenu
private javax.swing.JButton btnOpenChangesetPopupMenu
-
currentChangeset
private transient Changeset currentChangeset
-
-
Constructor Detail
-
ChangesetDetailPanel
public ChangesetDetailPanel()
Constructs a newChangesetDetailPanel
.
-
-
Method Detail
-
buildActionButtonPanel
protected javax.swing.JPanel buildActionButtonPanel()
-
buildDetailViewPanel
protected javax.swing.JPanel buildDetailViewPanel()
-
build
protected final void build()
-
clearView
protected void clearView()
-
updateView
protected void updateView(Changeset cs)
-
setCurrentChangeset
protected void setCurrentChangeset(Changeset cs)
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
getCurrentChangeset
public Changeset getCurrentChangeset()
Description copied from interface:ChangesetAware
Returns the current changeset.- Specified by:
getCurrentChangeset
in interfaceChangesetAware
- Returns:
- the current changeset
-
destroy
public void destroy()
Description copied from interface:Destroyable
Called when the object has been destroyed.- Specified by:
destroy
in interfaceDestroyable
-
-