Widget.NotifyEvent| Modifier and Type | Field and Description |
|---|---|
protected boolean |
scroll |
COMMAND_KEY_ENTER, COMMAND_MOUSE_CLICK, COMMAND_UNKNOWN, culled, fontChangeId, fontName, fontSize, lastFont, lastFontSize, RENDER_BACKGROUND, RENDER_FOREGROUND| Constructor and Description |
|---|
Slider() |
add, addNoNotify, dispatchKeyEvent, dispatchMouseExited, dispatchMouseMoved, dispatchMousePressed, dispatchMouseReleased, dispatchMouseWheelMoved, doMoveOpti, find, focusableTraversal, focusableTraversalDown, getNumWidgets, getWidget, getWidget, hasMenuPopupVisible, indexOf, insert, isOver, isOverlappingRendering, onChildChanged, remove, remove, removeAll, removeAll, renderGL, renderGLAfterBackground, resolveLayout, setLayout, traverse, update, updateChilds, updateMinViewportaddActionListener, addAnimator, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bindTo, contains, delayNotifyEvent, dispatchNotifyEvent, dispatchShowPopup, find, fireAction, fireAnimator, fireChange, fireKeyEvent, fireMouseEvent, focusableTraversalUp, focusTraversal, forceSize, getCurrentBackground, getCurrentBackgroundColor, getFocusable, getFontSizeForRender, getHeightOnScreen, getInsets, getInsetsHeight, getInsetsWidth, getLocation, getLocationOnScreen, getLocationXOnScreen, getLocationYOnScreen, getMenuPopup, getMinHeightLayout, getMinHeightWidget, getMinWidthLayout, getMinWidthWidget, getPopup, getPreferredHeight, getPreferredWidth, getRefBackground, getRoot, getTooltip, getViewportBorderBottom, getViewportBorderHeight, getViewportBorderLeft, getViewportBorderWidth, getWidthOnScreen, hasFocus, hasKeyEventFocus, isBackgroundOpaque, isDownOrMouseDown, isFocusable, isFree, isMouseOverOrDown, isRenderingAndEnabled, onActionPerformed, onDiscardState, onFocusChanged, onFontChanged, onKeyReleased, onMouseClicked, onMouseDownDragUp, onMouseDragged, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onMove, onParentChanged, onStateChanged, onStyleChanged, refreshFocus, removeActionListener, removeAllActionListener, removeAnimator, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, render, requestFocus, resolveBlockEvents, resolveLocationRef, setAutoPack, setAutoPackHeight, setAutoPackWidth, setBackgroundColor, setDown, setEnabled, setFocusable, setInsets, setInsets, setIsBackground, setLocation, setLocation, setLocationAnchor, setLocationRef, setLocationRef2, setLocationRefAnchor, setMaxSize, setMaxSize, setMenuPopup, setMinSize, setMinSize, setMinSizeLayout, setParent, setPopup, setSize, setSize, setSizeOnScreen, setStyle, setTooltip, setVisible, toString, triggerChildsUpdate, uiFireAction, updateListenersForPositionprotected void notifyEvent(UI ui, Widget.NotifyEvent event)
notifyEvent in class Panelprotected boolean onKeyPressed(UI ui, KeyEvent e)
onKeyPressed in class Widgetprotected boolean onMouseWheelMoved(UI ui, MouseWheelEvent e)
onMouseWheelMoved in class Widgetpublic void setOrientation(Orientation orientation)
public final Orientation getOrientation()
public final float getPercent()
public final void setPercent(float newPercent)
newPercent - set value in range [0;1]protected void onSet()
public final float getValue()
getMaxValue()public final void setValue(float newValueInt)
public final void setMinValue(int minValue)
minValue - maximum integer valueprotected void onMinSet()
public final int getMinValue()
public final void setMaxValue(int maxValue)
maxValue - maximum integer valueprotected void onMaxSet()
public final int getMaxValue()
public final void setStep(int step)
step - when pressing buttonpublic final int getStep()
public final boolean isValueAdjusting()
public final void setLockOnAdjusting(boolean lockOnAdjusting)
lockOnAdjusting - true to lock external value set when user is adjustingpublic final boolean getLockOnAdjusting()
setLockOnAdjusting(boolean)public final void setUseAdjustableButton(boolean useAdjustableButton)
useAdjustableButton - true to show adjustable buttonpublic final boolean isUseAdjustableButton()
setUseAdjustableButton(boolean)public final void setEditable(boolean editable)
public final boolean isEditable()
public final Sprite getSlideBackground()
public final void setSlideBackground(Sprite slideBackground)
slideBackground - public final Sprite getSlideBackgroundPress()
public final void setSlideBackgroundPress(Sprite slideBackgroundPress)
slideBackgroundPress - public final Sprite getSlideBackgroundFocus()
public final void setSlideBackgroundFocus(Sprite slideBackgroundFocus)
slideBackgroundFocus - public void setDisableFade(float disableFade)
public final Sprite getSlide()
public final void setSlide(Sprite slide)
slide - public final Sprite getSlideOver()
public final void setSlideOver(Sprite slideOver)
slideOver - public final Sprite getSlideFocus()
public final void setSlideFocus(Sprite slideFocus)
slideFocus - public final Sprite getSlideExtra()
public final void setSlideExtra(Sprite slideExtra)
slideExtra - protected void setVisiblePortion(int visiblePortion)
protected int getVisiblePortion()
public final boolean addChangeListener(ChangeListener l)
addChangeListener in class Widgetl - listener to register to this widgetpublic final boolean removeChangeListener(ChangeListener listener)
removeChangeListener in class WidgetBonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com