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 | 43939 | jjdelcerro | /*
|
---|---|---|---|
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 | 43983 | jjdelcerro | package org.gvsig.expressionevaluator.swing.impl.elements; |
7 | 43939 | jjdelcerro | |
8 | import org.gvsig.expressionevaluator.Function; |
||
9 | 43983 | jjdelcerro | import org.gvsig.expressionevaluator.swing.Element.FunctionElement; |
10 | import org.gvsig.expressionevaluator.swing.spi.AbstractElement; |
||
11 | 43939 | jjdelcerro | |
12 | /**
|
||
13 | *
|
||
14 | * @author jjdelcerro
|
||
15 | */
|
||
16 | 43983 | jjdelcerro | public class DefaultFunctionElement |
17 | extends AbstractElement
|
||
18 | implements FunctionElement {
|
||
19 | 43939 | jjdelcerro | |
20 | private final Function function; |
||
21 | |||
22 | public DefaultFunctionElement(Function function) {
|
||
23 | 43983 | jjdelcerro | super(function.name(), function.description(), "expressionbuilder-element-function"); |
24 | 43939 | jjdelcerro | this.function = function;
|
25 | } |
||
26 | |||
27 | 43983 | jjdelcerro | @Override
|
28 | 43939 | jjdelcerro | public Function getFunction() {
|
29 | return this.function; |
||
30 | } |
||
31 | |||
32 | } |