Package com.portal.app.ccare.comp
Class PSubscriberPrefsServiceModel
java.lang.Object
com.portal.ctrl.AbstractTreeTableModel
com.portal.app.ccare.comp.PSubscriberPrefsServiceModel
- All Implemented Interfaces:
TreeTableModel,TreeModel
ServicePrefsModel class is the Tree Table model for services tree to be displayed in Preferences Tab.
-
Field Summary
FieldsFields inherited from class com.portal.ctrl.AbstractTreeTableModel
listenerList, root -
Constructor Summary
ConstructorsConstructorDescriptionPSubscriberPrefsServiceModel(ArrayList<PSubscriberPrefsServicesNode> serviceNodes) Gets the permission and also sets the treetable root -
Method Summary
Modifier and TypeMethodDescriptionReturns all the children of the Service node i.intgetChildCount(Object node) Returns the child count of the nodeprotected Object[]getChildren(Object node) Returns all the children of the Service node selected.getColumnClass(int column) Returns column class.intReturns the column count of the tree table, It s being reduced by 1 because the intention is not to display the last column(Poid.class).getColumnName(int column) Returns column name.protected PSubscriberPrefsServicesNodegetService(Object node) Returns the servicenode for the node selected in the treetable model.getValueAt(Object node, int column) Returns the value of the cell stored in the servicenodebooleanisCellEditable(Object node, int column) The cell is editable for the column which has service type and for the column which has check box, for all other columns it is not editablevoidsetValueAt(Object value, Object node, int row, int column) This method sets the value of checkbox in the jTreeTableMethods inherited from class com.portal.ctrl.AbstractTreeTableModel
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChangedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
-
Field Details
-
configExists
public boolean configExists
-
-
Constructor Details
-
PSubscriberPrefsServiceModel
Gets the permission and also sets the treetable root- Parameters:
serviceNodes-
-
-
Method Details
-
getService
Returns the servicenode for the node selected in the treetable model.- Parameters:
node-- Returns:
- ServicePrefsNode
-
getChildren
Returns all the children of the Service node selected.- Parameters:
node-- Returns:
- ServicePrefsNodes[]
-
getColumnClass
Returns column class.- Specified by:
getColumnClassin interfaceTreeTableModel- Overrides:
getColumnClassin classAbstractTreeTableModel
-
getChild
Returns all the children of the Service node i. -
getChildCount
Returns the child count of the node- Specified by:
getChildCountin interfaceTreeModel- Parameters:
node-- Returns:
- children count
-
getColumnCount
public int getColumnCount()Returns the column count of the tree table, It s being reduced by 1 because the intention is not to display the last column(Poid.class).- Specified by:
getColumnCountin interfaceTreeTableModel- Returns:
- column count
-
getColumnName
Returns column name.- Specified by:
getColumnNamein interfaceTreeTableModel- Parameters:
column-- Returns:
- column name
-
getValueAt
Returns the value of the cell stored in the servicenode- Specified by:
getValueAtin interfaceTreeTableModel- Parameters:
column-serviceNode-- Returns:
- value
-
isCellEditable
The cell is editable for the column which has service type and for the column which has check box, for all other columns it is not editable- Specified by:
isCellEditablein interfaceTreeTableModel- Overrides:
isCellEditablein classAbstractTreeTableModel- Parameters:
node-column-- Returns:
- boolean
-
setValueAt
This method sets the value of checkbox in the jTreeTable- Specified by:
setValueAtin interfaceTreeTableModel- Overrides:
setValueAtin classAbstractTreeTableModel- Parameters:
value- , to be setnode- , service Noderow-column-
-