本文整理匯總了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);
}
};
}
示例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;
}
示例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;
}
};
}
示例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);
}
};
}
示例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;
}
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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));
}
}
示例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;
}
}
示例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;
}
示例14: include
import javax.swing.RowFilter; //導入方法依賴的package包/類
public boolean include(RowFilter.Entry<? extends TableModel, ? extends Integer> entry) {
return testValue(entry.getStringValue(col));
}
示例15: include
import javax.swing.RowFilter; //導入方法依賴的package包/類
@Override
public boolean include(RowFilter.Entry<? extends TableModel, ? extends Integer> entry) {
return test(predicate, entry.getIdentifier());
}