# src/scripts/CDP/UI/listview/GroupListItemView.js

## Maintainability

79.28

## Lines of code

64

## Difficulty

30.69

## Estimated Errors

0.48

## Function weight

### By Complexity

### By SLOC

var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var CDP; (function (CDP) { var UI; (function (UI) { var TAG = "[CDP.UI.GroupListItemView] "; /** * @class GroupListItemView * @brief ExpandableListView が扱う ListItem コンテナクラス */ var GroupListItemView = /** @class */ (function (_super) { __extends(GroupListItemView, _super); /** * constructor * * @param options {GroupLineViewOptions} [in] オプション */ function GroupListItemView(options) { var _this = _super.call(this, options) || this; _this._groupProfile = null; //!< 管轄の GroupProfile _this._groupProfile = options.groupProfile; return _this; } /////////////////////////////////////////////////////////////////////// // protected methods /** * 展開状態を判定 * * @return {Boolean} true: 展開, false:収束 */ GroupListItemView.prototype.isExpanded = function () { return this._groupProfile.isExpanded(); }; //! 展開中か判定 GroupListItemView.prototype.isExpanding = function () { return this.owner.isExpanding(); }; //! 収束中か判定 GroupListItemView.prototype.isCollapsing = function () { return this.owner.isCollapsing(); }; //! 開閉中か判定 GroupListItemView.prototype.isSwitching = function () { return this.owner.isSwitching(); }; //! 子 Group を持っているか判定 GroupListItemView.prototype.hasChildren = function (layoutKey) { return this._groupProfile.hasChildren(layoutKey); }; return GroupListItemView; }(UI.ListItemView)); UI.GroupListItemView = GroupListItemView; })(UI = CDP.UI || (CDP.UI = {})); })(CDP || (CDP = {})); //# sourceMappingURL=data:application/json;base64,