Package velox.gui.utils
Class GuiUtils
java.lang.Object
velox.gui.utils.GuiUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddoForEachComponentInPanel(JPanel panel, Consumer<Component> action) Calls action with each component in the panel including the panel itselfstatic GridBagConstraintsgetCommonGbc(int x, int y, int width) static voidsetPanelEnabled(JPanel panel, Boolean isEnabled) Enables or disables all elements within the panelstatic voidsetupTruncatedTextTooltip(JComponent component, String displayedName) static StringwrapInHtml(String text)
-
Constructor Details
-
GuiUtils
public GuiUtils()
-
-
Method Details
-
setPanelEnabled
Enables or disables all elements within the panel- Parameters:
panel-isEnabled-
-
doForEachComponentInPanel
Calls action with each component in the panel including the panel itself- Parameters:
panel-action-
-
getCommonGbc
-
wrapInHtml
-
setupTruncatedTextTooltip
-