BrightSide Workbench Full Report + Source Code
org.turro.jpa.model.GroupModelManager Class Reference
Inheritance diagram for org.turro.jpa.model.GroupModelManager:
Collaboration diagram for org.turro.jpa.model.GroupModelManager:

Public Member Functions

 GroupModelManager (List list, Comparator comparator, Grid grid)
 
void removeItem (IDaoEntity object)
 
void addItem (IDaoEntity object)
 
void replaceItem (IDaoEntity object)
 
void removeGroupsDataListener (GroupsDataListener l)
 
void addGroupsDataListener (GroupsDataListener l)
 
void sort (Comparator cmpr, boolean ascending, int col)
 
boolean addOpenGroup (int groupIndex)
 
boolean removeOpenGroup (int groupIndex)
 
boolean isGroupOpened (int groupIndex)
 
boolean hasGroupfoot (int groupIndex)
 
void group (Comparator cmpr, boolean ascending, int col)
 
Object getGroupfoot (int groupIndex)
 
int getGroupCount ()
 
Object getGroup (int groupIndex)
 
int getChildCount (int groupIndex)
 
Object getChild (int groupIndex, int index)
 

Protected Member Functions

void fireEvent (int type, int groupIndex, int index0, int index1)
 
boolean createGroupClose (Object[] groupdata, int index, int col)
 
Object createGroupFoot (Object[] groupdata, int index, int col)
 
Object createGroupHead (Object[] groupdata, int index, int col)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 34 of file GroupModelManager.java.

Constructor & Destructor Documentation

◆ GroupModelManager()

org.turro.jpa.model.GroupModelManager.GroupModelManager ( List  list,
Comparator  comparator,
Grid  grid 
)

Definition at line 41 of file GroupModelManager.java.

41  {
42  this._comparator = comparator;
43  this._list = list;
44  this._grid = grid;
45  createModel();
46  }

Member Function Documentation

◆ addGroupsDataListener()

void org.turro.jpa.model.GroupModelManager.addGroupsDataListener ( GroupsDataListener  l)

Definition at line 77 of file GroupModelManager.java.

77  {
78  _model.addGroupsDataListener(l);
79  }

◆ addItem()

void org.turro.jpa.model.GroupModelManager.addItem ( IDaoEntity  object)

Definition at line 55 of file GroupModelManager.java.

55  {
56  _list.add(object);
57  createModel();
58  _grid.setModel(_grid.getGroupsModel());
59  fireEvent(GroupsDataEvent.GROUPS_CHANGED,-1,-1,-1);
60  }
void fireEvent(int type, int groupIndex, int index0, int index1)
Here is the call graph for this function:

◆ addOpenGroup()

boolean org.turro.jpa.model.GroupModelManager.addOpenGroup ( int  groupIndex)

Definition at line 87 of file GroupModelManager.java.

87  {
88  return _model.addOpenGroup(groupIndex);
89  }

◆ createGroupClose()

boolean org.turro.jpa.model.GroupModelManager.createGroupClose ( Object[]  groupdata,
int  index,
int  col 
)
protected

Definition at line 140 of file GroupModelManager.java.

140  {
141  return false;
142  }

◆ createGroupFoot()

Object org.turro.jpa.model.GroupModelManager.createGroupFoot ( Object[]  groupdata,
int  index,
int  col 
)
protected

Reimplemented in org.turro.erp.purchase.ReceiptItemModel, and org.turro.erp.purchase.OrderItemModel.

Definition at line 144 of file GroupModelManager.java.

144  {
145  return null;
146  }

◆ createGroupHead()

Object org.turro.jpa.model.GroupModelManager.createGroupHead ( Object[]  groupdata,
int  index,
int  col 
)
protected

Reimplemented in org.turro.erp.purchase.ReceiptItemModel, and org.turro.erp.purchase.OrderItemModel.

Definition at line 148 of file GroupModelManager.java.

148  {
149  return null;
150  }

◆ fireEvent()

