Class InventoryController
java.lang.Object
app.controller.manager.InventoryController
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordprivate static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InventoryDAOprivate javafx.scene.control.TableView<InventoryItem> private javafx.scene.control.TableColumn<InventoryItem, String> private booleanprivate javafx.scene.control.TableColumn<InventoryItem, BigDecimal> private javafx.scene.control.TableColumn<InventoryItem, BigDecimal> private javafx.scene.control.TableColumn<InventoryItem, BigDecimal> private booleanprivate javafx.scene.control.TableColumn<InventoryItem, String> private static final intprivate javafx.scene.control.DatePickerprivate javafx.scene.control.Buttonprivate javafx.scene.layout.HBoxprivate javafx.scene.control.Labelprivate longprivate javafx.scene.control.DatePickerprivate javafx.concurrent.Task<Map<String, BigDecimal>> private javafx.scene.control.ComboBox<InventoryController.UsageTimeRange> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddItem()private voidprivate voidprivate voidprivate BigDecimalreadDecimal(String input, String fieldName, int decimalPlaces, String maximum) private InventoryItemreadInventoryForm(javafx.scene.control.TextField nameField, javafx.scene.control.TextField quantityField, javafx.scene.control.TextField unitField, javafx.scene.control.TextField costField, javafx.scene.control.TextField restockField) private voidprivate voidprivate voidprivate voidshowGraph(boolean show) private voidshowMessage(javafx.scene.control.Alert.AlertType type, String title, String message) private void
-
Field Details
-
inventoryTable
-
itemColumn
-
quantityColumn
-
unitColumn
-
purchaseCostColumn
-
restockLevelColumn
-
usageGraphButton
private javafx.scene.control.Button usageGraphButton -
usageChart
-
usageTimeRangeSelector
-
usageStartDatePicker
private javafx.scene.control.DatePicker usageStartDatePicker -
usageEndDatePicker
private javafx.scene.control.DatePicker usageEndDatePicker -
usageRangeErrorLabel
private javafx.scene.control.Label usageRangeErrorLabel -
usageRangeControls
private javafx.scene.layout.HBox usageRangeControls -
USAGE_GRAPH_ITEMS
private static final int USAGE_GRAPH_ITEMS- See Also:
-
inventoryDAO
-
loading
private boolean loading -
showingGraph
private boolean showingGraph -
usageTask
-
usageRequestId
private long usageRequestId
-
-
Constructor Details
-
InventoryController
public InventoryController()
-
-
Method Details
-
initialize
private void initialize() -
refreshInventory
private void refreshInventory() -
toggleUsageGraph
private void toggleUsageGraph() -
showGraph
private void showGraph(boolean show) -
onUsageRangeChanged
private void onUsageRangeChanged() -
selectedUsageDateRange
-
refreshUsageChart
private void refreshUsageChart() -
restockSelected
private void restockSelected() -
showMessage
-
addItem
private void addItem() -
readInventoryForm
private InventoryItem readInventoryForm(javafx.scene.control.TextField nameField, javafx.scene.control.TextField quantityField, javafx.scene.control.TextField unitField, javafx.scene.control.TextField costField, javafx.scene.control.TextField restockField) -
readDecimal
-
editSelected
private void editSelected()
-