public class ScrollableListImpl extends ScrollableList<ChuiOutputManager>
Widget.ZOrderClass
box
insets, location, LOG, mousePtr, nativeInsets, physicalLocation
Constructor and Description |
---|
ScrollableListImpl(ComboBox<ChuiOutputManager> box,
ListModel<java.lang.String> model)
Create component using given configuration and data model.
|
Modifier and Type | Method and Description |
---|---|
protected int |
calculateScrollYPosition()
Calculate the scroll Y position based on the current state.
|
void |
draw()
Draws this component.
|
void |
drawCaret()
Sets position of terminal's cursor to the first char of the combo-box.
|
void |
requestFocus()
Request focus.
|
void |
scroll(java.lang.Integer newXPosition,
java.lang.Integer newYPosition)
Directs the widget to scroll to the specified X and Y positions.
|
protected void |
setTopRow(int index)
Set item number to be displayed on the top of the drop-down list.
|
getBox, getCurrentRow, getFirstCharSelection, getItemText, getStartStringSelection, isScrollPopupSupported, minimumSize, processKeyEvent
addScrollListener, addSelectionListener, allowDeselect, clear, currentRow, deselect, dimension, ensureRowVisible, ensureRowVisible, first, getColumns, getScrollDimension, getScrollStep, getVisibleDimension, height, index, model, postScrollEvent, processKey, redraw, select, select, selected, selection, selectionMode, selectItem, setColumns, setSelectionMode, setVisibleRows, shiftCurrentRow, value, visibleRows, width
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, config, createMouseHoverAction, deactivateDirectManipulation, debug, destroy, disable, displayPhysicalLocation, enable, enclosingFrame, findMouseSource, focusTraversable, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextWidth, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hidden, hide, highlighted, ignoreAction, insets, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isFocusable, isHeader, isRealized, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, location, manageSystemActions, mouseActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, parent, parent, parentOrSelf, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, prepParentLocation, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, refresh, registerWidgetStateListener, repaint, repaint, requestSync, resetBitmap, resizeTo, resolveFont, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, setVisible, show, supportsCustomMousePointer, sync, topLevelWindow, toString, translate, unrealize, updateSizeWorker, window
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFocusListener, addKeyListener, ancestor, ancestorId, bounds, clearWidget, config, defaultMousePtr, destroy, displayPhysicalLocation, enclosingFrame, enforceDefaultMousePtr, findMouseSource, focusTraversable, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getSelectedText, getState, getVisiblePart, getZOrderClass, hasFocus, hidden, hide, highlighted, insets, isDirectManipulable, isDisplayed, isEnabled, isFocusable, isHeader, isRealized, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, location, moveToBottom, moveToTop, name, navigable, parent, parent, parentOrSelf, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, repaint, repaint, requestSync, resizeTo, screen, screenLocation, screenPhysicalLocation, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, setVisible, show, supportsCustomMousePointer, topLevelWindow, unrealize, window
ScrollableListImpl(ComboBox<ChuiOutputManager> box, ListModel<java.lang.String> model)
box
- The instance with which this object must be associated.model
- The data model that represents the contents of the list.public void requestFocus()
requestFocus
in interface Widget<ChuiOutputManager>
requestFocus
in class AbstractWidget<ChuiOutputManager>
public void draw()
draw
in interface Widget<ChuiOutputManager>
draw
in class ScrollableList<ChuiOutputManager>
public void drawCaret()
drawCaret
in interface Widget<ChuiOutputManager>
drawCaret
in class ScrollableList<ChuiOutputManager>
public void scroll(java.lang.Integer newXPosition, java.lang.Integer newYPosition)
DefaultList.getScrollDimension()
, DefaultList.getVisibleDimension()
and DefaultList.getScrollStep()
.scroll
in interface ScrollableWidget<ChuiOutputManager>
scroll
in class DefaultList<java.lang.String,ChuiOutputManager>
newXPosition
- New X scroll position.newYPosition
- New Y scroll position.protected void setTopRow(int index)
setTopRow
in class ScrollableList<ChuiOutputManager>
index
- The index of the top item.protected int calculateScrollYPosition()
calculateScrollYPosition
in class DefaultList<java.lang.String,ChuiOutputManager>