本文整理汇总了Java中org.pentaho.ui.xul.util.AbstractModelList类的典型用法代码示例。如果您正苦于以下问题:Java AbstractModelList类的具体用法?Java AbstractModelList怎么用?Java AbstractModelList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AbstractModelList类属于org.pentaho.ui.xul.util包,在下文中一共展示了AbstractModelList类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: convertList
import org.pentaho.ui.xul.util.AbstractModelList; //导入依赖的package包/类
public static void convertList( List<String> tags, AbstractModelList<MongoTag> docTags ) {
if ( tags == null || tags.isEmpty() ) {
return;
}
for ( String tag : tags ) {
MongoTag docTag = new MongoTag();
if ( tag.startsWith( "{" ) ) {
tag = tag.substring( 1 );
}
if ( tag.endsWith( "}" ) ) {
tag = tag.substring( 0, tag.length() - 1 );
}
docTag.setTagName( tag );
docTags.add( docTag );
}
}
开发者ID:pentaho,项目名称:pentaho-mongodb-plugin,代码行数:21,代码来源:MongoTag.java
示例2: trimList
import org.pentaho.ui.xul.util.AbstractModelList; //导入依赖的package包/类
public static void trimList( List<String> tags, AbstractModelList<MongoTag> docTags ) {
if ( tags == null || tags.isEmpty() ) {
return;
}
for ( int i = tags.size() - 1; i >= 0; i-- ) {
String tag = tags.get( i );
for ( MongoTag docTag : docTags.asList() ) {
if ( tag.equalsIgnoreCase( docTag.getTagName() ) ) {
tags.remove( tag );
break;
}
}
}
}
开发者ID:pentaho,项目名称:pentaho-mongodb-plugin,代码行数:17,代码来源:MongoTag.java
示例3: convertFromList
import org.pentaho.ui.xul.util.AbstractModelList; //导入依赖的package包/类
public static List<String> convertFromList( AbstractModelList<MongoTag> docTags ) {
List<String> tags = new ArrayList<String>();
if ( docTags == null || docTags.isEmpty() ) {
return tags;
}
for ( MongoTag docTag : docTags ) {
String tag = docTag.getTagName();
if ( !tag.startsWith( "{" ) ) {
tag = "{" + tag;
}
if ( !tag.endsWith( "}" ) ) {
tag += "}";
}
tags.add( tag );
}
return tags;
}
开发者ID:pentaho,项目名称:pentaho-mongodb-plugin,代码行数:23,代码来源:MongoTag.java
示例4: trimList
import org.pentaho.ui.xul.util.AbstractModelList; //导入依赖的package包/类
public static void trimList( List<MongoField> fields, AbstractModelList<MongoDocumentField> docFields ) {
if ( fields == null || fields.isEmpty() ) {
return;
}
for ( int i = fields.size() - 1; i >= 0; i-- ) {
MongoField field = fields.get( i );
for ( MongoDocumentField docField : docFields.asList() ) {
if ( ( field.m_fieldName.equalsIgnoreCase( docField.m_fieldName ) ) && ( field.m_fieldPath
.equalsIgnoreCase( docField.m_fieldPath ) ) ) {
fields.remove( field );
break;
}
}
}
}
开发者ID:pentaho,项目名称:pentaho-mongodb-plugin,代码行数:17,代码来源:MongoDocumentField.java
示例5: UISecurityRole
import org.pentaho.ui.xul.util.AbstractModelList; //导入依赖的package包/类
public UISecurityRole() {
availableUsers = new ArrayList<IUIUser>();
assignedUsers = new AbstractModelList<IUIUser>();
assignedUsers.addPropertyChangeListener( "children", //$NON-NLS-1$
new PropertyChangeListener() {
public void propertyChange( PropertyChangeEvent evt ) {
List<IUIUser> previousValue = getPreviousSelectedUsers();
UISecurityRole.this.firePropertyChange( "selectedUsers", //$NON-NLS-1$
previousValue, assignedUsers );
}
} );
description = null;
name = null;
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:18,代码来源:UISecurityRole.java
示例6: convertList
import org.pentaho.ui.xul.util.AbstractModelList; //导入依赖的package包/类
public static void convertList( List<MongoField> fields, AbstractModelList<MongoDocumentField> docFields ) {
if ( fields == null || fields.isEmpty() ) {
return;
}
for ( MongoField field : fields ) {
MongoDocumentField docField = new MongoDocumentField();
docField.convertFrom( field );
docFields.add( docField );
}
}
开发者ID:pentaho,项目名称:pentaho-mongodb-plugin,代码行数:12,代码来源:MongoDocumentField.java
示例7: convertFromList
import org.pentaho.ui.xul.util.AbstractModelList; //导入依赖的package包/类
public static List<MongoField> convertFromList( AbstractModelList<MongoDocumentField> docFields ) {
List<MongoField> fields = new ArrayList<MongoField>();
if ( docFields == null || docFields.isEmpty() ) {
return fields;
}
for ( MongoDocumentField docField : docFields ) {
MongoField field = new MongoField();
docField.convertTo( field );
fields.add( field );
}
return fields;
}
开发者ID:pentaho,项目名称:pentaho-mongodb-plugin,代码行数:14,代码来源:MongoDocumentField.java
示例8: setAssignedUsers
import org.pentaho.ui.xul.util.AbstractModelList; //导入依赖的package包/类
public void setAssignedUsers( AbstractModelList<IUIUser> selectedUsers ) {
List<IUIUser> previousValue = getPreviousSelectedUsers();
this.assignedUsers.clear();
if ( selectedUsers != null ) {
this.assignedUsers.addAll( selectedUsers );
}
this.firePropertyChange( "assignedUsers", previousValue, this.assignedUsers ); //$NON-NLS-1$
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:9,代码来源:UISecurityRole.java
示例9: getFields
import org.pentaho.ui.xul.util.AbstractModelList; //导入依赖的package包/类
public AbstractModelList<MongoDocumentField> getFields() {
return fields;
}
开发者ID:pentaho,项目名称:pentaho-mongodb-plugin,代码行数:4,代码来源:MongoDbModel.java
示例10: getTags
import org.pentaho.ui.xul.util.AbstractModelList; //导入依赖的package包/类
public AbstractModelList<MongoTag> getTags() {
return tags;
}
开发者ID:pentaho,项目名称:pentaho-mongodb-plugin,代码行数:4,代码来源:MongoDbModel.java
示例11: getModelObjects
import org.pentaho.ui.xul.util.AbstractModelList; //导入依赖的package包/类
public AbstractModelList<NamedModelObject> getModelObjects() {
return this.modelObjects;
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:4,代码来源:ObjectListModel.java
注:本文中的org.pentaho.ui.xul.util.AbstractModelList类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论