當前位置: 首頁>>代碼示例>>Java>>正文


Java RowFilter.Entry方法代碼示例

本文整理匯總了Java中javax.swing.RowFilter.Entry方法的典型用法代碼示例。如果您正苦於以下問題:Java RowFilter.Entry方法的具體用法?Java RowFilter.Entry怎麽用?Java RowFilter.Entry使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在javax.swing.RowFilter的用法示例。


在下文中一共展示了RowFilter.Entry方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createFilter

import javax.swing.RowFilter; //導入方法依賴的package包/類
/** Create a row filter */
private RowFilter<ProxyTableModel<Controller>, Integer> createFilter() {
	return new RowFilter<ProxyTableModel<Controller>, Integer>() {
		public boolean include(RowFilter.Entry<? extends
			ProxyTableModel<Controller>, ? extends Integer>
			entry)
		{
			int i = entry.getIdentifier();
			Controller c = getRowProxy(i);
			return (c != null)
			    && isMatchingLink(c)
			    && isMatchingCondition(c)
			    && isMatchingCommState(c);
		}
	};
}
 
開發者ID:CA-IRIS,項目名稱:ca-iris,代碼行數:17,代碼來源:ControllerTableModel.java

示例2: include

import javax.swing.RowFilter; //導入方法依賴的package包/類
@Override
public boolean include(RowFilter.Entry<? extends ResultTableModel, ? extends Integer> entry) {
	ResultTableModel model = entry.getModel();
	Result result = (Result) model.getValueAt(entry.getIdentifier(), -1);
	
	if (teams != result instanceof Team) return false;
	
	if (cd != null && cd.doFilter() && !cd.getSelectedItem().equals(result.getDisziplin())) {
		return false;
	}

	if (cg != null && cg.doFilter() && !cg.getSelectedItem().equals(result.getGroup(false))) {
		return false;
	}

	if (!teams && team != null) {
		int row = team.getSelectedRow();
		if (row >= 0) {
			Team t = (Team) team.getValueAt(row, -1);
			return t.contains((Single) result) == member;
		}
	}

	return true;
}
 
開發者ID:SmallLars,項目名稱:esadb,代碼行數:26,代碼來源:ResultRowFilter.java

示例3: getExcludesFilter

