C# Класс Habanero.Faces.Win.StaticDataEditorWin

Provides an editor for static data in an application. Static data serves a number purposes including providing source data for lookup lists used in drop-downs.
The editor typically consists of a TreeView on the left and an EditableGrid on the right, where data for the selected type in the TreeView can be edited.
Наследование: PanelWin, IStaticDataEditor
Показать файл Открыть проект

Открытые методы

Метод Описание
AddItem ( string itemName, IClassDef classDef ) : void

Adds an item to the treeview

AddSection ( string sectionName ) : void

Adds a section to the treeview, under which individual items can be listed

RejectChanges ( ) : bool

Rejects (restores) changes to the grid since the last save

SaveChanges ( ) : bool

Saves the changes made to the grid

SelectItem ( string itemName ) : void

Selects an item with the given name in the treeview

StaticDataEditorWin ( IControlFactory controlFactory ) : Habanero.Base

Constructor for StaticDataEditorWin

Описание методов

AddItem() публичный Метод

Adds an item to the treeview
public AddItem ( string itemName, IClassDef classDef ) : void
itemName string The name of the item as it appears to the user
classDef IClassDef The class definition holding a grid def used to /// construct the grid for that type
Результат void

AddSection() публичный Метод

Adds a section to the treeview, under which individual items can be listed
public AddSection ( string sectionName ) : void
sectionName string The name of the section as it appears to the user
Результат void

RejectChanges() публичный Метод

Rejects (restores) changes to the grid since the last save
public RejectChanges ( ) : bool
Результат bool

SaveChanges() публичный Метод

Saves the changes made to the grid
public SaveChanges ( ) : bool
Результат bool

SelectItem() публичный Метод

Selects an item with the given name in the treeview
public SelectItem ( string itemName ) : void
itemName string The name of the item to select
Результат void

StaticDataEditorWin() публичный Метод

Constructor for StaticDataEditorWin
public StaticDataEditorWin ( IControlFactory controlFactory ) : Habanero.Base
controlFactory IControlFactory
Результат Habanero.Base