protected static class AbstractSelectorComponent.BaseSelectorComponentContext<T,I extends Nameable & Matchable & Itemable<T>,C extends AbstractSelectorComponent.SelectorComponentContext<T,I,C>> extends BaseComponentContext<C> implements AbstractSelectorComponent.SelectorComponentContext<T,I,C>
AbstractSelectorComponent.SelectorComponentContext.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
BaseSelectorComponentContext() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getCursorRow()
Gets a cursor row.
|
String |
getInput()
Gets an input.
|
List<I> |
getItems()
Gets an items.
|
List<AbstractSelectorComponent.ItemState<I>> |
getItemStates()
Gets an item states
|
List<AbstractSelectorComponent.ItemState<I>> |
getItemStateView()
Gets an item state view.
|
String |
getName()
Gets a name.
|
List<I> |
getResultItems()
Gets a result items.
|
boolean |
isResult()
Return if there is a result.
|
void |
setCursorRow(Integer cursorRow)
Sets a cursor row.
|
void |
setInput(String input)
Sets an input.
|
void |
setItems(List<I> items)
Sets an items.
|
void |
setItemStates(List<AbstractSelectorComponent.ItemState<I>> itemStates)
Sets an item states.
|
void |
setItemStateView(List<AbstractSelectorComponent.ItemState<I>> itemStateView)
Sets an item state view
|
void |
setName(String name)
Sets a name
|
void |
setResultItems(List<I> resultItems)
Sets a result items.
|
String |
toString() |
Map<String,Object> |
toTemplateModel()
Gets context values as a map.
|
get, get, put, streamclear, containsValue, entrySet, forEach, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCodefinalize, getClass, notify, notifyAll, wait, wait, waitemptycontainsKey, get, get, put, streamcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic String getName()
AbstractSelectorComponent.SelectorComponentContextpublic void setName(String name)
AbstractSelectorComponent.SelectorComponentContextpublic String getInput()
AbstractSelectorComponent.SelectorComponentContextpublic void setInput(String input)
AbstractSelectorComponent.SelectorComponentContextpublic List<AbstractSelectorComponent.ItemState<I>> getItemStates()
AbstractSelectorComponent.SelectorComponentContextgetItemStates in interface AbstractSelectorComponent.SelectorComponentContext<T,I extends Nameable & Matchable & Itemable<T>,C extends AbstractSelectorComponent.SelectorComponentContext<T,I,C>>public void setItemStates(List<AbstractSelectorComponent.ItemState<I>> itemStates)
AbstractSelectorComponent.SelectorComponentContextsetItemStates in interface AbstractSelectorComponent.SelectorComponentContext<T,I extends Nameable & Matchable & Itemable<T>,C extends AbstractSelectorComponent.SelectorComponentContext<T,I,C>>itemStates - the input statepublic List<AbstractSelectorComponent.ItemState<I>> getItemStateView()
AbstractSelectorComponent.SelectorComponentContextgetItemStateView in interface AbstractSelectorComponent.SelectorComponentContext<T,I extends Nameable & Matchable & Itemable<T>,C extends AbstractSelectorComponent.SelectorComponentContext<T,I,C>>public void setItemStateView(List<AbstractSelectorComponent.ItemState<I>> itemStateView)
AbstractSelectorComponent.SelectorComponentContextsetItemStateView in interface AbstractSelectorComponent.SelectorComponentContext<T,I extends Nameable & Matchable & Itemable<T>,C extends AbstractSelectorComponent.SelectorComponentContext<T,I,C>>itemStateView - the item state viewpublic boolean isResult()
AbstractSelectorComponent.SelectorComponentContextpublic Integer getCursorRow()
AbstractSelectorComponent.SelectorComponentContextgetCursorRow in interface AbstractSelectorComponent.SelectorComponentContext<T,I extends Nameable & Matchable & Itemable<T>,C extends AbstractSelectorComponent.SelectorComponentContext<T,I,C>>public Map<String,Object> toTemplateModel()
ComponentContexttoTemplateModel in interface ComponentContext<C extends AbstractSelectorComponent.SelectorComponentContext<T,I,C>>toTemplateModel in class BaseComponentContext<C extends AbstractSelectorComponent.SelectorComponentContext<T,I,C>>public void setCursorRow(Integer cursorRow)
AbstractSelectorComponent.SelectorComponentContextsetCursorRow in interface AbstractSelectorComponent.SelectorComponentContext<T,I extends Nameable & Matchable & Itemable<T>,C extends AbstractSelectorComponent.SelectorComponentContext<T,I,C>>cursorRow - the cursor rowpublic List<I> getItems()
AbstractSelectorComponent.SelectorComponentContextpublic void setItems(List<I> items)
AbstractSelectorComponent.SelectorComponentContextpublic List<I> getResultItems()
AbstractSelectorComponent.SelectorComponentContextgetResultItems in interface AbstractSelectorComponent.SelectorComponentContext<T,I extends Nameable & Matchable & Itemable<T>,C extends AbstractSelectorComponent.SelectorComponentContext<T,I,C>>public void setResultItems(List<I> resultItems)
AbstractSelectorComponent.SelectorComponentContextsetResultItems in interface AbstractSelectorComponent.SelectorComponentContext<T,I extends Nameable & Matchable & Itemable<T>,C extends AbstractSelectorComponent.SelectorComponentContext<T,I,C>>resultItems - the result itemspublic String toString()
toString in class AbstractMap<Object,Object>Copyright © 2023. All rights reserved.