/** * Update the process description based on the selected process * * @param selection title of selected process * @param name */ private void updateProcessDesc(ProcessFactory factory, Name name) { if (name == null || factory == null) { return; } InternationalString title = factory.getTitle(name); InternationalString description = factory.getDescription(name); descLabel.setText(defaultDesc); selectedFactory = factory; updateNavButtons(); descLabel.setText("<html><b>" + title + "</b>" + description); updateNavButtons(); }
page.add(title); JLabel description = new JLabel(factory.getDescription(name).toString()); page.add(description); for (Entry<String, Parameter<?>> entry : factory.getParameterInfo(name).entrySet()) {
@Override public InternationalString perform( ProcessFactory f, Name oldName, Name newName, Object... args) { return f.getDescription(newName); } });
public InternationalString getDescription(Name name) { return delegate.getDescription(name); }
public InternationalString getDescription(Name name) { if (selector.allowProcess(name)) { return delegate.getDescription(name); } else { return null; } }
public InternationalString getDescription(Name name) { if (selector.allowProcess(name)) { return delegate.getDescription(name); } else { return null; } }
/** * Update the process description based on the selected process * @param selection title of selected process */ private void updateProcessDesc(Object selection) { if ( selection == null || (selectedFactory = findProcessFactoryByTitle(selection.toString())) == null ) { descLabel.setText(defaultDesc); selectedFactory = null; updateNavButtons(); return; } descLabel.setText(selectedFactory.getDescription().toString()); updateNavButtons(); }
public void aboutToDisplayPanel() { page.removeAll(); page.setLayout(new GridLayout(0, 2)); JLabel title = new JLabel(factory.getTitle().toString()); page.add(title); JLabel description = new JLabel(factory.getDescription().toString()); page.add(description); for( Entry<String, Parameter< ? >> entry : factory.getParameterInfo().entrySet() ) { Parameter< ? > parameter = entry.getValue(); JLabel label = new JLabel(parameter.key); page.add(label); ParamWidget widget; if (Double.class.isAssignableFrom( parameter.type )) { widget = new JDoubleField(parameter); } else if (Geometry.class.isAssignableFrom( parameter.type)){ widget = new JGeometryField(parameter); } else { // We got nothing special hope the converter api can deal widget = new JField( parameter ); } JComponent field = widget.doLayout(); page.add(field); fields.put( parameter.key, widget ); } } }
JLabel description = new JLabel(factory.getDescription().toString()); page.add(description); for( Entry<String, Parameter< ? >> entry : factory.getParameterInfo().entrySet() ) {
/** * Update the process description based on the selected process * * @param selection title of selected process * @param name */ private void updateProcessDesc(ProcessFactory factory, Name name) { if (name == null || factory == null) { return; } InternationalString title = factory.getTitle(name); InternationalString description = factory.getDescription(name); descLabel.setText(defaultDesc); selectedFactory = factory; selectedName = name; updateNavButtons(); descLabel.setText("<html><b>"+title+"</b>"+description); updateNavButtons(); }
page.add(title); JLabel description = new JLabel(factory.getDescription(name).toString()); page.add(description); for (Entry<String, Parameter<?>> entry : factory.getParameterInfo(name).entrySet()) {
private void processDescription(ProcessFactory pf, Name identifier) { AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute("", "wps:processVersion", "wps:processVersion", "", pf.getVersion(identifier)); attributes.addAttribute("", "statusSupported", "statusSupported", "", Boolean.toString(pf.supportsProgress(identifier))); start("ProcessDescription", attributes); element("ows:Identifier", identifier.getURI()); element("ows:Title", pf.getTitle(identifier).toString(this.locale)); element("ows:Abstract", pf.getDescription(identifier).toString(this.locale)); this.dataInputs(pf, identifier); this.processOutputs(pf, identifier); end("ProcessDescription"); }
private void processDescription(ProcessFactory pf, Name identifier) { AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute( "", "wps:processVersion", "wps:processVersion", "", pf.getVersion(identifier)); attributes.addAttribute( "", "statusSupported", "statusSupported", "", Boolean.toString(pf.supportsProgress(identifier))); start("ProcessDescription", attributes); element("ows:Identifier", identifier.getURI()); element("ows:Title", pf.getTitle(identifier).toString(this.locale)); element("ows:Abstract", pf.getDescription(identifier).toString(this.locale)); this.dataInputs(pf, identifier); this.processOutputs(pf, identifier); end("ProcessDescription"); }
process.setProcessVersion(pf.getVersion(processName)); process.setTitle(Ows11Util.languageString(pf.getTitle(processName))); process.setAbstract(Ows11Util.languageString(pf.getDescription(processName)));
void processDescription( CodeType id, ProcessDescriptionsType pds ) { Name name = Ows11Util.name(id); ProcessFactory pf = Processors.createProcessFactory(name); if ( pf == null ) { throw new WPSException( "No such process: " + id.getValue() ); } ProcessDescriptionType pd = wpsf.createProcessDescriptionType(); pds.getProcessDescription().add( pd ); pd.setProcessVersion( "1.0.0" ); pd.setIdentifier( Ows11Util.code( id.getValue() ) ); pd.setTitle( Ows11Util.languageString(pf.getTitle(name)) ); pd.setAbstract( Ows11Util.languageString(pf.getDescription(name)) ); pd.setStatusSupported(true); pd.setStoreSupported(true); //data inputs DataInputsType inputs = wpsf.createDataInputsType(); pd.setDataInputs(inputs); dataInputs( inputs, pf, name ); //process outputs ProcessOutputsType outputs = wpsf.createProcessOutputsType(); pd.setProcessOutputs( outputs ); processOutputs( outputs, pf, name ); }
p.setAbstract(Ows11Util.languageString(pf.getDescription(name)));
process.setProcessVersion(pf.getVersion(processName)); process.setTitle(Ows11Util.languageString(pf.getTitle(processName))); process.setAbstract(Ows11Util.languageString(pf.getDescription(processName)));
void processDescription(CodeType id, ProcessDescriptionsType pds) { Name name = Ows11Util.name(id); ProcessFactory pf = GeoServerProcessors.createProcessFactory(name, true); if (pf == null || pf.create(name) == null) { throw new WPSException("No such process: " + id.getValue()); } ProcessDescriptionType pd = wpsf.createProcessDescriptionType(); pds.getProcessDescription().add(pd); pd.setProcessVersion("1.0.0"); pd.setIdentifier(Ows11Util.code(id.getValue())); pd.setTitle(Ows11Util.languageString(pf.getTitle(name))); pd.setAbstract(Ows11Util.languageString(pf.getDescription(name))); pd.setStatusSupported(true); pd.setStoreSupported(true); // data inputs DataInputsType inputs = wpsf.createDataInputsType(); pd.setDataInputs(inputs); dataInputs(inputs, pf, name); // process outputs ProcessOutputsType outputs = wpsf.createProcessOutputsType(); pd.setProcessOutputs(outputs); processOutputs(outputs, pf, name); }
p.setAbstract(Ows11Util.languageString(pf.getDescription(name)));