Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- addPanels(List<Order>, AsyncResult<WebSocket>) - Method in class application.View
-
It repaints the order panels based on the received data array
- application - package application
- application.schema - package application.schema
C
- code() - Method in record class application.schema.Response
-
Returns the value of the
code
record component. - createJsonRequest(String, JsonObject) - Static method in class application.schema.Request
- customerEmail() - Method in record class application.schema.Order
-
Returns the value of the
customerEmail
record component.
D
- data() - Method in record class application.schema.Response
-
Returns the value of the
data
record component.
E
- equals(Object) - Method in record class application.schema.Item
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class application.schema.Order
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class application.schema.OrderItem
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class application.schema.Response
-
Indicates whether some other object is "equal to" this one.
G
- GET_ALL_ORDERS - Static variable in class application.Message
-
To ask the server for all the orders
H
- hashCode() - Method in record class application.schema.Item
-
Returns a hash code value for this object.
- hashCode() - Method in record class application.schema.Order
-
Returns a hash code value for this object.
- hashCode() - Method in record class application.schema.OrderItem
-
Returns a hash code value for this object.
- hashCode() - Method in record class application.schema.Response
-
Returns a hash code value for this object.
I
- isCodeOk() - Method in record class application.schema.Response
-
It says if the server response is ok based on its code.
- isServerNotAvailable() - Method in record class application.schema.Response
-
It says if the server is not available based on the message of the response.
- item() - Method in record class application.schema.OrderItem
-
Returns the value of the
item
record component. - Item - Record Class in application.schema
-
Item schema
- Item(String) - Constructor for record class application.schema.Item
-
Creates an instance of a
Item
record class. - items() - Method in record class application.schema.Order
-
Returns the value of the
items
record component.
M
- main(String[]) - Static method in class application.Main
-
This class starts the Employee Application GUI and the websocket communication with the server
- Main - Class in application
-
application.Main Class
- Main() - Constructor for class application.Main
- message() - Method in record class application.schema.Response
-
Returns the value of the
message
record component. - Message - Class in application
-
Interface for the different messages the Employee Application sends to the server.
N
- name() - Method in record class application.schema.Item
-
Returns the value of the
name
record component.
O
- Order - Record Class in application.schema
-
Order Schema
- Order(String, String, int, String, String, List<OrderItem>) - Constructor for record class application.schema.Order
-
Creates an instance of a
Order
record class. - OrderCard - Class in application
-
Graphic Panel Representation for an Order
- OrderCard(Order, AsyncResult<WebSocket>, Color) - Constructor for class application.OrderCard
-
application.OrderCard constructor
- OrderItem - Record Class in application.schema
-
OrderItem schema
- OrderItem(Item, int) - Constructor for record class application.schema.OrderItem
-
Creates an instance of a
OrderItem
record class.
P
- price() - Method in record class application.schema.Order
-
Returns the value of the
price
record component. - PUT_ORDER - Static variable in class application.Message
-
To ask the server to update the order with the provided information
Q
- quantity() - Method in record class application.schema.OrderItem
-
Returns the value of the
quantity
record component.
R
- Request - Class in application.schema
-
This utility class allows to create a request for the server.
- Response - Record Class in application.schema
-
This class represents the response, a message received from the server.
- Response(String, int, List<Order>) - Constructor for record class application.schema.Response
-
Creates an instance of a
Response
record class.
S
- setMessageLabel(String) - Method in class application.View
-
It repaints the label message based on the received message
- start() - Method in class application.WebSocketConnection
- state() - Method in record class application.schema.Order
-
Returns the value of the
state
record component.
T
- toString() - Method in record class application.schema.Item
-
Returns a string representation of this record class.
- toString() - Method in record class application.schema.Order
-
Returns a string representation of this record class.
- toString() - Method in record class application.schema.OrderItem
-
Returns a string representation of this record class.
- toString() - Method in record class application.schema.Response
-
Returns a string representation of this record class.
- type() - Method in record class application.schema.Order
-
Returns the value of the
type
record component.
V
- View - Class in application
-
application.Main GUI Frame
- View() - Constructor for class application.View
-
application.Main GUI Frame Constructor
W
- WebSocketConnection - Class in application
-
This class is in charge of connecting to the server and handling the GUI update when it receives messages from the server.
- WebSocketConnection(View) - Constructor for class application.WebSocketConnection
-
Class Constructor
_
- _id() - Method in record class application.schema.Order
-
Returns the value of the
_id
record component.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form