Class GenericRelationEditor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  GenericRelationEditor.AddAbortException
      Exception thrown when user aborts add operation.
      (package private) static class  GenericRelationEditor.LeftButtonToolbar
      The toolbar with the buttons on the left
      (package private) class  GenericRelationEditor.MemberTableDblClickAdapter  
      private class  GenericRelationEditor.RelationEditorActionAccess  
      • Nested classes/interfaces inherited from class javax.swing.JDialog

        javax.swing.JDialog.AccessibleJDialog
      • Nested classes/interfaces inherited from class java.awt.Dialog

        java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
      • Nested classes/interfaces inherited from class java.awt.Window

        java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
      • Nested classes/interfaces inherited from class java.awt.Container

        java.awt.Container.AccessibleAWTContainer
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Command addPrimitivesToRelation​(Relation orig, java.util.Collection<? extends OsmPrimitive> primitivesToAdd)
      Adds primitives to a given relation.
      protected static javax.swing.JMenuItem addToWindowMenu​(IRelationEditor re, java.lang.String layerName)
      Adds current relation editor to the windows menu (in the "volatile" group)
      void apply()
      Apply changes.
      (package private) static javax.swing.JPanel buildMemberEditorPanel​(GenericRelationEditor.LeftButtonToolbar leftButtonToolbar, IRelationEditorActionAccess editorAccess)
      builds the panel for the relation member editor
      private static IRelationEditorActionGroup buildNativeGroup​(int order, AbstractRelationEditorAction... actions)  
      protected javax.swing.JPanel buildOkCancelButtonPanel​(OKAction okAction, DeleteCurrentRelationAction deleteAction, CancelAction cancelAction)
      builds the panel with the OK and the Cancel button
      protected static AutoCompletingTextField buildRoleTextField​(IRelationEditor re)
      builds the role text field
      protected static javax.swing.JToolBar buildSelectionControlButtonToolbar​(IRelationEditorActionAccess editorAccess)
      build the toolbar with the buttons for adding or removing the current selection
      protected static javax.swing.JPanel buildSelectionTablePanel​(SelectionTable selectionTable)
      builds the panel with the table displaying the currently selected primitives
      protected static javax.swing.JSplitPane buildSplitPane​(javax.swing.JPanel top, javax.swing.JPanel bottom, IRelationEditor re)
      builds the JSplitPane which divides the editor in an upper and a lower half
      protected static javax.swing.JPanel buildTagEditorPanel​(TagEditorPanel tagEditorPanel)
      builds the panel with the tag editor
      protected static javax.swing.JToolBar buildToolBar​(AbstractRelationEditorAction... actions)
      Creates the toolbar
      void cancel()
      Cancel changes.
      protected static void cleanSelfReferences​(MemberTableModel memberTableModel, Relation relation)
      checks whether the current relation has members referring to itself.
      void commandChanged​(int queueSize, int redoSize)
      Notifies the listener about the new queue size
      static boolean confirmAddingPrimitive​(OsmPrimitive primitive)
      Asks confirmation before adding a primitive.
      void dispose()  
      protected java.awt.Dimension findMaxDialogSize()
      Tries to find a good value of how large the dialog should be
      protected static java.util.Set<java.lang.String> findSuggestedRoles​(java.util.Collection<TaggingPreset> presets, OsmPrimitive p)  
      private void populateModels​(Relation relation)  
      private void registerCopyPasteAction​(javax.swing.AbstractAction action, java.lang.Object actionName, javax.swing.KeyStroke shortcut, javax.swing.JRootPane rootPane, javax.swing.JTable... tables)  
      private void registerMain()  
      void reloadDataFromRelation()
      Reloads data from relation.
      void select()
      Select relation.
      void setVisible​(boolean visible)
      Override setVisible to be able to save the window geometry if required
      private void unregisterMain()  
      private void updateOkPanel​(javax.swing.JButton okButton, javax.swing.JButton deleteButton)
      Update the OK panel area with a temporary relation that looks if it were to be saved now.
      static void warnOfCircularReferences​(OsmPrimitive primitive)
      Warn about circular references.
      static void warnOfCircularReferences​(OsmPrimitive primitive, java.util.List<Relation> loop)
      Warn about circular references.
      • Methods inherited from class javax.swing.JDialog

        addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
      • Methods inherited from class java.awt.Dialog

        addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
      • Methods inherited from class java.awt.Window

        addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
      • Methods inherited from class java.awt.Container

        add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait