public class Formula extends Payable
| Constructor and Description |
|---|
Formula() |
Formula(int id,
String name,
Image image,
float price,
boolean viewable,
Calendar edit) |
| Modifier and Type | Method and Description |
|---|---|
Choice |
createNewChoice(String name) |
void |
delete() |
Choice[] |
getChoices()
Return the choices
|
void |
setImage(Image image,
String format)
Sets image
|
void |
setName(String name)
Sets name
|
void |
setPrice(float price)
Sets price
|
void |
setViewable(boolean viewable)
Sets viewable
|
public Choice[] getChoices() throws APIException, IOException
IOExceptionAPIExceptionpublic Choice createNewChoice(String name) throws APIException, IOException
name - IOExceptionAPIExceptionpublic final void setName(String name) throws APIException, IOException
PayablesetName in class Payablename - the name to setAPIExceptionIOExceptionpublic final void setPrice(float price)
throws APIException,
IOException
PayablesetPrice in class Payableprice - the price to setAPIExceptionIOExceptionpublic final void setViewable(boolean viewable)
throws APIException,
IOException
PayablesetViewable in class Payableviewable - the viewable to setAPIExceptionIOExceptionpublic void delete()
throws APIException,
IOException
delete in class PayableAPIExceptionIOExceptionpublic void setImage(Image image, String format) throws APIException, IOException
PayablesetImage in class Payableimage - the image to setIOExceptionAPIExceptionCopyright © 2019 Nowtryz. All rights reserved.