use of model.Folder in project uPMT by coco35700.
the class Main method createBasicSchema.
/**
* Creates a basic scheme as a default
* should be improved if desired
*/
private void createBasicSchema() {
Type s = new Schema((_langBundle.getString("default_scheme")));
Type general = new Folder(_langBundle.getString("general"));
Type autre = new Folder(_langBundle.getString("other"));
Type visuel = new Category(_langBundle.getString("visual"));
Type image = new Property(_langBundle.getString("picture"));
Type sensoriel = new Category(_langBundle.getString("sensory"));
Type emotionnel = new Category(_langBundle.getString("emotional"));
Type sonore = new Category(_langBundle.getString("acoustic"));
visuel.addType(image);
general.addType(visuel);
general.addType(sensoriel);
general.addType(emotionnel);
general.addType(sonore);
s.addType(general);
s.addType(autre);
this.BasicSchema = (Schema) s;
}
use of model.Folder in project uPMT by coco35700.
the class TypeTreeView method addFolder.
// method used to add a folder to the current cell
public void addFolder(int folderNumber) {
TreeItem<TypeController> newTypeController = new TreeItem<TypeController>();
Type nt = new Folder("Dossier " + folderNumber);
TypeController tc;
if (getItem().getType().getClass().equals(Schema.class)) {
tc = new TypeController(nt, getTreeItem().getValue().getType());
} else {
tc = new TypeController(nt, getTreeItem().getParent().getValue().getType());
}
tc = new TypeController(nt, getTreeItem().getValue().getType());
newTypeController.setValue(tc);
getTreeItem().getChildren().add(newTypeController);
getItem().getType().getTypes().add(nt);
this.getTreeItem().setExpanded(true);
}
Aggregations