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 @ 43983
History | View | Annotate | Download (890 Bytes)
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(function.name(), function.description(), "expressionbuilder-element-function"); |
24 |
this.function = function;
|
25 |
} |
26 |
|
27 |
@Override
|
28 |
public Function getFunction() {
|
29 |
return this.function; |
30 |
} |
31 |
|
32 |
} |