public class CD extends NamedNode implements TreeNode
| Constructor and Description |
|---|
CD() |
CD(String name,
String artist,
Company company,
float price,
int year) |
| Modifier and Type | Method and Description |
|---|---|
Enumeration<TreeNode> |
children() |
boolean |
getAllowsChildren() |
String |
getArtist() |
TreeNode |
getChildAt(int childIndex) |
int |
getChildCount() |
Company |
getCompany() |
int |
getIndex(TreeNode node) |
TreeNode |
getParent() |
float |
getPrice() |
int |
getYear() |
boolean |
isLeaf() |
void |
setArtist(String artist) |
void |
setCompany(Company company) |
void |
setPrice(float price) |
void |
setYear(int year) |
public Company getCompany()
public void setCompany(Company company)
public TreeNode getChildAt(int childIndex)
getChildAt in interface TreeNodepublic int getChildCount()
getChildCount in interface TreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodepublic Enumeration<TreeNode> children()
public String getArtist()
public void setArtist(String artist)
public float getPrice()
public void setPrice(float price)
public int getYear()
public void setYear(int year)
Copyright © 2014 JBoss by Red Hat. All rights reserved.