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)
*/
@Override
public ViewNavigator createViewNavFromCategory(final String categoryName) {
try {
getDelegate().setAutoUpdate(false);
getDelegate().setEnableNoteIDsForCategories(true);
ViewNavigator result = fromLotus(getDelegate().createViewNavFromCategory(categoryName), ViewNavigator.SCHEMA, this);
((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 createViewNavFromChildren.
/*
* (non-Javadoc)
*
* @see org.openntf.domino.View#createViewNavFromChildren(java.lang.Object, int)
*/
@Override
public ViewNavigator createViewNavFromChildren(final Object entry, final int cacheSize) {
try {
getDelegate().setAutoUpdate(false);
getDelegate().setEnableNoteIDsForCategories(true);
ViewNavigator result = fromLotus(getDelegate().createViewNavFromChildren(toLotus(entry), cacheSize), ViewNavigator.SCHEMA, this);
result.setCacheSize(cacheSize);
((org.openntf.domino.impl.ViewNavigator) result).setType(ViewNavigator.Types.CHILDREN);
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 createViewNavFromAllUnread.
/*
* (non-Javadoc)
*
* @see org.openntf.domino.View#createViewNavFromAllUnread()
*/
@Override
public ViewNavigator createViewNavFromAllUnread() {
try {
getDelegate().setAutoUpdate(false);
getDelegate().setEnableNoteIDsForCategories(true);
ViewNavigator result = fromLotus(getDelegate().createViewNavFromAllUnread(), ViewNavigator.SCHEMA, this);
((org.openntf.domino.impl.ViewNavigator) result).setType(ViewNavigator.Types.UNREAD);
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 createViewNavFromChildren.
/*
* (non-Javadoc)
*
* @see org.openntf.domino.View#createViewNavFromChildren(java.lang.Object)
*/
@Override
public ViewNavigator createViewNavFromChildren(final Object entry) {
try {
getDelegate().setAutoUpdate(false);
getDelegate().setEnableNoteIDsForCategories(true);
ViewNavigator result = fromLotus(getDelegate().createViewNavFromChildren(toLotus(entry)), ViewNavigator.SCHEMA, this);
((org.openntf.domino.impl.ViewNavigator) result).setType(ViewNavigator.Types.CHILDREN);
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 createViewNav.
/*
* (non-Javadoc)
*
* @see org.openntf.domino.View#createViewNav(int)
*/
@Override
public ViewNavigator createViewNav(final int cacheSize) {
try {
getDelegate().setAutoUpdate(false);
getDelegate().setEnableNoteIDsForCategories(true);
ViewNavigator result = fromLotus(getDelegate().createViewNav(cacheSize), ViewNavigator.SCHEMA, this);
result.setCacheGuidance(cacheSize);
((org.openntf.domino.impl.ViewNavigator) result).setType(ViewNavigator.Types.NONE);
return result;
} catch (NotesException e) {
DominoUtils.handleException(e);
}
return null;
}
Aggregations