C# 클래스 Habanero.Faces.Base.StaticDataEditorManager

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.
파일 보기 프로젝트 열기: Chillisoft/habanero.faces 1 사용 예제들

공개 메소드들

메소드 설명
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

StaticDataEditorManager ( IStaticDataEditor staticDataEditor, IControlFactory controlFactory ) : System

Constrcutor for the StaticDataEditorManager

비공개 메소드들

메소드 설명
_treeView_OnBeforeSelect ( object sender, TreeViewCancelEventArgs e ) : void

메소드 상세

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

StaticDataEditorManager() 공개 메소드

Constrcutor for the StaticDataEditorManager
public StaticDataEditorManager ( IStaticDataEditor staticDataEditor, IControlFactory controlFactory ) : System
staticDataEditor IStaticDataEditor
controlFactory IControlFactory
리턴 System