mirror of
				https://github.com/lacerta-doc/Lacerta.git
				synced 2025-09-09 12:09:25 +00:00 
			
		
		
		
	ListItemにtagListを追加
This commit is contained in:
		
							parent
							
								
									45c2b5f0fb
								
							
						
					
					
						commit
						10621d2935
					
				| 
						 | 
					@ -2,6 +2,10 @@ package one.nem.lacerta.model;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import android.graphics.drawable.Drawable;
 | 
					import android.graphics.drawable.Drawable;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import java.util.ArrayList;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import one.nem.lacerta.model.document.tag.DocumentTag;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class ListItem {
 | 
					public class ListItem {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Properties
 | 
					    // Properties
 | 
				
			||||||
| 
						 | 
					@ -11,6 +15,7 @@ public class ListItem {
 | 
				
			||||||
    ListItemType itemType;
 | 
					    ListItemType itemType;
 | 
				
			||||||
    String itemId;
 | 
					    String itemId;
 | 
				
			||||||
    boolean hasCombined;
 | 
					    boolean hasCombined;
 | 
				
			||||||
 | 
					    ArrayList<DocumentTag> tagList;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Constructor
 | 
					    // Constructor
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -29,6 +34,15 @@ public class ListItem {
 | 
				
			||||||
        this.hasCombined = hasCombined;
 | 
					        this.hasCombined = hasCombined;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public ListItem(String title, String description, ListItemType itemType, String itemId,boolean hasCombined, ArrayList<DocumentTag> tagList) {
 | 
				
			||||||
 | 
					        this.title = title;
 | 
				
			||||||
 | 
					        this.description = description;
 | 
				
			||||||
 | 
					        this.itemType = itemType;
 | 
				
			||||||
 | 
					        this.itemId = itemId;
 | 
				
			||||||
 | 
					        this.hasCombined = hasCombined;
 | 
				
			||||||
 | 
					        this.tagList = tagList;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public ListItem() {
 | 
					    public ListItem() {
 | 
				
			||||||
        // Empty constructor
 | 
					        // Empty constructor
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					@ -55,6 +69,10 @@ public class ListItem {
 | 
				
			||||||
        return hasCombined;
 | 
					        return hasCombined;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public ArrayList<DocumentTag> getTagList() {
 | 
				
			||||||
 | 
					        return tagList;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Setter
 | 
					    // Setter
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public void setTitle(String title) {
 | 
					    public void setTitle(String title) {
 | 
				
			||||||
| 
						 | 
					@ -77,4 +95,7 @@ public class ListItem {
 | 
				
			||||||
        this.hasCombined = hasCombined;
 | 
					        this.hasCombined = hasCombined;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public void setTagList(ArrayList<DocumentTag> tagList) {
 | 
				
			||||||
 | 
					        this.tagList = tagList;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user