📄 memberselectionmodel.java
字号:
/*
* ====================================================================
* This software is subject to the terms of the Common Public License
* Agreement, available at the following URL:
* http://www.opensource.org/licenses/cpl.html .
* Copyright (C) 2003-2004 TONBELLER AG.
* All Rights Reserved.
* You must accept the terms of that agreement to use this software.
* ====================================================================
*
*
*/
package com.tonbeller.jpivot.navigator.member;
import com.tonbeller.jpivot.olap.model.Member;
import com.tonbeller.wcf.selection.DefaultSelectionModel;
/**
* A SelectionModel that allows only <code>Members</code> to be selected.
* The Model may contain objects of other types but only Members are
* selectable.
* @author av
*/
public class MemberSelectionModel extends DefaultSelectionModel {
/**
* Constructor for MemberSelectionModel.
*/
public MemberSelectionModel() {
super();
}
/**
* Constructor for MemberSelectionModel.
* @param mode
*/
public MemberSelectionModel(int mode) {
super(mode);
}
/**
* true if item is a member
*/
public boolean isSelectable(Object item) {
return super.isSelectable(item) && item instanceof Member;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -