Difference between revisions of "Csharp forms dll"
From OpenKM Documentation
(→TreeForm) |
|||
Line 12: | Line 12: | ||
TreeForm display navigator tree which can be switched between taxonomy, templates and personal context. | TreeForm display navigator tree which can be switched between taxonomy, templates and personal context. | ||
− | + | '''Translations properties needed:''' | |
<source lang="text"> | <source lang="text"> | ||
form.tree.title=Navigation tree | form.tree.title=Navigation tree | ||
Line 27: | Line 27: | ||
'''Example:''' | '''Example:''' | ||
<source lang="csharp"> | <source lang="csharp"> | ||
+ | public class Example : TreeHandler { | ||
+ | public Example(Dictionary dictionry) { | ||
+ | TreeForm treeForm = new TreeForm(this, dictionary, Program.okmWebservice); | ||
+ | } | ||
+ | |||
+ | // showTree | ||
+ | public void showNavigatorTree() { | ||
+ | try | ||
+ | { | ||
+ | treeForm.setFirstTime(true); | ||
+ | treeForm.ShowDialog(); | ||
+ | } | ||
+ | catch (Exception e) | ||
+ | { | ||
+ | Logger.Instance.error("treeForm", e); | ||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
+ | // treeButtonCancelled | ||
+ | public void treeButtonCancelled() | ||
+ | { | ||
+ | // something to do here | ||
+ | } | ||
+ | |||
+ | //treeButtonAccepted | ||
+ | public void treeButtonAccepted(String fldPath, String fldUuid) | ||
+ | { | ||
+ | // something to do here | ||
+ | } | ||
+ | } | ||
</source> | </source> | ||
[[Category: Extension Guide]] | [[Category: Extension Guide]] |
Revision as of 16:45, 23 September 2013
Contents |
DLL have been compiled for net 2.0 that should ensure go with any upper .net version |
OKMForm DLL library has general purpose forms to help work with OpenKM.
Understanding the basics
- TreeForm ( tree navigator across taxonomy, templates and personal folder)
- SearchForm ( search form across taxonomy, tamplates and personal folder )
- ConfigurationForm ( form to display OpenKM configuration parameters ).
TreeForm
TreeForm display navigator tree which can be switched between taxonomy, templates and personal context.
Translations properties needed:
form.tree.title=Navigation tree
form.tree.context.root=Taxonomy
form.tree.context.templates=Templates
form.tree.context.personal=Personal
form.tree.contextmenu.newfolder=New folder
form.tree.contextmenu.renamefolder=Rename folder
form.tree.contextmenu.deletefolder=Delete folder
form.tree.button.accept=Sign
form.tree.input.title=Folder management
Example:
public class Example : TreeHandler {
public Example(Dictionary dictionry) {
TreeForm treeForm = new TreeForm(this, dictionary, Program.okmWebservice);
}
// showTree
public void showNavigatorTree() {
try
{
treeForm.setFirstTime(true);
treeForm.ShowDialog();
}
catch (Exception e)
{
Logger.Instance.error("treeForm", e);
}
}
// treeButtonCancelled
public void treeButtonCancelled()
{
// something to do here
}
//treeButtonAccepted
public void treeButtonAccepted(String fldPath, String fldUuid)
{
// something to do here
}
}