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 TypeFieldDescriptionint
int
final Table
boolean
final SelectBox.SelectBoxStyle
final TextField.TextFieldStyle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
hide()
Put under the main labelstatic ItemCreationOverlay
i()
boolean
If true, won't be hidden by hideAllComponents() - useful for debug overlaysvoid
void
setInPlaceEditingItem
(Item originalItem, ObjectConsumer<Item> changeListener, boolean typeChangeAllowed) void
show()
void
void
show
(Item item, ObjectConsumer<Item> changeListener, boolean typeChangeAllowed) textField
(String text, float width, ObjectConsumer<String> changeListener) textField
(String text, float width, ObjectConsumer<String> changeListener, boolean finalizeRow) textField
(String text, ObjectConsumer<String> changeListener) toggle
(boolean addToForm, String text, boolean enabled, ObjectConsumer<Boolean> changeListener) toggle
(String text, boolean enabled, ObjectConsumer<Boolean> changeListener) void
void
Methods 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.UiComponent
If true, won't be hidden by hideAllComponents() - useful for debug overlays- Specified by:
isPersistent
in interfaceUiManager.UiComponent
- Overrides:
isPersistent
in classUiManager.UiComponent.Adapter
-
hintLabel
Put under the main label -
label
-
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
-
textField
public TextFieldXPlatform textField(String text, float width, ObjectConsumer<String> changeListener) -
textField
public TextFieldXPlatform textField(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() -
show
-
show
-