Revision 2035 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.dynform/org.gvsig.tools.dynform.spi/src/main/java/org/gvsig/tools/dynform/spi/dynform/AbstractJDynForm.java
AbstractJDynForm.java | ||
---|---|---|
393 | 393 |
} |
394 | 394 |
} |
395 | 395 |
|
396 |
protected List<Action> getCustomFields(DataType dataType) {
|
|
396 |
protected List<Action> getCustomActionsForDataType(DataType dataType) {
|
|
397 | 397 |
return (List<Action>) customActions.get(dataType.getName()); |
398 | 398 |
} |
399 | 399 |
|
400 | 400 |
@Override |
401 | 401 |
public void addActionToPopupMenu(DataType tipo, String name, Action action) { |
402 |
List<Action> acts = this.getCustomFields(tipo);
|
|
402 |
List<Action> acts = this.getCustomActionsForDataType(tipo);
|
|
403 | 403 |
action.putValue(Action.NAME, name); |
404 | 404 |
if (acts == null) { |
405 | 405 |
List<Action> aux = new ArrayList<>(); |
... | ... | |
412 | 412 |
|
413 | 413 |
@Override |
414 | 414 |
public void addSeparatorToPopupMenu(DataType tipo) { |
415 |
List<Action> acts = this.getCustomFields(tipo);
|
|
415 |
List<Action> acts = this.getCustomActionsForDataType(tipo);
|
|
416 | 416 |
if (acts == null) { |
417 | 417 |
List<Action> aux = new ArrayList<>(); |
418 | 418 |
aux.add(null); |
Also available in: Unified diff