Ignore:
Timestamp:
2017-06-02T23:21:03+02:00 (3 years ago)
Author:
michael2402
Message:

Javadoc for public methods / classes in gui.util and gui.widgets

Location:
trunk/src/org/openstreetmap/josm/gui/util
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java

    r12279 r12304  
    8787    }
    8888
     89    /**
     90     * Add a task to the main worker that will block the worker and run in the GUI thread.
     91     * @param task The task to run
     92     */
    8993    public static void executeByMainWorkerInEDT(final Runnable task) {
    9094        Main.worker.submit(() -> runInEDTAndWait(task));
  • trunk/src/org/openstreetmap/josm/gui/util/ModifierListener.java

    r10600 r12304  
    99@FunctionalInterface
    1010public interface ModifierListener {
     11    /**
     12     * Called when the modifiers are changed
     13     * @param modifiers The new modifiers
     14     */
    1115    void modifiersChanged(int modifiers);
    1216}
  • trunk/src/org/openstreetmap/josm/gui/util/RedirectInputMap.java

    r8378 r12304  
    2020    private final InputMap target;
    2121
     22    /**
     23     * Create a new {@link RedirectInputMap}
     24     * @param component The component the input map will be added to
     25     * @param target The target input map that should be mirrored.
     26     */
    2227    public RedirectInputMap(JComponent component, InputMap target) {
    2328        super(component);
     
    6065    }
    6166
     67    /**
     68     * Redirects the key inputs from one component to an other component
     69     * @param source The source component
     70     * @param target The target component to send the keystrokes to.
     71     */
    6272    public static void redirect(JComponent source, JComponent target) {
    6373        InputMap lastParent = source.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
Note: See TracChangeset for help on using the changeset viewer.