use of org.openntf.domino.ViewColumn in project org.openntf.domino by OpenNTF.
the class View method copyColumn.
/*
* (non-Javadoc)
*
* @see org.openntf.domino.View#copyColumn(lotus.domino.ViewColumn)
*/
@Override
public ViewColumn copyColumn(final lotus.domino.ViewColumn sourceColumn) {
try {
ViewColumn result = fromLotus(getDelegate().copyColumn(toLotus(sourceColumn)), ViewColumn.SCHEMA, this);
flushCaches();
return result;
} catch (NotesException e) {
DominoUtils.handleException(e);
}
return null;
}
use of org.openntf.domino.ViewColumn in project org.openntf.domino by OpenNTF.
the class View method getColumnMap.
/* (non-Javadoc)
* @see org.openntf.domino.ext.View#getColumnMap()
*/
@Override
public Map<String, org.openntf.domino.ViewColumn> getColumnMap() {
if (columnMap_ == null) {
columnMap_ = new LinkedHashMap<String, org.openntf.domino.ViewColumn>();
Vector<ViewColumn> columns = getColumns();
if (columns != null && !columns.isEmpty()) {
for (ViewColumn column : columns) {
columnMap_.put(column.getItemName(), column);
}
}
}
return columnMap_;
}
use of org.openntf.domino.ViewColumn in project org.openntf.domino by OpenNTF.
the class View method copyColumn.
/*
* (non-Javadoc)
*
* @see org.openntf.domino.View#copyColumn(java.lang.String, int)
*/
@Override
public ViewColumn copyColumn(final String sourceColumn, final int destinationIndex) {
try {
ViewColumn result = fromLotus(getDelegate().copyColumn(sourceColumn, destinationIndex), ViewColumn.SCHEMA, this);
flushCaches();
return result;
} catch (NotesException e) {
DominoUtils.handleException(e);
}
return null;
}
use of org.openntf.domino.ViewColumn in project org.openntf.domino by OpenNTF.
the class View method getCategoryTree.
public Map<Object, Object> getCategoryTree() {
if (!isCategorized()) {
return null;
}
Map<Object, Object> result = new LinkedHashMap<Object, Object>();
Vector<ViewColumn> columns = getColumns();
@SuppressWarnings("unused") int categoryCount = 0;
for (ViewColumn column : columns) {
if (column.isCategory()) {
categoryCount++;
}
}
// for ()
return result;
}
use of org.openntf.domino.ViewColumn in project org.openntf.domino by OpenNTF.
the class View method createColumn.
/*
* (non-Javadoc)
*
* @see org.openntf.domino.View#createColumn()
*/
@Override
public ViewColumn createColumn() {
try {
ViewColumn result = fromLotus(getDelegate().createColumn(), ViewColumn.SCHEMA, this);
flushCaches();
return result;
} catch (NotesException e) {
DominoUtils.handleException(e);
}
return null;
}
Aggregations