|
|||||||||
| 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(Object rootItem,
Object leafItem)
|
void |
_setNumberOfObjectsPerBatch(int size)
|
List |
allObjects()
|
static Object[] |
arrayFromOrderedList(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(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()
|
List |
computeSortedObjects(List objects)
|
int |
currentBatchIndex()
|
boolean |
currentDetailExpanded()
|
boolean |
currentGroupingExpanded()
|
AWTDisplayGroup.GroupingState |
currentGroupingState()
|
Object |
currentItem()
|
Map |
currentItemExtras()
This is a useful bag for storing state associated with a row. |
int |
currentItemGroupingCount()
|
boolean |
currentSelectedState()
Selected / Selection Methods |
AWTDataSource |
dataSource()
FIXME: stub implementations... |
AWTDisplayGroup.InitialExpandType |
detailInitialExpansionType()
|
boolean |
detailRowAutoCollapse()
|
List |
displayedObjects()
Use with care -- causes array to get created. |
void |
displayNextBatch()
|
void |
displayPreviousBatch()
|
List |
effectiveSortOrderings()
This returns the concatenation of the primarySortOrdering and sortOrderings. |
Map |
extrasForItem(Object item)
|
void |
fetch()
|
List |
filteredObjects()
Will generate Null Pointer Exception if setObjectArray(java.util.List)() has not been called yet. |
void |
flushSelectionEdits()
|
boolean |
forceCurrentItemVisibleLatch()
|
int |
groupingExpansionDefault()
|
String |
groupingKey()
|
AWTDisplayGroup.GroupingState |
groupingState(Object row)
|
boolean |
hasMultipleBatches()
|
void |
hibernate()
|
Object |
insert()
|
Object |
insert(boolean autoAdd)
|
boolean |
isCurrentItemGrouping()
|
boolean |
isCurrentItemVisible()
|
boolean |
isGroupingExpanded(Object row)
|
boolean |
isGroupingRow(Object row)
|
boolean |
isResetScrollTop()
|
static boolean |
listsIdentical(List l1,
List l2)
TODO: move to ListUtil. |
int |
numberOfDisplayedObjects()
|
int |
numberOfObjectsPerBatch()
|
static boolean |
orderedListArrayMatch(Object list,
Object[] array)
TODO: move to ListUtil or ArrayUtil. |
static AWTSortOrdering |
orderingMatchingKey(List list,
String key)
|
OutlineState |
outlineState()
|
AWTPivotState |
pivotState()
|
List |
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. |
Object |
selectedObject()
the first of the selectedObjects that is part of the displayedObjects |
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(Object item)
Item / Current Item Methods |
void |
setCurrentSelectedState(boolean state)
|
void |
setDataSource(AWTDataSource dataSource)
|
void |
setDetailInitialExpansionType(AWTDisplayGroup.InitialExpandType detailInitialExpansionType)
|
void |
setDetailRowAutoCollapse(boolean detailRowAutoCollapse)
|
void |
setGroupingExpanded(Object row,
boolean expanded)
|
void |
setGroupingExpansionDefault(int value)
|
void |
setGroupingKey(String keyPathString)
|
void |
setGroupSortOrdering(AWTSortOrdering ordering)
|
void |
setItemListener(AWTDataTable.Column listener)
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() |
void |
setItemToForceVisible(Object item)
|
void |
setNumberOfObjectsPerBatch(int size)
|
void |
setObjectArray(List allObjects)
Caching and misc methods |
void |
setOutlineAllObjects(List list)
Called by OutlineRepetition with the unrolled set of objects. |
void |
setOutlineState(OutlineState state)
|
void |
setPathToForceVisible(List path)
|
void |
setPrimarySortOrderings(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(Object object)
Selection manipulation. |
void |
setSelectedObjects(List selection)
|
void |
setSortOrderings(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(). |
List |
sortedChildList(List objects)
|
List |
sortedMainList(List objects)
|
List |
sortOrderings()
|
static Object |
subarray(Object array,
int startIndex,
int stopIndex)
TODO: move to ArrayUtil. |
void |
toggleCurrentDetailExpanded()
|
void |
updateDisplayedObjects()
|
boolean |
useBatching()
|
static List |
vectorFromOrderedList(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 setItemListener(AWTDataTable.Column listener)
AWTDataTable.Column.setCurrentItem()
listener - the column that is told about current itemspublic AWTPivotState pivotState()
public void setObjectArray(List allObjects)
public boolean isResetScrollTop()
public static List vectorFromOrderedList(Object list)
list -
public static Object[] arrayFromOrderedList(Object list)
list -
public static boolean orderedListArrayMatch(Object list,
Object[] array)
list -
public void checkObjectArray(Object list)
list - The new object arraypublic void checkDataSource()
public void hibernate()
public List allObjects()
public List effectiveSortOrderings()
public static AWTSortOrdering orderingMatchingKey(List list,
String key)
public List computeSortedObjects(List objects)
public List filteredObjects()
setObjectArray(java.util.List)() has not been called yet.
public List sortedMainList(List objects)
public List sortedChildList(List objects)
public static boolean listsIdentical(List l1,
List l2)
l1 - l2 -
public void setOutlineAllObjects(List list)
public int groupingExpansionDefault()
public void setGroupingExpansionDefault(int value)
public AWTDisplayGroup.GroupingState currentGroupingState()
public AWTDisplayGroup.GroupingState groupingState(Object row)
public boolean isGroupingRow(Object row)
public boolean isCurrentItemGrouping()
public boolean isGroupingExpanded(Object row)
public void setGroupingExpanded(Object row,
boolean expanded)
public void setGroupSortOrdering(AWTSortOrdering ordering)
public void setGroupingKey(String keyPathString)
public 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 List displayedObjects()
setUseBatching(boolean)public OutlineState outlineState()
public void setOutlineState(OutlineState state)
public void updateDisplayedObjects()
public void setCurrentItem(Object item)
public Object currentItem()
public void _setItemToForceVisible(Object rootItem,
Object leafItem)
public void setItemToForceVisible(Object item)
public void setPathToForceVisible(List path)
public boolean forceCurrentItemVisibleLatch()
public Map extrasForItem(Object item)
public Map currentItemExtras()
public boolean currentSelectedState()
public boolean bufferSelectionEdits()
public void setBufferSelectionEdits(boolean yn)
public void flushSelectionEdits()
public void setCurrentSelectedState(boolean state)
public List selectedObjects()
public void setSelectedObjects(List selection)
public Object selectedObject()
public void setSelectedObject(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 Object subarray(Object array,
int startIndex,
int stopIndex)
array - startIndex - stopIndex -
public void setSortOrderings(List sortOrderings)
public List sortOrderings()
public void setPrimarySortOrderings(List sortOrderings)
public List primarySortOrderings()
public AWTDataSource dataSource()
public void setDataSource(AWTDataSource dataSource)
public void fetch()
public Object insert()
public Object insert(boolean autoAdd)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||