congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
FileExistsValidator
Code IndexAdd Tabnine to your IDE (free)

How to use
FileExistsValidator
in
org.geoserver.web.wicket

Best Java code snippets using org.geoserver.web.wicket.FileExistsValidator (Showing top 12 results out of 315)

origin: org.geoserver.web/gs-web-core

  protected FileParamPanel buildFileParamPanel(final IModel paramsModel) {
    FileParamPanel file =
        new FileParamPanel(
            "url",
            new MapModel(paramsModel, URLP.key),
            new ParamResourceModel("shapefile", this),
            true);
    file.setFileFilter(new Model(new ExtensionFileFilter(".shp")));
    file.getFormComponent().add(new FileExistsValidator());
    return file;
  }
}
origin: org.geoserver.web/web-core

      is = connection.getInputStream();
    } catch(Exception e) {
      error(validatable, "FileExistsValidator.unreachable", 
          Collections.singletonMap("file", uriSpec));
    } finally {
error(validatable, "FileExistsValidator.fileNotFoundError", 
    Collections.singletonMap("file", uriSpec));
origin: org.geoserver.web/web-core

protected FileParamPanel buildFileParamPanel(final IModel paramsModel) {
  FileParamPanel file = new FileParamPanel("url", new MapModel(paramsModel, URLP.key),
      new ParamResourceModel("shapefile", this), true);
  file.setFileFilter(new Model(new ExtensionFileFilter(".shp")));
  file.getFormComponent().add(new FileExistsValidator());
  return file;
}
origin: org.geoserver.web/web-core

public DefaultCoverageStoreEditPanel(final String componentId, final Form storeEditForm) {
  super(componentId, storeEditForm);
  final IModel formModel = storeEditForm.getModel();
  // url
  TextParamPanel url = new TextParamPanel("urlPanel", new PropertyModel(formModel, "URL"),
      new ResourceModel("url", "URL"), true);
  url.getFormComponent().add(new FileExistsValidator());
  add(url);
}
origin: org.geoserver.web/gs-web-core

  public DefaultCoverageStoreEditPanel(final String componentId, final Form storeEditForm) {
    super(componentId, storeEditForm);

    final IModel formModel = storeEditForm.getModel();
    // url
    TextParamPanel url =
        new TextParamPanel(
            "urlPanel",
            new PropertyModel(formModel, "URL"),
            new ResourceModel("url", "URL"),
            true);
    url.getFormComponent().add(new FileExistsValidator());
    add(url);
  }
}
origin: org.geoserver.web/web-core

fc.add(new FileExistsValidator());
origin: org.geoserver.web/web-core

public AbstractRasterFileEditPanel(final String componentId, final Form storeEditForm,
    boolean useDirectoryChooser, String... fileExtensions) {
  super(componentId, storeEditForm);
  final IModel model = storeEditForm.getModel();
  setDefaultModel(model);
  final IModel paramsModel = new PropertyModel(model, "connectionParameters");
  FileParamPanel file;
  if (useDirectoryChooser) {
    file = new DirectoryParamPanel("url", new PropertyModel(model, "URL"), 
        new ResourceModel("url", "URL"), true);
  } else {
    file = new FileParamPanel("url", new PropertyModel(model, "URL"), 
        new ResourceModel("url", "URL"), true);
  }
  
  file.getFormComponent().add(new FileExistsValidator());
  if (fileExtensions != null && fileExtensions.length > 0) {
    file.setFileFilter(new Model(new ExtensionFileFilter(fileExtensions)));
  }
  add(file);
}
origin: org.geoserver.web/gs-web-core

fc.add(new FileExistsValidator());
origin: org.geoserver.web/gs-web-core

file.getFormComponent().add(new FileExistsValidator());
if (fileExtensions != null && fileExtensions.length > 0) {
  file.setFileFilter(new Model(new ExtensionFileFilter(fileExtensions)));
origin: org.geoserver.community/gs-pgraster

        true);
final FormComponent urlFormComponent = url.getFormComponent();
urlFormComponent.add(new FileExistsValidator());
add(url);
origin: org.geoserver.web/gs-web-wms

        "watermark.uRL",
        new FileModel(new PropertyModel<String>(form.getModel(), "watermark.URL")));
watermarkUrlField.add(new FileExistsValidator(true));
watermarkUrlField.setOutputMarkupId(true);
form.add(watermarkUrlField);
origin: org.geoserver.web/web-wms

form.add(new TextField("watermark.uRL").add(new FileExistsValidator(true)));
TextField<Integer> transparency = new TextField<Integer>("watermark.transparency");
transparency.add(new RangeValidator<Integer>(0,100));
org.geoserver.web.wicketFileExistsValidator

Javadoc

Checks the specified file exists on the file system, including checks in the data directory

Most used methods

  • <init>
    If allowRemoveUrl is true this validator allows the file to be either local (no URI scheme, or file
  • error

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Join (org.hibernate.mapping)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now