|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.ui.table.AWTDisplayGroup
public final class AWTDisplayGroup
Nested Class Summary | |
---|---|
static interface |
AWTDisplayGroup.Grouper
|
static class |
AWTDisplayGroup.GroupingState
use this type to mark grouping rows, tell if they're expanded, ... |
static class |
AWTDisplayGroup.InitialExpandType
|
Field Summary | |
---|---|
int |
_scrollTopOffset
|
static int |
GroupingDefaultAllOpen
|
static int |
GroupingDefaultClosed
|
static int |
GroupingDefaultFirstOpen
|
static int |
GroupingDefaultFitBatch
dynamically choose open all, or close all |
Constructor Summary | |
---|---|
AWTDisplayGroup()
Constructor and misc |
Method Summary | |
---|---|
void |
_setItemToForceVisible(java.lang.Object rootItem,
java.lang.Object leafItem)
|
void |
_setNumberOfObjectsPerBatch(int size)
|
void |
addItemListener(AWTDataTable.Column listener,
java.lang.Object listenerState)
Tell us about a column that needs to hear about changes to the current item. A display group will inform a single column about changes to the current item via callbacks to AWTDataTable.Column.setCurrentItem() |
java.util.List |
allObjects()
|
static java.lang.Object[] |
arrayFromOrderedList(java.lang.Object list)
TODO: move to ListUtil or ArrayUtil. |
int |
batchCount()
|
int |
batchEndIndex()
|
int |
batchStartIndex()
This is the index of the top row of the batch. |
boolean |
bufferSelectionEdits()
|
void |
centerBatchOnRow(int desiredScrollTopIndex)
Doesn't quite center the batch on the row, more like 33% above, 66% below. |
void |
checkDataSource()
|
void |
checkObjectArray(java.lang.Object list)
Check if our objectArray is out of sync. As side effect, if the object array has changed, remember the list as the new value. |
void |
clearSelection()
|
java.util.List |
computeSortedObjects(java.util.List objects)
|
int |
currentBatchIndex()
|
boolean |
currentDetailExpanded()
|
boolean |
currentGroupingExpanded()
|
AWTDisplayGroup.GroupingState |
currentGroupingState()
|
java.lang.Object |
currentItem()
|
java.util.Map |
currentItemExtras()
This is a useful bag for storing state associated with a row. |
int |
currentItemGroupingCount()
|
boolean |
currentSelectedState()
Selected / Selection Support |
AWTDataSource |
dataSource()
FIXME: stub implementations... |
AWTDisplayGroup.InitialExpandType |
detailInitialExpansionType()
|
boolean |
detailRowAutoCollapse()
|
java.util.List |
displayedObjects()
Use with care -- causes array to get created. |
void |
displayNextBatch()
|
void |
displayPreviousBatch()
|
java.util.List<AWTSortOrdering> |
effectiveSortOrderings()
This returns the concatenation of the primarySortOrdering and sortOrderings. |
java.util.Map |
extrasForItem(java.lang.Object item)
|
void |
fetch()
|
java.util.List |
filteredObjects()
|
void |
flushSelectionEdits()
|
boolean |
forceCurrentItemVisibleLatch()
|
java.lang.Object |
getListenerState(AWTDataTable.Column listener)
|
int |
groupingExpansionDefault()
|
java.lang.String |
groupingKey()
|
AWTDisplayGroup.GroupingState |
groupingState(java.lang.Object row)
|
boolean |
hasMultipleBatches()
|
void |
hibernate()
|
java.lang.Object |
insert()
|
java.lang.Object |
insert(boolean autoAdd)
|
boolean |
isCurrentItemGrouping()
|
boolean |
isCurrentItemVisible()
|
boolean |
isGroupingExpanded(java.lang.Object row)
|
boolean |
isGroupingRow(java.lang.Object row)
|
boolean |
isResetScrollTop()
|
static boolean |
listsIdentical(java.util.List l1,
java.util.List l2)
TODO: move to ListUtil. |
int |
numberOfDisplayedObjects()
|
int |
numberOfObjectsPerBatch()
|
static boolean |
orderedListArrayMatch(java.lang.Object list,
java.lang.Object[] array)
TODO: move to ListUtil or ArrayUtil. |
static AWTSortOrdering |
orderingMatchingKey(java.util.List list,
java.lang.String key)
|
OutlineState |
outlineState()
|
AWTPivotState |
pivotState()
|
java.util.List<AWTSortOrdering> |
primarySortOrderings()
|
int |
scrollBottomCount()
|
int |
scrollTopCount()
Accessors for AWTScrollTableWrapper for scroll faulting |
int |
scrollTopIndex()
The scrollTopIndex is the index of the top row that is currently displayed. |
java.lang.Object |
selectedObject()
the first of the selectedObjects that is part of the displayedObjects |
java.util.List |
selectedObjects()
the "source of truth" on the selection |
void |
selectNext()
|
void |
selectPrevious()
|
void |
setBatchStartIndex(int index)
This accepts any value. |
void |
setBufferSelectionEdits(boolean yn)
|
void |
setCurrentBatchIndex(int num)
|
void |
setCurrentGroupingExpanded(boolean expanded)
|
void |
setCurrentItem(java.lang.Object item)
Item / Current Item Support |
void |
setCurrentSelectedState(boolean state)
|
void |
setDataSource(AWTDataSource dataSource)
|
void |
setDetailInitialExpansionType(AWTDisplayGroup.InitialExpandType detailInitialExpansionType)
|
void |
setDetailRowAutoCollapse(boolean detailRowAutoCollapse)
|
void |
setGroupingExpanded(java.lang.Object row,
boolean expanded)
|
void |
setGroupingExpansionDefault(int value)
|
void |
setGroupingKey(java.lang.String keyPathString)
|
void |
setGroupSortOrdering(AWTSortOrdering ordering)
|
void |
setItemToForceVisible(java.lang.Object item)
|
void |
setNumberOfObjectsPerBatch(int size)
|
void |
setObjectArray(java.util.List allObjects)
Caching Support and misc methods |
void |
setOutlineAllObjects(java.util.List list)
Called by OutlineRepetition with the unrolled set of objects. |
void |
setOutlineState(OutlineState state)
|
void |
setPathToForceVisible(java.util.List path)
|
void |
setPrimarySortOrderings(java.util.List sortOrderings)
These can be set as a baseline (unalterable by the user) pre-sort. |
void |
setScrollBatchSize(int size)
|
int |
setScrollTopIndex(int index)
See setScrollTopIndex(int, boolean) (). |
int |
setScrollTopIndex(int index,
boolean forceUpdateBatchStartIndex)
This sets and validates the scroll top index. |
void |
setSelectedObject(java.lang.Object object)
Selection manipulation. |
void |
setSelectedObjects(java.util.List selection)
|
void |
setSortOrderings(java.util.List sortOrderings)
Sorting -- these are set interactively by the user of the table |
void |
setUseBatching(boolean yn)
the useBatching() property determines whether displayedObjects() is a subarray of the whole array, or whether it's a the entire array (and the client is just rendering the subset of items from batchStartIndex() to batchEndIndex(). |
java.util.List |
sortedChildList(java.util.List objects)
|
java.util.List |
sortedMainList(java.util.List objects)
|
java.util.List<AWTSortOrdering> |
sortOrderings()
|
static java.lang.Object |
subarray(java.lang.Object array,
int startIndex,
int stopIndex)
TODO: move to ArrayUtil. |
void |
toggleCurrentDetailExpanded()
|
void |
updateDisplayedObjects()
|
boolean |
useBatching()
|
static java.util.List |
vectorFromOrderedList(java.lang.Object list)
TODO: move to ListUtil. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int GroupingDefaultClosed
public static final int GroupingDefaultAllOpen
public static final int GroupingDefaultFirstOpen
public static final int GroupingDefaultFitBatch
public int _scrollTopOffset
Constructor Detail |
---|
public AWTDisplayGroup()
Method Detail |
---|
public void addItemListener(AWTDataTable.Column listener, java.lang.Object listenerState)
AWTDataTable.Column.setCurrentItem()
listener
- the column that is told about current itemspublic java.lang.Object getListenerState(AWTDataTable.Column listener)
public AWTPivotState pivotState()
public void setObjectArray(java.util.List allObjects)
public boolean isResetScrollTop()
public static java.util.List vectorFromOrderedList(java.lang.Object list)
list
-
public static java.lang.Object[] arrayFromOrderedList(java.lang.Object list)
list
-
public static boolean orderedListArrayMatch(java.lang.Object list, java.lang.Object[] array)
list
-
public void checkObjectArray(java.lang.Object list)
list
- The new object arraypublic void checkDataSource()
public void hibernate()
public java.util.List allObjects()
public java.util.List<AWTSortOrdering> effectiveSortOrderings()
public static AWTSortOrdering orderingMatchingKey(java.util.List list, java.lang.String key)
list
- of type List<AWTSortOrdering>key
-
public java.util.List computeSortedObjects(java.util.List objects)
public java.util.List filteredObjects()
java.lang.NullPointerException
- if setObjectArray(java.util.List)
() has not been
called yet. setObjectArray will call this though...public java.util.List sortedMainList(java.util.List objects)
public java.util.List sortedChildList(java.util.List objects)
public static boolean listsIdentical(java.util.List l1, java.util.List l2)
l1
- l2
-
public void setOutlineAllObjects(java.util.List list)
public int groupingExpansionDefault()
public void setGroupingExpansionDefault(int value)
public AWTDisplayGroup.GroupingState currentGroupingState()
public AWTDisplayGroup.GroupingState groupingState(java.lang.Object row)
public boolean isGroupingRow(java.lang.Object row)
public boolean isCurrentItemGrouping()
public boolean isGroupingExpanded(java.lang.Object row)
public void setGroupingExpanded(java.lang.Object row, boolean expanded)
public void setGroupSortOrdering(AWTSortOrdering ordering)
public void setGroupingKey(java.lang.String keyPathString)
public java.lang.String groupingKey()
public boolean currentGroupingExpanded()
public int currentItemGroupingCount()
public boolean isCurrentItemVisible()
public void setCurrentGroupingExpanded(boolean expanded)
public AWTDisplayGroup.InitialExpandType detailInitialExpansionType()
public void setDetailInitialExpansionType(AWTDisplayGroup.InitialExpandType detailInitialExpansionType)
public boolean detailRowAutoCollapse()
public void setDetailRowAutoCollapse(boolean detailRowAutoCollapse)
public boolean currentDetailExpanded()
public void toggleCurrentDetailExpanded()
public java.util.List displayedObjects()
setUseBatching(boolean)
public OutlineState outlineState()
public void setOutlineState(OutlineState state)
public void updateDisplayedObjects()
public void setCurrentItem(java.lang.Object item)
public java.lang.Object currentItem()
public void _setItemToForceVisible(java.lang.Object rootItem, java.lang.Object leafItem)
public void setItemToForceVisible(java.lang.Object item)
public void setPathToForceVisible(java.util.List path)
public boolean forceCurrentItemVisibleLatch()
public java.util.Map extrasForItem(java.lang.Object item)
public java.util.Map currentItemExtras()
public boolean currentSelectedState()
public boolean bufferSelectionEdits()
public void setBufferSelectionEdits(boolean yn)
public void flushSelectionEdits()
public void setCurrentSelectedState(boolean state)
public java.util.List selectedObjects()
public void setSelectedObjects(java.util.List selection)
public java.lang.Object selectedObject()
public void setSelectedObject(java.lang.Object object)
public void selectNext()
public void selectPrevious()
public void clearSelection()
public void setUseBatching(boolean yn)
public boolean useBatching()
public void setBatchStartIndex(int index)
index
- This accepts any integer and edits it to a valid value.batchStartIndex()
public int batchStartIndex()
public int batchEndIndex()
public int numberOfDisplayedObjects()
public void _setNumberOfObjectsPerBatch(int size)
public void setNumberOfObjectsPerBatch(int size)
public void setScrollBatchSize(int size)
public int numberOfObjectsPerBatch()
public int batchCount()
public boolean hasMultipleBatches()
public int currentBatchIndex()
public void setCurrentBatchIndex(int num)
public void displayNextBatch()
public void displayPreviousBatch()
public int scrollTopCount()
public int scrollBottomCount()
public void centerBatchOnRow(int desiredScrollTopIndex)
desiredScrollTopIndex
- The row index to move the batch to.setUseBatching(boolean)
,
scrollTopIndex()
public int scrollTopIndex()
public int setScrollTopIndex(int index)
setScrollTopIndex(int, boolean)
().
index
-
public int setScrollTopIndex(int index, boolean forceUpdateBatchStartIndex)
index
- the new value, can be any intforceUpdateBatchStartIndex
- force an update of the internal batching data.
scrollTopIndex()
public static java.lang.Object subarray(java.lang.Object array, int startIndex, int stopIndex)
array
- startIndex
- stopIndex
-
public void setSortOrderings(java.util.List sortOrderings)
sortOrderings
- of type List<AWTSortOrdering>public java.util.List<AWTSortOrdering> sortOrderings()
public void setPrimarySortOrderings(java.util.List sortOrderings)
sortOrderings
- of type List<AWTSortOrdering>public java.util.List<AWTSortOrdering> primarySortOrderings()
public AWTDataSource dataSource()
public void setDataSource(AWTDataSource dataSource)
public void fetch()
public java.lang.Object insert()
public java.lang.Object insert(boolean autoAdd)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |