|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.portlets.user.collectionexplorer.shared.BaseItem
public class BaseItem
The BaseItem
is the basic item tha can be put inside the basket
each item that can be placed in the basket has to extends this class.
Field Summary | |
---|---|
protected String |
content
|
protected String |
fileName
|
protected int |
id
the identifier for the object d |
protected String |
label
the eventual label to display in the basket |
protected String |
metadata
|
protected String |
mimeType
|
protected String |
type
to know which kind of object is |
Constructor Summary | |
---|---|
BaseItem()
constructs an empty BaseItem |
|
BaseItem(int id,
String type,
String mimeType,
String label,
String metadata,
String content)
constructs the base item |
Method Summary | |
---|---|
String |
getContent()
|
String |
getFileName()
|
int |
getId()
|
String |
getLabel()
|
String |
getMetadata()
|
String |
getMimeType()
|
String |
getType()
|
void |
setContent(String content)
|
void |
setFileName(String fileName)
|
void |
setId(int id)
|
void |
setLabel(String label)
|
void |
setMetadata(String metadata)
|
void |
setMimeType(String mimeType)
|
void |
setType(String type)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int id
protected String type
protected String mimeType
protected String label
protected String metadata
protected String content
protected String fileName
Constructor Detail |
---|
public BaseItem()
public BaseItem(int id, String type, String mimeType, String label, String metadata, String content)
id
- the identifiermimeType
- the mimeTypetype
- the type of the filelabel
- the label to display when the widget is inside the basketmetadata
- mcontent
- cMethod Detail |
---|
public String getMimeType()
public void setMimeType(String mimeType)
mimeType
- mpublic String getLabel()
public void setLabel(String label)
label
- lpublic String getContent()
public void setContent(String content)
content
- cpublic int getId()
public void setId(int id)
id
- the IDpublic String getMetadata()
public void setMetadata(String metadata)
metadata
- mpublic String getType()
public void setType(String type)
type
- tpublic String getFileName()
public void setFileName(String fileName)
fileName
- f
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |