svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.expressionevaluator / org.gvsig.expressionevaluator.swing / org.gvsig.expressionevaluator.swing.impl / src / main / java / org / gvsig / expressionevaluator / swing / impl / elements / DefaultFunctionElement.java @ 43989
History | View | Annotate | Download (1.04 KB)
1 |
/*
|
---|---|
2 |
* To change this license header, choose License Headers in Project Properties.
|
3 |
* To change this template file, choose Tools | Templates
|
4 |
* and open the template in the editor.
|
5 |
*/
|
6 |
package org.gvsig.expressionevaluator.swing.impl.elements; |
7 |
|
8 |
import org.gvsig.expressionevaluator.Function; |
9 |
import org.gvsig.expressionevaluator.swing.Element.FunctionElement; |
10 |
import org.gvsig.expressionevaluator.swing.spi.AbstractElement; |
11 |
|
12 |
/**
|
13 |
*
|
14 |
* @author jjdelcerro
|
15 |
*/
|
16 |
public class DefaultFunctionElement |
17 |
extends AbstractElement
|
18 |
implements FunctionElement {
|
19 |
|
20 |
private final Function function; |
21 |
|
22 |
public DefaultFunctionElement(Function function) {
|
23 |
super(
|
24 |
function.name(), |
25 |
function.description(), |
26 |
function.isSQLCompatible()? |
27 |
"expressionbuilder-element-function-sql":
|
28 |
"expressionbuilder-element-function"
|
29 |
); |
30 |
this.function = function;
|
31 |
} |
32 |
|
33 |
@Override
|
34 |
public Function getFunction() {
|
35 |
return this.function; |
36 |
} |
37 |
|
38 |
} |