Package velox.gui.utils
Class GuiUtils
java.lang.Object
velox.gui.utils.GuiUtils
public class GuiUtils
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGuiUtils.ResetControlPanelCallbacks -
Constructor Summary
Constructors Constructor Description GuiUtils() -
Method Summary
Modifier and Type Method Description static voiddoForEachComponentInPanel(javax.swing.JPanel panel, java.util.function.Consumer<java.awt.Component> action)Calls action with each component in the panel including the panel itselfstatic java.awt.GridBagConstraintsgetCommonGbc(int x, int y, int width)static velox.api.layer1.common.Utils.Pair<javax.swing.JPanel,javax.swing.JScrollPane>getPanelResetPoints()static javax.swing.JPanelgetResetControlPanel(GuiUtils.ResetControlPanelCallbacks callbacks, javax.swing.JPanel panelResetPoints, boolean isSessionStartTimeEnabled)static voidsetPanelEnabled(javax.swing.JPanel panel, java.lang.Boolean isEnabled)Enables or disables all elements within the panel
-
Constructor Details
-
GuiUtils
public GuiUtils()
-
-
Method Details
-
setPanelEnabled
public static void setPanelEnabled(javax.swing.JPanel panel, java.lang.Boolean isEnabled)Enables or disables all elements within the panel- Parameters:
panel-isEnabled-
-
doForEachComponentInPanel
public static void doForEachComponentInPanel(javax.swing.JPanel panel, java.util.function.Consumer<java.awt.Component> action)Calls action with each component in the panel including the panel itself- Parameters:
panel-action-
-
getPanelResetPoints
public static velox.api.layer1.common.Utils.Pair<javax.swing.JPanel,javax.swing.JScrollPane> getPanelResetPoints() -
getResetControlPanel
public static javax.swing.JPanel getResetControlPanel(GuiUtils.ResetControlPanelCallbacks callbacks, javax.swing.JPanel panelResetPoints, boolean isSessionStartTimeEnabled) -
getCommonGbc
public static java.awt.GridBagConstraints getCommonGbc(int x, int y, int width)
-