Last change
on this file since 13652 was 13453, checked in by Don-vip, 6 years ago |
fix #8039, fix #10456: final fixes for the read-only/locked layers:
- rename "read-only" to "locked" (in XML and Java classes/interfaces)
- add a new download policy (true/never) to allow private layers forbidding only to download data, but allowing everything else
This leads to:
- normal layers: download allowed, modifications allowed, upload allowed
- private layers: download allowed or not (download=true/never), modifications allowed, upload allowed or not (upload=true/discouraged/never)
- locked layers: nothing allowed, the data cannot be modified in any way
|
File size:
609 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.layer;
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * Interface for layers that can download data.
|
---|
6 | * @see UploadToServer
|
---|
7 | * @since 13453
|
---|
8 | */
|
---|
9 | public interface DownloadFromServer {
|
---|
10 |
|
---|
11 | /**
|
---|
12 | * Determines if the layer is able to download data and implements the
|
---|
13 | * {@code DownloadFromServer} interface. A layer that implements the
|
---|
14 | * {@code DownloadFromServer} interface must return {@code true}.
|
---|
15 | *
|
---|
16 | * @return {@code true} if the layer is able to download data; {@code false}, otherwise
|
---|
17 | */
|
---|
18 | boolean isDownloadable();
|
---|
19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.