Class PrometheusActionButtons
java.lang.Object
io.github.tonywasher.joceanus.prometheus.ui.PrometheusActionButtons
- All Implemented Interfaces:
OceanusEventRegistrar.OceanusEventProvider<PrometheusUIEvent>,TethysUIComponent
public class PrometheusActionButtons
extends Object
implements OceanusEventRegistrar.OceanusEventProvider<PrometheusUIEvent>, TethysUIComponent
Action buttons.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrometheusActionButtons(TethysUIFactory<?> pFactory, PrometheusEditSet pUpdateSet) Constructor.PrometheusActionButtons(TethysUIFactory<?> pFactory, PrometheusEditSet pUpdateSet, boolean pHorizontal) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionObtain registration object for listeners.Obtain the underlying component (if any).voidsetEnabled(boolean bEnabled) Set Enabled status.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.tonywasher.joceanus.tethys.api.base.TethysUIComponent
getBorderPadding, getBorderTitle, getId, getNode, setBorderPadding, setBorderTitle, setPreferredHeight, setPreferredWidth, setVisible
-
Field Details
-
STRUT_LENGTH
protected static final int STRUT_LENGTHStrut width.- See Also:
-
-
Constructor Details
-
PrometheusActionButtons
Constructor.- Parameters:
pFactory- the GUI factorypUpdateSet- the update set
-
PrometheusActionButtons
public PrometheusActionButtons(TethysUIFactory<?> pFactory, PrometheusEditSet pUpdateSet, boolean pHorizontal) Constructor.- Parameters:
pFactory- the GUI factorypUpdateSet- the update setpHorizontal- is this horizontal panel?
-
-
Method Details
-
getUnderlying
Description copied from interface:TethysUIComponentObtain the underlying component (if any).- Specified by:
getUnderlyingin interfaceTethysUIComponent- Returns:
- the underlying component
-
getEventRegistrar
Description copied from interface:OceanusEventRegistrar.OceanusEventProviderObtain registration object for listeners.- Specified by:
getEventRegistrarin interfaceOceanusEventRegistrar.OceanusEventProvider<PrometheusUIEvent>- Returns:
- the registrar
-
setEnabled
public void setEnabled(boolean bEnabled) Description copied from interface:TethysUIComponentSet Enabled status.- Specified by:
setEnabledin interfaceTethysUIComponent- Parameters:
bEnabled- true/false
-