Enum Class UISizeControl
- All Implemented Interfaces:
Serializable, Comparable<UISizeControl>, Constable
Enum for UI size control, to centralize all size-related constants for the UI in one place. This allows for easy adjustments to the UI layout and ensures consistency across different components.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWidth of the container holding the attributed items, calculated as the image width plus some additional padding.Height of the image displayed for each attributed item.Width of the image displayed for each attributed item.Height of the container holding the filters on the right side of the main page, set to 2/3 of the pagination height.Width of the container holding the filters on the right side of the main page, set to half the width of the right side.Padding height for UI elements.Width of the left side of the main page, which contains the search results and filters.Total height of the main page.Height of the recently viewed items window, set to match the height of the filters container for consistency.Width of the recently viewed items window, set to 85% of the searched item container width for consistency.Spacing between elements within the right panel of a searched item.Width of the right side of the main page, which contains the filters and other controls.Height of the search bar at the top of the main page.Width of the search bar at the top of the main page.Height of the container holding the searched items, calculated as the pagination height minus some additional padding.Width of the container holding the searched items.Maximum width of the label displaying the name and other details of each attributed item, calculated as the panel width minus the image width and some additional padding.Spacing between pagination buttons.Height of the pagination controls for searched items, calculated as the main page height minus the search bar height and some additional padding.Width of the pagination controls for searched items.Height of each individual searched item panel.Spacing between individual searched item panels within the container.Width of each individual searched item panel, calculated as the container width minus padding on both sides.Spacing between individual searched item panels within the container.Height of the container holding similar items, set to 90% of the filters container width.Width of the container holding similar items, calculated as the sum of the filters container width, recently viewed window width, and additional padding.Padding width for UI elements. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe integer value associated with this enum constant, used for size control in the UI. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateUISizeControl(int value) Constructs aUISizeControlenum constant with the specified integer value. -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()Getter for the integer value associated with this enum constant.static UISizeControlReturns the enum constant of this class with the specified name.static UISizeControl[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HEIGHT_PADDING
Padding height for UI elements. -
WIDTH_PADDING
Padding width for UI elements. -
LEFT_SIDE_MAIN_PAGE_WIDTH
Width of the left side of the main page, which contains the search results and filters. -
RIGHT_SIDE_MAIN_PAGE_WIDTH
Width of the right side of the main page, which contains the filters and other controls. -
MAIN_PAGE_HEIGHT
Total height of the main page. -
SEARCH_BAR_WIDTH
Width of the search bar at the top of the main page. -
SEARCH_BAR_HEIGHT
Height of the search bar at the top of the main page. -
SEARCHED_ITEM_PAGINATION_WIDTH
Width of the pagination controls for searched items. -
SEARCHED_ITEM_PAGINATION_HEIGHT
Height of the pagination controls for searched items, calculated as the main page height minus the search bar height and some additional padding. -
SEARCHED_ITEM_CONTAINER_WIDTH
Width of the container holding the searched items. -
SEARCHED_ITEM_CONTAINER_HEIGHT
Height of the container holding the searched items, calculated as the pagination height minus some additional padding. -
SEARCHED_ITEM_PAGINATION_BUTTON_SPACING
Spacing between pagination buttons. -
SEARCHED_ITEM_SPACING
Spacing between individual searched item panels within the container. -
SEARCHED_ITEM_PANEL_WIDTH
Width of each individual searched item panel, calculated as the container width minus padding on both sides. -
SEARCHED_ITEM_PANEL_HEIGHT
Height of each individual searched item panel. -
SEARCHED_ITEM_PANEL_SPACING
Spacing between individual searched item panels within the container. -
RIGHT_ITEM_PANEL_SPACING
Spacing between elements within the right panel of a searched item. -
ATTRIBUTED_ITEM_IMAGE_WIDTH
Width of the image displayed for each attributed item. -
ATTRIBUTED_ITEM_IMAGE_HEIGHT
Height of the image displayed for each attributed item. -
ATTRIBUTED_ITEM_CONTAINER_WIDTH
Width of the container holding the attributed items, calculated as the image width plus some additional padding. -
SEARCHED_ITEM_LABEL_MAX_WIDTH
Maximum width of the label displaying the name and other details of each attributed item, calculated as the panel width minus the image width and some additional padding. -
FILTERS_CONTAINER_WIDTH
Width of the container holding the filters on the right side of the main page, set to half the width of the right side. -
FILTERS_CONTAINER_HEIGHT
Height of the container holding the filters on the right side of the main page, set to 2/3 of the pagination height. -
RECENTLY_VIEWED_WINDOW_WIDTH
Width of the recently viewed items window, set to 85% of the searched item container width for consistency. -
RECENTLY_VIEWED_WINDOW_HEIGHT
Height of the recently viewed items window, set to match the height of the filters container for consistency. -
SIMILAR_ITEMS_CONTAINER_WIDTH
Width of the container holding similar items, calculated as the sum of the filters container width, recently viewed window width, and additional padding. -
SIMILAR_ITEMS_CONTAINER_HEIGHT
Height of the container holding similar items, set to 90% of the filters container width.
-
-
Field Details
-
value
private final int valueThe integer value associated with this enum constant, used for size control in the UI.
-
-
Constructor Details
-
UISizeControl
private UISizeControl(int value) Constructs aUISizeControlenum constant with the specified integer value.- Parameters:
value- The integer value to associate with this enum constant, typically used for size control in the UI.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()Getter for the integer value associated with this enum constant.- Returns:
- The integer value that can be used for size control in the UI.
-