@Override public void detachModels() { super.detachModels(); if(classModel!=null) classModel.detach(); }
@Override protected void onConfigure() { super.onConfigure(); if(classModel!=null) { OClass oClass = classModel.getObject(); setVisible(oClass!=null && oClass.hasSuperClasses()); } }
public TriggerCommand(String resourceKey, OrienteerDataTable<T, ?> table, IModel<Boolean> triggerModel) { super(new StringResourceModel( resourceKey!=null ? resourceKey.endsWith(".${}")?resourceKey:resourceKey+".${}" : "command.showhide.${}", triggerModel), table); this.triggerModel = triggerModel!=null?triggerModel:Model.of(true); setIcon(FAIconType.reorder); setBootstrapType(BootstrapType.INFO); }
@Override protected void addTableCommands(OrienteerDataTable<OClass, String> table, IModel<DisplayMode> modeModel) { table.addCommand(new CreateOClassCommand(table)); table.addCommand(new EditSchemaCommand<>(table, modeModel)); table.addCommand(new SaveSchemaCommand<>(table, modeModel)); table.addCommand(new DeleteOClassCommand(table)); table.addCommand(new ReloadOMetadataCommand(table)); table.addCommand(new TriggerCommand<>("command.showhide.allclasses", table, showAllClassesModel)); table.addCommand(new ExportOSchemaCommand(table)); table.addCommand(new ImportOSchemaCommand(table)); table.addCommand(new ViewUMLCommand(table)); }