Class ListView<T>
java.lang.Object
org.springframework.shell.component.view.control.AbstractControl
org.springframework.shell.component.view.control.AbstractView
org.springframework.shell.component.view.control.BoxView
org.springframework.shell.component.view.control.ListView<T>
ListView shows list items vertically.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawInternal(Screen screen) Possibly draws a box around this view and title in a box top boundary.protected voidInternal init method called fromAbstractView.init().voidSets a cell factory.voidvoidsetSelected(int selected) Methods inherited from class org.springframework.shell.component.view.control.BoxView
getInnerRect, isShowBorder, isTransparent, setBackgroundColor, setBorderPadding, setFocusedTitleColor, setFocusedTitleStyle, setRect, setShowBorder, setTitle, setTitleAlign, setTitleColor, setTitleStyle, setTransparentMethods inherited from class org.springframework.shell.component.view.control.AbstractView
destroy, dispatch, dispatchMouseRunCommand, dispatchRunCommand, dispatchRunnable, draw, focus, getDrawFunction, getEventLoop, getKeyBindings, getKeyHandler, getLayer, getMouseBindings, getMouseHandler, hasFocus, init, onDestroy, registerKeyBinding, registerKeyBinding, registerKeyBinding, registerMouseBinding, registerMouseBinding, registerMouseBinding, setDrawFunction, setEventLoop, setLayerMethods inherited from class org.springframework.shell.component.view.control.AbstractControl
getRect, getThemeName, getThemeResolver, resolveThemeBackground, resolveThemeForeground, resolveThemeStyle, setThemeName, setThemeResolverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.shell.component.view.control.Control
getRect, setThemeName, setThemeResolver
-
Constructor Details
-
ListView
public ListView()Construct list view with no initial items.
-
-
Method Details
-
drawInternal
Description copied from class:BoxViewPossibly draws a box around this view and title in a box top boundary. Also calls adraw functionif defined.- Overrides:
drawInternalin classBoxView- Parameters:
screen- the screen
-
setCellFactory
Sets a cell factory.- Parameters:
factory- the cell factory
-
setItems
-
initInternal
protected void initInternal()Description copied from class:AbstractViewInternal init method called fromAbstractView.init(). Override to do something usefull. Typically key and mousebindings are registered from this method.- Overrides:
initInternalin classAbstractView
-
setSelected
public void setSelected(int selected)
-