本文整理汇总了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 );
}
}
示例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;
}
}
}
}
示例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;
}
示例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;
}
}
}
}
示例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;
}
示例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 );
}
}
示例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;
}
示例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$
}
示例9: getFields
import org.pentaho.ui.xul.util.AbstractModelList; //导入依赖的package包/类
public AbstractModelList<MongoDocumentField> getFields() {
return fields;
}
示例10: getTags
import org.pentaho.ui.xul.util.AbstractModelList; //导入依赖的package包/类
public AbstractModelList<MongoTag> getTags() {
return tags;
}
示例11: getModelObjects
import org.pentaho.ui.xul.util.AbstractModelList; //导入依赖的package包/类
public AbstractModelList<NamedModelObject> getModelObjects() {
return this.modelObjects;
}