Package start
Class Widget
- java.lang.Object
-
- start.Product
-
- start.Widget
-
-
Constructor Summary
Constructors Constructor Description Widget(java.lang.String name, java.lang.String manufacturer, ItemType type, int identify, boolean newDevice)Constructor for Widgets in the System (When creating a new Product) Widget is the core that allows the system to Return the Product with further Details From the Database when the product was created.Widget(java.lang.String name, java.lang.String manufacturer, ItemType type, int identify, SpeakerType speaker, java.lang.String audioFormat, java.lang.String playlistFormat, MonitorType monitorType, java.lang.String resolution, int refreshRate, int responceRate)Creates New product from all Database fields.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateDeviceObject()After the Information is Provided the Object is created with its Attributes and Sent to the Controller so that it may be recorded in the Database.static java.lang.String[]getDetails()Accessor for Issue Controller to fill in the String information from user input.static int[]getInfo()Accessor for issue Controller to fill in the Integer information from user input.ProductgetProduct()Mutator to set the Widget Product Object that was created when the widget was created.static voidsetDetails(int[] data)Mutator to set the [Integer] information from the additional product information window into the specific product type.static voidsetDetails(java.lang.String[] info)Mutator to set the [String] information from the additional product information window into the specific product type.static voidsetMonitor(MonitorType monitorType)Mutator to set the monitor type for the specific product type.static voidsetSpeaker(SpeakerType speakerType)Mutator to set the speaker type to create the specific product object.-
Methods inherited from class start.Product
getEmployee, getId, getItemType, getManufacturer, getName, getType, setEmployee, setItemType, setManufacturer, setName, toString
-
-
-
-
Constructor Detail
-
Widget
public Widget(java.lang.String name, java.lang.String manufacturer, ItemType type, int identify, boolean newDevice)Constructor for Widgets in the System (When creating a new Product) Widget is the core that allows the system to Return the Product with further Details From the Database when the product was created.- Parameters:
name- Name of Widget.manufacturer- manufacturer of Widget.type- Item Type of Widget.identify- Identification Number of the Product.newDevice- To Determine if this is a new device for Further Information.
-
Widget
public Widget(java.lang.String name, java.lang.String manufacturer, ItemType type, int identify, SpeakerType speaker, java.lang.String audioFormat, java.lang.String playlistFormat, MonitorType monitorType, java.lang.String resolution, int refreshRate, int responceRate)Creates New product from all Database fields. (When Inputting from database fields)- Parameters:
name- Name of Widget.manufacturer- manufacturer of Widget.type- Item Type of Widget.identify- Identification Number of the Product.speaker- Speaker output Type.audioFormat- Audio Format The Audio Player Plays.playlistFormat- Playlist Format The Audio Player Plays.monitorType- Monitor Screen Type.resolution- Resolution of Screen on Device.refreshRate- Refresh Rate of Screen on Device.responceRate- Responce Rate of Screen on Device.
-
-
Method Detail
-
createDeviceObject
public void createDeviceObject()
After the Information is Provided the Object is created with its Attributes and Sent to the Controller so that it may be recorded in the Database.
-
getProduct
public Product getProduct()
Mutator to set the Widget Product Object that was created when the widget was created.- Returns:
- The product object the widget has created.
-
setSpeaker
public static void setSpeaker(SpeakerType speakerType)
Mutator to set the speaker type to create the specific product object.- Parameters:
speakerType- Speaker type selected from the user.
-
setMonitor
public static void setMonitor(MonitorType monitorType)
Mutator to set the monitor type for the specific product type.- Parameters:
monitorType- The monitor type selected from the user.
-
getDetails
public static java.lang.String[] getDetails()
Accessor for Issue Controller to fill in the String information from user input.- Returns:
- Empty array of String Information.
-
setDetails
public static void setDetails(java.lang.String[] info)
Mutator to set the [String] information from the additional product information window into the specific product type.- Parameters:
info- String array of information from Information window.
-
setDetails
public static void setDetails(int[] data)
Mutator to set the [Integer] information from the additional product information window into the specific product type.- Parameters:
data- Integer array of information from Information window.
-
getInfo
public static int[] getInfo()
Accessor for issue Controller to fill in the Integer information from user input.- Returns:
- Empty array of Integer information.
-
-