Interface TethysUIScrollButtonManager<T>
- Type Parameters:
T- the object type
- All Superinterfaces:
OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>,TethysUIComponent,TethysUIControl.TethysUIScrollButton<T>
- All Known Implementing Classes:
TethysUICoreScrollButtonManager
public interface TethysUIScrollButtonManager<T>
extends TethysUIControl.TethysUIScrollButton<T>, OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>, TethysUIComponent
ScrollButton Manager.
Provides the following events.
- NEWVALUE
- fired when a new value is selected.
Detail is new value - EDITFOCUSLOST
- fired when the dialog is cancelled without a value being selected.
-
Method Summary
Modifier and TypeMethodDescriptiongetMenu()Obtain menu.getValue()Obtain value.Obtain value class.voidhandleMenuRequest.voidRefresh Text from item.voidsetFixedText(String pText) Set fixed text for the button.voidSet Null Margins.voidsetSimpleDetails(TethysUIIconId pId, int pWidth, String pToolTip) Set simple details.voidSet the value.voidSet the value.Methods inherited from interface io.github.tonywasher.joceanus.oceanus.event.OceanusEventRegistrar.OceanusEventProvider
getEventRegistrarMethods inherited from interface io.github.tonywasher.joceanus.tethys.api.base.TethysUIComponent
getBorderPadding, getBorderTitle, getId, getNode, getUnderlying, setBorderPadding, setBorderTitle, setEnabled, setPreferredHeight, setPreferredWidth, setVisibleMethods inherited from interface io.github.tonywasher.joceanus.tethys.api.control.TethysUIControl.TethysUIScrollButton
setMenuConfigurator
-
Method Details
-
getValue
T getValue()Obtain value.- Returns:
- the value
-
getValueClass
Obtain value class.- Returns:
- the class
-
getMenu
TethysUIScrollMenu<T> getMenu()Obtain menu.- Returns:
- the menu
-
setValue
Set the value.- Parameters:
pValue- the value to set.
-
setFixedText
Set fixed text for the button.- Parameters:
pText- the fixed text.
-
setValue
Set the value.- Parameters:
pValue- the value to set.pName- the display name
-
setSimpleDetails
Set simple details.- Parameters:
pId- the mapped IconIdpWidth- the icon widthpToolTip- the toolTip for value
-
setNullMargins
void setNullMargins()Set Null Margins. -
refreshText
void refreshText()Refresh Text from item. -
handleMenuRequest
void handleMenuRequest()handleMenuRequest.
-