void org.turro.jpa.model.GroupModelManager.fireEvent ( int  type,
int  groupIndex,
int  index0,
int  index1 
)
protected

Definition at line 136 of file GroupModelManager.java.

136  {
137  _model.fireEvent(type, groupIndex, index0, index1);
138  }
void fireEvent(int type, int groupIndex, int index0, int index1)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getChild()

Object org.turro.jpa.model.GroupModelManager.getChild ( int  groupIndex,
int  index 
)

Definition at line 132 of file GroupModelManager.java.

132  {
133  return _model.getChild(groupIndex, index);
134  }

◆ getChildCount()

int org.turro.jpa.model.GroupModelManager.getChildCount ( int  groupIndex)

Definition at line 127 of file GroupModelManager.java.

127  {
128  return _model.getChildCount(groupIndex);
129  }

◆ getGroup()

Object org.turro.jpa.model.GroupModelManager.getGroup ( int  groupIndex)

Definition at line 122 of file GroupModelManager.java.

122  {
123  return _model.getGroup(groupIndex);
124  }

◆ getGroupCount()

int org.turro.jpa.model.GroupModelManager.getGroupCount ( )

Definition at line 117 of file GroupModelManager.java.

117  {
118  return _model.getGroupCount();
119  }

◆ getGroupfoot()

Object org.turro.jpa.model.GroupModelManager.getGroupfoot ( int  groupIndex)

Definition at line 112 of file GroupModelManager.java.

112  {
113  return _model.getGroupfoot(groupIndex);
114  }

◆ group()

void org.turro.jpa.model.GroupModelManager.group ( Comparator  cmpr,
boolean  ascending,
int  col 
)

Definition at line 107 of file GroupModelManager.java.

107  {
108  _model.group(cmpr, ascending, col);
109  }

◆ hasGroupfoot()

boolean org.turro.jpa.model.GroupModelManager.hasGroupfoot ( int  groupIndex)

Definition at line 102 of file GroupModelManager.java.

102  {
103  return _model.hasGroupfoot(groupIndex);
104  }

◆ isGroupOpened()

boolean org.turro.jpa.model.GroupModelManager.isGroupOpened ( int  groupIndex)

Definition at line 97 of file GroupModelManager.java.

97  {
98  return _model.isGroupOpened(groupIndex);
99  }

◆ removeGroupsDataListener()

void org.turro.jpa.model.GroupModelManager.removeGroupsDataListener ( GroupsDataListener  l)

Definition at line 72 of file GroupModelManager.java.

72  {
73  _model.removeGroupsDataListener(l);
74  }

◆ removeItem()

void org.turro.jpa.model.GroupModelManager.removeItem ( IDaoEntity  object)

Definition at line 48 of file GroupModelManager.java.

48  {
49  EntityCollections.entities(_list).remove(object);
50  createModel();
51  _grid.setModel(_grid.getGroupsModel());
52  fireEvent(GroupsDataEvent.GROUPS_CHANGED,-1,-1,-1);
53  }
Here is the call graph for this function:

◆ removeOpenGroup()

boolean org.turro.jpa.model.GroupModelManager.removeOpenGroup ( int  groupIndex)

Definition at line 92 of file GroupModelManager.java.

92  {
93  return _model.removeOpenGroup(groupIndex);
94  }

◆ replaceItem()

void org.turro.jpa.model.GroupModelManager.replaceItem ( IDaoEntity  object)

Definition at line 62 of file GroupModelManager.java.

62  {
63  EntityCollections.entities(_list).replace(object);
64  createModel();
65  _grid.setModel(_grid.getGroupsModel());
66  fireEvent(GroupsDataEvent.GROUPS_CHANGED,-1,-1,-1);
67  }
Here is the call graph for this function:

◆ sort()

void org.turro.jpa.model.GroupModelManager.sort ( Comparator  cmpr,
boolean  ascending,
int  col 
)

Definition at line 82 of file GroupModelManager.java.

82  {
83  _model.sort(cmpr, ascending, col);
84  }

The documentation for this class was generated from the following file: