viewtify.ui.helper
CollectableHelper
<Self
, E
>
Self
, E
>Self
ReferenceHolder
&CollectableHelper
Self
,E
E
AbstractComboBox
T
,Self
,W
AbstractPane
E
,P
,Self
UIChoiceBox
T
UIComboBox
T
UIComboCheckBox
T
UIFlowView
E
UIGridView
E
UIListView
E
UISpinner
T
UITabPane
UITableView
RowV
UITileView
E
UITreeTableView
RowV
itemsProperty
()
javafx.beans.property.Propertyjavafx.collections.ObservableListE
javafx.collections.ObservableListE
javafx.beans.property.Property |
Returns the managed item list.
artifacts
()
javafx.collections.ObservableListE
E
javafx.collections.ObservableList |
A live item list. |
Get the all artifacts.
items
()
javafx.collections.ObservableListE
E
javafx.collections.ObservableList |
A live item list. |
Get the all items.
items
(E
items
)
Self
E
items
)E items |
All items to set. |
Self |
Chainable API. |
Sets all values as items.
items
(kiss.SignalE
items
)
Self
kiss.SignalE
items
)kiss.Signal items |
All items to set. |
Self |
Chainable API. |
Sets all values as items.
items
(BaseStreamE
, ?
items
)
Self
BaseStreamE
, ?
items
)BaseStream items |
All items to set. |
Self |
Chainable API. |
Sets all values as items.
items
(IterableE
items
)
Self
IterableE
items
)Iterable items |
All items to set. |
Self |
Chainable API. |
Sets all values as items.
items
(ListE
items
)
Self
ListE
items
)List items |
All items to set. |
Self |
Chainable API. |
Sets all values as items.
items
(int
start
, int
end
, IntFunctionE
mapper
)
Self
int
start
, int
end
, IntFunctionE
mapper
)int start |
The inclusive initial value. |
int end |
The inclusive upper bound. |
IntFunction mapper |
A value builder. |
Self |
Chainable API. |
Specify all values from the start value to the end value.
itemsWhen
(kiss.Signal?
reload
, SupplierListE
items
)
Self
kiss.Signal?
reload
, SupplierListE
items
)kiss.Signal reload |
|
Supplier items |
|
Self |
Chainable API. |
Sets all values as items.
itemsWhen
(kiss.Signal?
reload
, ConsumerSelf
setter
)
Self
kiss.Signal?
reload
, ConsumerSelf
setter
)kiss.Signal reload |
|
Consumer setter |
|
Self |
Chainable API. |
Sets all values as items.
initialize
(E
initialItems
)
Self
E
initialItems
)E initialItems |
The initial value is mandatory, null values are not accepted. |
Self |
Chainable API. |
Initialize with the specified value. This value is automatically saved whenever it is changed, and is restored the next time it is initialized.
initialize
(kiss.SignalE
initialItems
)
Self
kiss.SignalE
initialItems
)kiss.Signal initialItems |
The initial value is mandatory, null values are not accepted. |
Self |
Chainable API. |
Initialize with the specified value. This value is automatically saved whenever it is changed, and is restored the next time it is initialized.
initialize
(BaseStreamE
, ?
initialItems
)
Self
BaseStreamE
, ?
initialItems
)BaseStream initialItems |
The initial value is mandatory, null values are not accepted. |
Self |
Chainable API. |
Initialize with the specified value. This value is automatically saved whenever it is changed, and is restored the next time it is initialized.
initialize
(IterableE
initialItems
)
Self
IterableE
initialItems
)Iterable initialItems |
The initial value is mandatory, null values are not accepted. |
Self |
Chainable API. |
Initialize with the specified value. This value is automatically saved whenever it is changed, and is restored the next time it is initialized.
initialize
(ListE
initialItems
)
Self
ListE
initialItems
)List initialItems |
The initial value is mandatory, null values are not accepted. |
Self |
Chainable API. |
Initialize with the specified value. This value is automatically saved whenever it is changed, and is restored the next time it is initialized.
initialize
(E
defaultValue
, ListE
initialItems
)
Self
E
defaultValue
, ListE
initialItems
)E defaultValue |
A default value. |
List initialItems |
The initial value is mandatory, null values are not accepted. |
Self |
Chainable API. |
Initialize with the specified value. This value is automatically saved whenever it is changed, and is restored the next time it is initialized.
historicalItems
(kiss.WiseConsumerListE
save
)
Self
kiss.WiseConsumerListE
save
)kiss.WiseConsumer save |
|
Self |
Maintain an edit history of this value with default context.
historicalItems
(kiss.WiseConsumerListE
save
, Edito
context
)
Self
kiss.WiseConsumerListE
save
, Edito
context
)X
|
|
kiss.WiseConsumer save |
|
Edito context |
|
Self |
Maintains an edit history of this value with your context.
first
()
kiss.VariableE
E
kiss.Variable |
Returns the first item.
firstArtifact
()
kiss.VariableE
E
kiss.Variable |
Returns the first item.
last
()
kiss.VariableE
E
kiss.Variable |
Returns the last item.
lastArtifact
()
kiss.VariableE
E
kiss.Variable |
Returns the last item.
size
()
int
int |
Return the number of items.
indexOf
(E
item
)
int
E
item
)E item |
A target to search. |
int |
An item index. |
Return the index of the specified item or -1 if it is not found.
has
(E
item
)
boolean
E
item
)E item |
A target to search. |
boolean |
A result. |
Check whether this collection has the specified item or not.
addItemAt
(int
index
, E
item
)
Self
int
index
, E
item
)int index |
An index to add. |
E item |
An item to add. |
Self |
Chainable API. |
Add the specified item.
addItemAtIfAbsent
(int
index
, E
item
)
Self
int
index
, E
item
)int index |
An index to add. |
E item |
An item to add. |
Self |
Chainable API. |
Add the specified item.
addItemAtFirst
(E
item
)
Self
E
item
)E item |
An item to add. |
Self |
Chainable API. |
Add the specified item at the first.
addItemAtFirstIfAbsent
(E
item
)
Self
E
item
)E item |
An item to add. |
Self |
Chainable API. |
Add the specified item at the first.
addItemAtLast
(E
item
)
Self
E
item
)E item |
An item to add. |
Self |
Chainable API. |
Add the specified item at the last.
addItemAtLastIfAbsent
(E
item
)
Self
E
item
)E item |
An item to add. |
Self |
Chainable API. |
Add the specified item at the last.
setItemAt
(int
index
, E
item
)
Self
int
index
, E
item
)int index |
An index to add. |
E item |
An item to add. |
Self |
Chainable API. |
Set the specified item.
removeItem
(E
item
)
Self
E
item
)E item |
An item to remove. |
Self |
Chainable API. |
Remove the specified item.
removeItems
(CollectionE
items
)
Self
CollectionE
items
)Collection items |
A collection of items to remove. |
Self |
Chainable API. |
Remove the specified item.
removeItemAll
()
Self
Self |
Remove all items.
removeItemAt
(int
indexies
)
Self
int
indexies
)int indexies |
|
Self |
Chainable API. |
Remove an item at the specified index.
removeItemAt
(ListInteger
indexies
)
Self
ListInteger
indexies
)List indexies |
|
Self |
Chainable API. |
Remove an item at the specified index.
removeItemAtFirst
()
Self
Self |
Chainable API. |
Remove the first item.
removeItemAtLast
()
Self
Self |
Chainable API. |
Remove the last item.
replaceItemAt
(kiss.VariableE
target
, E
replacer
)
Self
kiss.VariableE
target
, E
replacer
)kiss.Variable target |
An index.. |
E replacer |
An item to replace. |
Self |
Chainable API. |
Replace the specified item.
replaceItemAt
(E
target
, E
replacer
)
Self
E
target
, E
replacer
)E target |
An index.. |
E replacer |
An item to replace. |
Self |
Chainable API. |
Replace the specified item.
swap
(int
one
, int
other
)
Self
int
one
, int
other
)int one |
|
int other |
|
Self |
Chainable API. |
Swap its position each items.
sort
(ComparatorE
sorter
)
Self
ComparatorE
sorter
)Comparator sorter |
A item comparator. |
Self |
Chainable API. |
Sort items by the specified Comparator
.
sortBy
(Function?
E
, ?
U
sorter
)
Self
Function?
E
, ?
U
sorter
)U
|
|
Function sorter |
A item comparator. |
Self |
Chainable API. |
Sort items by the specified Comparator
.
sortByInt
(ToIntFunction?
E
sorter
)
Self
ToIntFunction?
E
sorter
)ToIntFunction sorter |
A item comparator. |
Self |
Chainable API. |
Sort items by the specified Comparator
.
sortByLong
(ToLongFunction?
E
sorter
)
Self
ToLongFunction?
E
sorter
)ToLongFunction sorter |
A item comparator. |
Self |
Chainable API. |
Sort items by the specified Comparator
.
sortByDouble
(ToDoubleFunction?
E
sorter
)
Self
ToDoubleFunction?
E
sorter
)ToDoubleFunction sorter |
A item comparator. |
Self |
Chainable API. |
Sort items by the specified Comparator
.
sort
(ValueHelper?
, V
context
, FunctionV
, ComparatorE
sorter
)
Self
ValueHelper?
, V
context
, FunctionV
, ComparatorE
sorter
)V |
|
ValueHelper context |
An additional infomation. |
Function sorter |
A item comparator. |
Self |
Chainable API. |
Sort items by the specified Comparator
.
sort
(ComparatorE
sorter
, PredicateE
selector
)
Self
ComparatorE
sorter
, PredicateE
selector
)Comparator sorter |
A item comparator. |
Predicate selector |
A item selector to sort. |
Self |
Sorts items using the specified Comparator
. However, items other than the selected
item are excluded from the sort and remain fixed.
isFiltering
()
kiss.SignalBoolean
Boolean
kiss.Signal |
Get the filetering state.
hasNothing
()
kiss.SignalBoolean
Boolean
kiss.Signal |
Get the filetering state.
hasSomething
()
kiss.SignalBoolean
Boolean
kiss.Signal |
Get the filetering state.
take
(PredicateE
filter
)
Self
PredicateE
filter
)Predicate filter |
A conditional filter. |
Self |
Chainable API. |
Filter items by the specified condition.
take
(javafx.beans.value.ObservableValueC
context
, BiPredicateE
, C
filter
)
Self
javafx.beans.value.ObservableValueC
context
, BiPredicateE
, C
filter
)C |
|
javafx.beans.value.ObservableValue context |
An additional infomation. |
BiPredicate filter |
A conditional filter. |
Self |
Chainable API. |
Filter items by the specified condition.
take
(ValueHelper?
, C
context
, BiPredicateE
, C
filter
)
Self
ValueHelper?
, C
context
, BiPredicateE
, C
filter
)C |
|
ValueHelper context |
An additional infomation. |
BiPredicate filter |
A conditional filter. |
Self |
Chainable API. |
Filter items by the specified condition.
take
(kiss.SignalPredicateE
filter
)
Self
kiss.SignalPredicateE
filter
)kiss.Signal filter |
A conditional filter. |
Self |
Chainable API. |
Filter items by the specified condition.
skip
(PredicateE
filter
)
Self
PredicateE
filter
)Predicate filter |
A conditional filter. |
Self |
Chainable API. |
Filter items by the specified condition.
skip
(javafx.beans.value.ObservableValueC
context
, BiPredicateE
, C
filter
)
Self
javafx.beans.value.ObservableValueC
context
, BiPredicateE
, C
filter
)C |
|
javafx.beans.value.ObservableValue context |
An additional infomation. |
BiPredicate filter |
A conditional filter. |
Self |
Chainable API. |
Filter items by the specified condition.
skip
(ValueHelper?
, C
context
, BiPredicateE
, C
filter
)
Self
ValueHelper?
, C
context
, BiPredicateE
, C
filter
)C |
|
ValueHelper context |
An additional infomation. |
BiPredicate filter |
A conditional filter. |
Self |
Chainable API. |
Filter items by the specified condition.
query
()
CompoundQueryE
E
CompoundQuery |
Get the associated CompoundQuery
.
observeItemState
(FunctionE
, kiss.Variable
stateExtractor
)
Self
FunctionE
, kiss.Variable
stateExtractor
)Function stateExtractor |
|
Self |
Chainable API. |
Observe each items's state to update view.
observeItems
()
kiss.Signaljavafx.collections.ObservableListE
javafx.collections.ObservableListE
kiss.Signal |
Observe the modification of items.
observeItems
(kiss.WiseConsumerjavafx.collections.ObservableListE
listener
)
Self
kiss.WiseConsumerjavafx.collections.ObservableListE
listener
)kiss.WiseConsumer listener |
|
Self |
Observe the modification of items.
observingItems
()
kiss.Signaljavafx.collections.ObservableListE
javafx.collections.ObservableListE
kiss.Signal |
Observe the modification of items.
observingItems
(kiss.WiseConsumerjavafx.collections.ObservableListE
listener
)
Self
kiss.WiseConsumerjavafx.collections.ObservableListE
listener
)kiss.WiseConsumer listener |
|
Self |
Observe the modification of items.
observeArtifacts
()
kiss.Signaljavafx.collections.ObservableListE
javafx.collections.ObservableListE
kiss.Signal |
Observe the modification of artifacts.
observeArtifacts
(kiss.WiseConsumerjavafx.collections.ObservableListE
listener
)
Self
kiss.WiseConsumerjavafx.collections.ObservableListE
listener
)kiss.WiseConsumer listener |
|
Self |
Observe the modification of artifacts.
observingArtifacts
()
kiss.Signaljavafx.collections.ObservableListE
javafx.collections.ObservableListE
kiss.Signal |
Observe the modification of artifacts.
observingArtifacts
(kiss.WiseConsumerjavafx.collections.ObservableListE
listener
)
Self
kiss.WiseConsumerjavafx.collections.ObservableListE
listener
)kiss.WiseConsumer listener |
|
Self |
Observe the modification of artifacts.
reapply
()
Self
Self |
Chainable API. |
Reapply the current filter and comparator.
updateUnderlayModel
(javafx.collections.ObservableListE
newList
)
Self
javafx.collections.ObservableListE
newList
)javafx.collections.ObservableList newList |
|
Self |
Update the original ObservableList, which should not normally be touched.