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.int
getChildCount
(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.int
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).getColumnName
(int column) Returns column name.protected PSubscriberPrefsServicesNode
getService
(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 servicenodeboolean
isCellEditable
(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 editablevoid
setValueAt
(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, valueForPathChanged
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getColumnClass
in interfaceTreeTableModel
- Overrides:
getColumnClass
in classAbstractTreeTableModel
-
getChild
Returns all the children of the Service node i. -
getChildCount
Returns the child count of the node- Specified by:
getChildCount
in 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:
getColumnCount
in interfaceTreeTableModel
- Returns:
- column count
-
getColumnName
Returns column name.- Specified by:
getColumnName
in interfaceTreeTableModel
- Parameters:
column
-- Returns:
- column name
-
getValueAt
Returns the value of the cell stored in the servicenode- Specified by:
getValueAt
in 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:
isCellEditable
in interfaceTreeTableModel
- Overrides:
isCellEditable
in classAbstractTreeTableModel
- Parameters:
node
-column
-- Returns:
- boolean
-
setValueAt
This method sets the value of checkbox in the jTreeTable- Specified by:
setValueAt
in interfaceTreeTableModel
- Overrides:
setValueAt
in classAbstractTreeTableModel
- Parameters:
value
- , to be setnode
- , service Noderow
-column
-
-