import javax.swing.RowFilter; //導入方法依賴的package包/類
protected RowFilter getExcludesFilter() {
    return new RowFilter() { // Do not filter first level nodes
        public boolean include(RowFilter.Entry entry) {
            PresoObjAllocCCTNode node = (PresoObjAllocCCTNode)entry.getIdentifier();
            CCTNode parent = node.getParent();
            if (parent == null) return true;
            if (parent.getParent() == null) return !filterObjects;
            return !filterAllocations;
        }
    };
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:12,代碼來源:AllocTreeTableView.java

示例4: getExcludesFilter

import javax.swing.RowFilter; //導入方法依賴的package包/類
protected RowFilter getExcludesFilter() {
    return new RowFilter() { // Do not filter SQL commands
        public boolean include(RowFilter.Entry entry) {
            PresoObjAllocCCTNode node = (PresoObjAllocCCTNode)entry.getIdentifier();
            return isSQL(node);
        }
    };
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:9,代碼來源:JDBCTreeTableView.java

示例5: include

import javax.swing.RowFilter; //導入方法依賴的package包/類
public boolean include(RowFilter.Entry entry) {
    ThreadData data = (ThreadData)entry.getValue(1);
    switch (filter) {
        case LIVE: return ThreadData.isAliveState(data.getLastState());
        case FINISHED: return !ThreadData.isAliveState(data.getLastState());
        case SELECTED: return selectedApplied.contains(entry.getIdentifier());
        default: return true;
    }
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:10,代碼來源:ThreadsPanel.java

示例6: include

import javax.swing.RowFilter; //導入方法依賴的package包/類
@Override
public boolean include(RowFilter.Entry<? extends TableModel,? extends Integer> entry)  {
    for (int colIdx : cols) {
        Object val = entry.getValue(colIdx);
        if (testValue(val)) {
                return true;
            }
        }
    return false;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:11,代碼來源:MultiColPatternFilter.java

示例7: include

import javax.swing.RowFilter; //導入方法依賴的package包/類
@Override
public boolean include( RowFilter.Entry<? extends ValueTableModel, ? extends Integer> entry ) {
	if ( filtering ) {
		LoadingSheetModel lsm = LoadingSheetModel.class.cast( entry.getModel() );
		LoadingSheetData.LoadingNodeAndPropertyValues nap
				= lsm.getNap( entry.getIdentifier() );
		return ( null == nap ? true : nap.hasError() );
	}
	return true;
}
 
開發者ID:Ostrich-Emulators,項目名稱:semtool,代碼行數:11,代碼來源:LoadingPlaySheetBase.java

示例8: include

import javax.swing.RowFilter; //導入方法依賴的package包/類
@Override
public boolean include(RowFilter.Entry<? extends MemberTableModel, ? extends Integer> entry) {
	MemberTableModel model = entry.getModel();
	Member schuetze = (Member) model.getValueAt(entry.getIdentifier(), -1);
	if (verein.doFilter()) {
		Club c = (Club) verein.getSelectedItem();
		if (c.getId() != schuetze.vereinsnummer) {
			return false;
		}
	}
	return active ? controller.contains(schuetze) : !controller.contains(schuetze);
}
 
開發者ID:SmallLars,項目名稱:esadb,代碼行數:13,代碼來源:MemberRowFilter.java

示例9: include

import javax.swing.RowFilter; //導入方法依賴的package包/類
@Override
public boolean include(RowFilter.Entry<? extends GroupTableModel, ? extends Integer> entry) {
	GroupTableModel model = entry.getModel();
	Group group = (Group) model.getValueAt(entry.getIdentifier(), -1);
	
	if (filterBox != null && filterBox.doFilter()) {
		if ((Gender) filterBox.getSelectedItem() != group.getGender()) {
			return false;
		}
	}

	return true;
}
 
開發者ID:SmallLars,項目名稱:esadb,代碼行數:14,代碼來源:GroupRowFilter.java

示例10: include

import javax.swing.RowFilter; //導入方法依賴的package包/類
@Override
public boolean include(
		RowFilter.Entry<? extends TableModel, ? extends Integer> entry) {
	final int row = entry.getIdentifier();
	final SessionTableModel model = (SessionTableModel)entry.getModel();
	
	final Record r = model.getSession().getRecord(row);
	
	boolean retVal = true;
	for(String column:tierExprs.keySet()) {
		if(column.equals(ANY_TIER)) {
			// search all columns
			boolean anyTier = false;
			
			// check record number
			anyTier = checkRecordNumber(row+1, tierExprs.get(ANY_TIER));
			
			// check speaker
			anyTier |= (r.getSpeaker() != null ? r.getSpeaker().toString().contains(tierExprs.get(column))
					: false);
			
			for(int i = 0; i < entry.getValueCount(); i++) {
				if(anyTier) break;
				anyTier = checkTier(r, model.getColumnName(i));
			}
			retVal &= anyTier;
		} else if(column.equals("Record #")) {
			retVal &= checkRecordNumber(row+1, tierExprs.get(column));
		} else if (column.equals("Speaker")) {
			retVal &= (r.getSpeaker() != null ? r.getSpeaker().toString().contains(tierExprs.get(column))
					: false);
		} else {
			retVal &= checkTier(r, column);
		}
	}
	
	return retVal;
}
 
開發者ID:phon-ca,項目名稱:phon,代碼行數:39,代碼來源:SessionRowFilter.java

示例11: include

import javax.swing.RowFilter; //導入方法依賴的package包/類
@Override
public boolean include(RowFilter.Entry<? extends M, ? extends I> entry) {
	if (entry.getIdentifier().equals(0)) {
		return true;
	} else {
		return getVisibleRowNames().contains(entry.getStringValue(0));
	}
}
 
開發者ID:sing-group,項目名稱:GC4S,代碼行數:9,代碼來源:JHeatMap.java

示例12: include

import javax.swing.RowFilter; //導入方法依賴的package包/類
@Override
public boolean include(RowFilter.Entry<? extends M, ? extends I> entry) {
	if(getVisibleRows().isPresent()) {
		return getVisibleRows().get().contains(entry.getIdentifier());
	} else {
		return true;
	}
}
 
開發者ID:sing-group,項目名稱:GC4S,代碼行數:9,代碼來源:FilterableJXTable.java

示例13: getFilterEntry

import javax.swing.RowFilter; //導入方法依賴的package包/類
private RowFilter.Entry<M, I> getFilterEntry(int modelIndex) {
	if (filterEntry == null) {
		filterEntry = new FilterEntry<M, I>();
		filterEntry.modelWrapper = modelWrapper;
	}
	filterEntry.modelIndex = modelIndex;
	return filterEntry;
}
 
開發者ID:jedwards1211,項目名稱:breakout,代碼行數:9,代碼來源:AnnotatingRowSorter.java

示例14: include

import javax.swing.RowFilter; //導入方法依賴的package包/類
public boolean include(RowFilter.Entry<? extends TableModel, ? extends Integer> entry) {
    return testValue(entry.getStringValue(col));
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:4,代碼來源:SuperPatternFilter.java

示例15: include

import javax.swing.RowFilter; //導入方法依賴的package包/類
@Override
public boolean include(RowFilter.Entry<? extends TableModel, ? extends Integer> entry) {
    return test(predicate, entry.getIdentifier());
}
 
開發者ID:baryshnikova-lab,項目名稱:safe-java,代碼行數:5,代碼來源:SubstringRowFilter.java


注:本文中的javax.swing.RowFilter.Entry方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。