use of org.openntf.domino.ViewNavigator in project org.openntf.domino by OpenNTF.
the class View method createViewNavFromCategory.
/*
* (non-Javadoc)
*
* @see org.openntf.domino.View#createViewNavFromCategory(java.lang.String, int)
*/
@Override
public ViewNavigator createViewNavFromCategory(final String categoryName, final int cacheSize) {
try {
getDelegate().setAutoUpdate(false);
getDelegate().setEnableNoteIDsForCategories(true);
ViewNavigator result = fromLotus(getDelegate().createViewNavFromCategory(categoryName, cacheSize), ViewNavigator.SCHEMA, this);
result.setCacheSize(cacheSize);
((org.openntf.domino.impl.ViewNavigator) result).setType(ViewNavigator.Types.CATEGORY);
((org.openntf.domino.impl.ViewNavigator) result).setStartCategory(categoryName);
return result;
} catch (NotesException e) {
DominoUtils.handleException(e);
}
return null;
}
use of org.openntf.domino.ViewNavigator in project org.openntf.domino by OpenNTF.
the class View method createViewNavMaxLevel.
/*
* (non-Javadoc)
*
* @see org.openntf.domino.View#createViewNavMaxLevel(int)
*/
@Override
public ViewNavigator createViewNavMaxLevel(final int level) {
try {
getDelegate().setAutoUpdate(false);
getDelegate().setEnableNoteIDsForCategories(true);
ViewNavigator result = fromLotus(getDelegate().createViewNavMaxLevel(level), ViewNavigator.SCHEMA, this);
result.setMaxLevel(level);
((org.openntf.domino.impl.ViewNavigator) result).setType(ViewNavigator.Types.MAXLEVEL);
return result;
} catch (NotesException e) {
DominoUtils.handleException(e);
}
return null;
}
Aggregations