public class Panel extends Widget
Widget.NotifyEvent| Constructor and Description |
|---|
Panel() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Widget widget)
Add a widget in the container
|
<W extends Widget> |
find(java.lang.String name) |
boolean |
find(Widget widget) |
ILayout |
getLayout() |
int |
getNumWidgets() |
<W extends Widget> |
getWidget(int index) |
<W extends Widget> |
getWidget(java.lang.String name) |
boolean |
isAccurateMouseOver() |
boolean |
isOver(int x,
int y) |
boolean |
isOverlappingRendering() |
boolean |
keyPressed(UI ui,
KeyEvent e) |
boolean |
keyReleased(UI ui,
KeyEvent e) |
boolean |
mouseDragged(UI ui,
MouseEvent e,
boolean catched) |
boolean |
mouseMoved(UI ui,
MouseEvent e,
boolean catched) |
boolean |
mousePressed(UI ui,
MouseEvent e) |
boolean |
mouseReleased(UI ui,
MouseEvent e) |
boolean |
mouseWheelMoved(UI ui,
MouseWheelEvent e) |
boolean |
remove(Widget widget)
Remove a widget in the container
|
void |
removeAll() |
void |
setAccurateMouseOver(boolean accurateMouseOver) |
void |
setLayout(ILayout layout) |
void |
setOverlappingRendering(boolean overlappingRendering) |
void |
update(UI ui,
long timePassedMS)
Widget update. |
addAnimator, addFocusListener, addKeyListener, addMouseFocusListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, focusTraversal, forceSize, getBackground, getBackgroundBorder, getBackgroundColor, getBackgroundFocus, getBackgroundOver, getBackgroundPress, getBorderSize, getConstraint, getDisableFade, getHeight, getHeightOnScreen, getInsets, getInsetsBottom, getInsetsHeight, getInsetsLeft, getInsetsRight, getInsetsTop, getInsetsWidth, getLocation, getLocationAnchor, getLocationOnScreen, getLocationRef, getLocationRef2, getLocationRefAnchor, getLocationX, getLocationXOnScreen, getLocationY, getLocationYOnScreen, getMaxHeight, getMaxWidth, getMenuPopup, getMinHeight, getMinHeightWidget, getMinWidth, getMinWidthWidget, getName, getOpacity, getParent, getPopup, getRoot, getStyle, getTooltip, getViewport, getViewportInternal, getWidth, getWidthOnScreen, hasFocus, isAutoPackHeight, isAutoPackWidth, isEnabled, isEnabledHerited, isEventsOnExternalDrag, isExternalDrag, isFocusable, isMouseDown, isMouseOver, isMouseOverOrDown, isVisible, isVisibleAndEnabledHerited, isVisibleHerited, mouseClicked, mouseEntered, mouseExited, refreshFocus, removeAnimator, removeFocusListener, removeKeyListener, removeMouseFocusListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, render, requestFocus, setAutoPack, setAutoPackHeight, setAutoPackWidth, setBackground, setBackgroundBorder, setBackgroundColor, setBackgroundFocus, setBackgroundOver, setBackgroundPress, setBorderSize, setCatchAllEvents, setDisableFade, setEnabled, setEventsOnExternalDrag, setExternalDrag, setFocusable, setFocusOwner, setInsets, setInsets, setLocation, setLocation, setLocationAnchor, setLocationAndAnchorInViewport, setLocationRef, setLocationRef2, setLocationRefAnchor, setMaxSize, setMaxSize, setMenuPopup, setMinSize, setMinSize, setName, setOpacity, setPopup, setSize, setSize, setStyle, setTooltip, setVisible, toString, uiFireActionpublic void update(UI ui, long timePassedMS)
WidgetWidget update. Occures before rendering to compute current states and absolute positioning.public final boolean isOverlappingRendering()
Widget has overlapping rendering elementpublic final void setOverlappingRendering(boolean overlappingRendering)
public <W extends Widget> W find(java.lang.String name)
public boolean find(Widget widget)
public boolean isOver(int x,
int y)
public boolean keyPressed(UI ui, KeyEvent e)
keyPressed in class Widgetpublic boolean keyReleased(UI ui, KeyEvent e)
keyReleased in class Widgetpublic boolean mousePressed(UI ui, MouseEvent e)
mousePressed in class Widgetpublic boolean mouseReleased(UI ui, MouseEvent e)
mouseReleased in class Widgetpublic boolean mouseMoved(UI ui, MouseEvent e, boolean catched)
mouseMoved in class Widgetpublic boolean mouseDragged(UI ui, MouseEvent e, boolean catched)
mouseDragged in class Widgetpublic boolean mouseWheelMoved(UI ui, MouseWheelEvent e)
mouseWheelMoved in class Widgetpublic boolean add(Widget widget)
widget - widget to addpublic boolean remove(Widget widget)
widget - widget to removepublic void removeAll()
public final int getNumWidgets()
public final <W extends Widget> W getWidget(int index)
index - index of the widget in the containerpublic final <W extends Widget> W getWidget(java.lang.String name)
name - name of the widget to getpublic void setLayout(ILayout layout)
layout - new layoutpublic final void setAccurateMouseOver(boolean accurateMouseOver)
public final boolean isAccurateMouseOver()
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com