Package com.im.df.api.ddl
Class DFViews
- java.lang.Object
-
- com.im.df.api.ddl.DFViews
-
public final class DFViews extends java.lang.ObjectUtilities related to IJC views.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DFViewcreate(DFDataTree dataTree, com.chemaxon.ijc.form.api.View viewModel, java.lang.String viewName)Creates a new view according to the given form model.static com.chemaxon.ijc.form.api.FormloadForm(DFView view)Load model from the given view.static com.chemaxon.ijc.form.api.GridloadGrid(DFView view)Load model from the given view.static voidupdate(DFView view, com.chemaxon.ijc.form.api.View viewModel)Updates given view with a given form model.
-
-
-
Method Detail
-
create
public static DFView create(DFDataTree dataTree, com.chemaxon.ijc.form.api.View viewModel, java.lang.String viewName) throws java.io.IOException
Creates a new view according to the given form model.- Parameters:
dataTree- data tree owner of the viewviewModel- form data model of the viewviewName- name of the view- Returns:
- the created view (since 15.2.2)
- Throws:
java.io.IOException- if something went wrong during persistence
-
loadForm
public static com.chemaxon.ijc.form.api.Form loadForm(DFView view) throws java.io.IOException
Load model from the given view.- Parameters:
view- view representing IJC form view for which model is load- Returns:
- form model representing form view content
- Throws:
java.io.IOException- when there are problem during loading
-
loadGrid
public static com.chemaxon.ijc.form.api.Grid loadGrid(DFView view) throws java.io.IOException
Load model from the given view.- Parameters:
view- view representing IJC grid view for which model is load- Returns:
- form model representing grid view content
- Throws:
java.io.IOException- when there are problem during loading
-
update
public static void update(DFView view, com.chemaxon.ijc.form.api.View viewModel) throws java.io.IOException
Updates given view with a given form model.- Parameters:
view- view to be updated/changedviewModel- form to be used for a new view content- Throws:
java.io.IOException- if persisting of a new content goes wrong
-
-