Element, be.yildizgames.common.util.RegisterableButton, ButtonList, CheckBox, Container, ContainerChild, Image, InputBox, ProgressBar, TextLineBaseContainerChild, BaseProgressBar, BaseWidget, ComplexProgressBar, EmptyRectangleImage, RectangleProgressBar, SimpleButton, SimpleCheckBox, SimpleContainer, SimpleImage, SimpleInputBox, SimpleProgressBar, SimpleTextArea, SimpleTextLine, TabContainerpublic interface Widget extends Element
Element.Alignment| Modifier and Type | Method | Description |
|---|---|---|
void |
addEmptyZone(be.yildizgames.common.geometry.Rectangle zone) |
Add a zone to ignore when checking if the container contains the mouse,
if the mouse position is inside this zone, it will be considered as
outside of the container.
|
void |
addKeyboardListener(KeyboardListener listener) |
Add a new KeyboardListener on this widget and set the widget focusable.
|
void |
addMouseDoubleLeftClickListener(MouseDoubleLeftClickListener listener) |
Add a new MouseDoubleClickListener on this widget.
|
void |
addMouseDragListener(MouseDragListener listener) |
Add a new MouseDragListener on this widget.
|
void |
addMouseLeftClickListener(MouseLeftClickListener listener) |
Add a new MouseClickListener on this widget.
|
void |
addMouseMoveListener(MouseMoveListener listener) |
Add a new MouseMoveListener on this widget.
|
void |
addMouseReleaseListener(MouseReleaseListener listener) |
Add a new MouseReleaseClickListener on this widget.
|
void |
addMouseWheelListener(MouseWheelListener listener) |
Add a new MouseWheelListener on this widget.
|
void |
addOnMouseOverListener(OnMouseOverListener listener) |
Add a new OnMouseOverListener on this widget.
|
void |
addSpecialKeyListener(SpecialKeyPressedListener listener) |
Add a new SpecialKeyListener on this widget and set the widget focusable.
|
void |
align(Element.Alignment alignment) |
Align the widget
|
boolean |
contains(int x,
int y) |
|
boolean |
contains(MousePosition position) |
Check if a point in contained in this container.
|
void |
focus(boolean b) |
|
int |
getAbsoluteLeft() |
Give the absolute left position instead of relative from parent.
|
int |
getAbsoluteTop() |
Give the absolute top position instead of relative from parent.
|
void |
highlight(boolean b) |
|
boolean |
isFocusable() |
|
void |
playAnimation(String animation) |
|
void |
registerAnimation(BaseAnimationGui anim) |
|
void |
removeAllClickListeners() |
Clear the list of all click listeners.
|
void |
stopAnimation(String name) |
addToLeft, addToPosition, addToTop, getBottom, getCoordinates, getHeight, getLeft, getRight, getTop, getWidth, hide, isVisible, resetVirtualHeight, setCoordinates, setHeight, setLeft, setLeft, setLeft, setLeft, setPosition, setPosition, setPosition, setSize, setSize, setTop, setTop, setTop, setTop, setVirtualHeight, setVisible, setWidth, showvoid addMouseLeftClickListener(MouseLeftClickListener listener)
listener - Listener to add.void addMouseDoubleLeftClickListener(MouseDoubleLeftClickListener listener)
listener - Listener to add.void addMouseReleaseListener(MouseReleaseListener listener)
listener - Listener to add.void removeAllClickListeners()
void addKeyboardListener(KeyboardListener listener)
listener - Listener to add.void addSpecialKeyListener(SpecialKeyPressedListener listener)
listener - Listener to add.void addMouseMoveListener(MouseMoveListener listener)
listener - Listener to add.void addMouseWheelListener(MouseWheelListener listener)
listener - Listener to add.void addMouseDragListener(MouseDragListener listener)
listener - Listener to add.void addOnMouseOverListener(OnMouseOverListener listener)
listener - Listener to add.boolean contains(MousePosition position)
position - Point coordinates.true if the point is contained in this container,
false otherwise.boolean contains(int x,
int y)
void addEmptyZone(be.yildizgames.common.geometry.Rectangle zone)
zone - Empty zone.void align(Element.Alignment alignment)
alignment - New alignment value.int getAbsoluteLeft()
int getAbsoluteTop()
void registerAnimation(BaseAnimationGui anim)
void playAnimation(String animation)
void stopAnimation(String name)
void focus(boolean b)
boolean isFocusable()
void highlight(boolean b)
Copyright © 2014–2018. All rights reserved.