Package com.spinyowl.legui.component
Class Dialog
java.lang.Object
com.spinyowl.legui.component.Component
com.spinyowl.legui.component.Widget
com.spinyowl.legui.component.Dialog
- All Implemented Interfaces:
Serializable
Dialog component is component which extended from
Widget and have some additional
functionality. On show(Frame) method it added to new created Dialog.DialogLayer which
forbid underlying layers to receive mouse click and keyboard events.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDialog layer used to hold dialog window. -
Field Summary
FieldsFields inherited from class com.spinyowl.legui.component.Widget
DEFAULT_WIDGET_TITLE -
Constructor Summary
ConstructorsConstructorDescriptionDialog()Creates a dialog with default title text.Dialog(float width, float height) Creates a dialog with default title text and specified position and size.Creates a dialog with specified title text.Creates a dialog with specified title text and specified position and size.Creates a dialog with specified title text and specified position and size.Dialog(org.joml.Vector2f size) Creates a dialog with default title text and specified position and size. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Used to close dialog.voidUsed to show title on specified frame.Methods inherited from class com.spinyowl.legui.component.Widget
addWidgetCloseEventListener, applyStylesToContainer, equals, getCloseButton, getCloseButtonColor, getCloseIcon, getContainer, getMaximizeIcon, getMinimizeButton, getMinimizeIcon, getResizeButton, getTitle, getTitleContainer, getTitleHeight, getTitleTextState, getWidgetCloseEvents, hashCode, hide, initialize, isAscendible, isCloseable, isDraggable, isMinimizable, isMinimized, isResizable, isTitleEnabled, removeWidgetCloseEventListener, setAscendible, setCloseable, setCloseButtonColor, setCloseIcon, setContainer, setDraggable, setMaximizeIcon, setMinimizable, setMinimized, setMinimizeIcon, setResizable, setTitleEnabled, setTitleHeight, show, toStringMethods inherited from class com.spinyowl.legui.component.Component
add, add, addAll, clearChildComponents, containerIterator, contains, containsAll, count, forEach, getAbsolutePosition, getChildComponents, getFocusedStyle, getFrame, getHoveredStyle, getIntersector, getLayer, getListenerMap, getMetadata, getParent, getPosition, getPressedStyle, getSize, getStyle, getTabIndex, getTooltip, indexOfChild, intersects, isEmpty, isEnabled, isFocusable, isFocused, isHovered, isPressed, isTabFocusable, isVisible, keepRendering, keepRendering, parallelStream, remove, remove, removeAll, removeIf, setEnabled, setFocusable, setFocused, setHovered, setIntersector, setListenerMap, setParent, setPosition, setPosition, setPressed, setSize, setSize, setStyle, setTabFocusable, setTabIndex, setTooltip, stream
-
Field Details
-
DEFAULT_DIALOG_TITLE
Default dialog title.- See Also:
-
-
Constructor Details
-
Dialog
public Dialog()Creates a dialog with default title text. -
Dialog
public Dialog(float width, float height) Creates a dialog with default title text and specified position and size.- Parameters:
width- width of component.height- height of component.
-
Dialog
public Dialog(org.joml.Vector2f size) Creates a dialog with default title text and specified position and size.- Parameters:
size- size of component.
-
Dialog
Creates a dialog with specified title text.- Parameters:
title- dialog text.
-
Dialog
Creates a dialog with specified title text and specified position and size.- Parameters:
title- dialog text.width- width of component.height- height of component.
-
Dialog
Creates a dialog with specified title text and specified position and size.- Parameters:
title- widget text.size- size of component.
-
-
Method Details
-
show
Used to show title on specified frame.- Parameters:
frame- frame to show dialog.
-
getDialogLayer
-
close
public void close()Used to close dialog.
-