public abstract class CodeGeneratorControllerBase extends CayenneController
| Modifier and Type | Field and Description |
|---|---|
protected List<Object> |
classes |
protected Object |
currentClass |
protected Collection<DataMap> |
dataMaps |
static String |
SELECTED_PROPERTY |
protected Set |
selectedEmbeddables |
protected Set |
selectedEntities |
protected ValidationResult |
validation |
application, parent, propertyChangeSupport| Constructor and Description |
|---|
CodeGeneratorControllerBase(CayenneController parent,
Collection<DataMap> dataMaps) |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
getClasses() |
Object |
getCurrentClass() |
Collection<DataMap> |
getDataMaps() |
JLabel |
getItemName(Object obj) |
String |
getProblem(Object obj)
Returns the first encountered validation problem for an antity matching the name or
null if the entity is valid or the entity is not present.
|
List<Embeddable> |
getSelectedEmbeddables() |
int |
getSelectedEmbeddablesSize() |
List<ObjEntity> |
getSelectedEntities() |
int |
getSelectedEntitiesSize() |
abstract Component |
getView()
Returns the vie wassociated with this Controller.
|
boolean |
isSelected() |
void |
setCurrentClass(Object currentClass) |
void |
setSelected(boolean selectedFlag) |
boolean |
updateSelection(org.apache.commons.collections.Predicate predicate) |
void |
validate(GeneratorController validator) |
addPropertyChangeListener, bindingUpdated, centerView, firePropertyChange, getApplication, getFrame, getLastDirectory, getParent, getViewPreferences, getWindow, makeCloseableOnEscape, reportErrorpublic static final String SELECTED_PROPERTY
protected Collection<DataMap> dataMaps
protected ValidationResult validation
protected Set selectedEntities
protected Set selectedEmbeddables
protected transient Object currentClass
public CodeGeneratorControllerBase(CayenneController parent, Collection<DataMap> dataMaps)
public abstract Component getView()
CayenneControllergetView in interface BoundComponentgetView in class CayenneControllerpublic void validate(GeneratorController validator)
public boolean updateSelection(org.apache.commons.collections.Predicate predicate)
public List<Embeddable> getSelectedEmbeddables()
public int getSelectedEntitiesSize()
public int getSelectedEmbeddablesSize()
public String getProblem(Object obj)
public boolean isSelected()
public void setSelected(boolean selectedFlag)
public Object getCurrentClass()
public void setCurrentClass(Object currentClass)
public Collection<DataMap> getDataMaps()
Copyright © 2001–2015 Apache Cayenne. All rights reserved.