Package com.prineside.tdi2.ui.shared
Class ItemCreationOverlay
java.lang.Object
com.prineside.tdi2.managers.UiManager.UiComponent.Adapter
com.prineside.tdi2.ui.shared.ItemCreationOverlay
- All Implemented Interfaces:
Disposable,UiManager.UiComponent
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.prineside.tdi2.managers.UiManager.UiComponent
UiManager.UiComponent.Adapter -
Field Summary
FieldsModifier and TypeFieldDescriptionintintfinal Tablebooleanfinal SelectBox.SelectBoxStylefinal TextField.TextFieldStyle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhide()Put under the main labelstatic ItemCreationOverlayi()booleanIf true, won't be hidden by hideAllComponents() - useful for debug overlayslabelEndRow(String text, boolean finalizeRow) voidvoidsetInPlaceEditingItem(Item originalItem, ObjectConsumer<Item> changeListener, boolean typeChangeAllowed) voidshow()voidshowForItem(Item item) voidshowForItemListenable(Item item, ObjectConsumer<Item> changeListener, boolean typeChangeAllowed) textField(String text, ObjectConsumer<String> changeListener) textFieldEndRow(String text, float width, ObjectConsumer<String> changeListener, boolean finalizeRow) textFieldOfWidth(String text, float width, ObjectConsumer<String> changeListener) toggle(boolean addToForm, String text, boolean enabled, ObjectConsumer<Boolean> changeListener) toggle(String text, boolean enabled, ObjectConsumer<Boolean> changeListener) voidvoidMethods inherited from class com.prineside.tdi2.managers.UiManager.UiComponent.Adapter
dispose, postRender, preRender
-
Field Details
-
selectBoxStyle
-
textFieldStyle
-
form
-
currentItem
-
changeListener
-
originalItem
-
inPlaceItemTypeChangeAllowed
public boolean inPlaceItemTypeChangeAllowed -
customIntA
public int customIntA -
customIntB
public int customIntB -
customObject
-
-
Constructor Details
-
ItemCreationOverlay
public ItemCreationOverlay()
-
-
Method Details
-
i
-
isPersistent
public boolean isPersistent()Description copied from interface:UiManager.UiComponentIf true, won't be hidden by hideAllComponents() - useful for debug overlays- Specified by:
isPersistentin interfaceUiManager.UiComponent- Overrides:
isPersistentin classUiManager.UiComponent.Adapter
-
hintLabel
Put under the main label -
labelEndRow
-
label
-
toggle
public LabelToggleButton toggle(String text, boolean enabled, ObjectConsumer<Boolean> changeListener) -
toggle
public LabelToggleButton toggle(boolean addToForm, String text, boolean enabled, ObjectConsumer<Boolean> changeListener) -
selectBox
-
textFieldOfWidth
public TextFieldXPlatform textFieldOfWidth(String text, float width, ObjectConsumer<String> changeListener) -
textFieldEndRow
public TextFieldXPlatform textFieldEndRow(String text, float width, ObjectConsumer<String> changeListener, boolean finalizeRow) -
textField
-
updateItemIcon
public void updateItemIcon() -
updateForm
public void updateForm() -
setInPlaceEditingItem
public void setInPlaceEditingItem(Item originalItem, ObjectConsumer<Item> changeListener, boolean typeChangeAllowed) -
hide
public void hide() -
show
public void show() -
showForItem
-
showForItemListenable
public void showForItemListenable(Item item, ObjectConsumer<Item> changeListener, boolean typeChangeAllowed)
-