Package docking.widgets.fieldpanel
Interface LayoutModel
- All Known Implementing Classes:
- ClangLayoutController,- EmptyBigLayoutModel,- ListingModelAdapter,- TestBigLayoutModel
The Big Layout Model interface.  Objects that implement this interface can be dispayed
 using a BigFieldPanel.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddLayoutModelListener(LayoutModelListener listener) Adds a LayoutModelListener to be notified when changes occur.voidReturns true if the model knows about changes that haven't yet been told to the LayoutModelListeners.getIndexAfter(BigInteger index) Returns the closest larger index in the model that has a non-null layout.getIndexBefore(BigInteger index) Returns the closest smaller index in the model that has a non-null layout.getLayout(BigInteger index) Returns a layout for the given index.Returns the total number of indexes.Returns the width of the largest possible layout.booleanReturns true if every index returns a non-null layout and all the layouts are the same height.default LayoutModelIteratoriterator()Returns an iterator that walks all the Layout items in this model.default LayoutModelIteratoriterator(BigInteger startIndex) Returns an iterator that walks all the Layout items in this model, starting at the specified index.voidremoveLayoutModelListener(LayoutModelListener listener) Removes a LayoutModelListener to be notified when changes occur.Methods inherited from interface java.lang.IterableforEach, spliterator
- 
Method Details- 
isUniformboolean isUniform()Returns true if every index returns a non-null layout and all the layouts are the same height.
- 
getPreferredViewSizeDimension getPreferredViewSize()Returns the width of the largest possible layout.
- 
getNumIndexesBigInteger getNumIndexes()Returns the total number of indexes.
- 
getIndexAfterReturns the closest larger index in the model that has a non-null layout.- Parameters:
- index- for which to find the next index with a non-null layout.
- Returns:
- returns the closest larger index in the model that has a non-null layout.
 
- 
getIndexBeforeReturns the closest smaller index in the model that has a non-null layout.- Parameters:
- index- for which to find the previous index with a non-null layout.
- Returns:
- returns the closest smaller index in the model that has a non-null layout.
 
- 
getLayoutReturns a layout for the given index.- Parameters:
- index- the index of the layout to retrieve.
 
- 
iteratorReturns an iterator that walks all the Layout items in this model.
- 
iteratorReturns an iterator that walks all the Layout items in this model, starting at the specified index.- Parameters:
- startIndex- start index in the model to beginning iterating
- Returns:
- new iterator
 
- 
addLayoutModelListenerAdds a LayoutModelListener to be notified when changes occur.- Parameters:
- listener- the LayoutModelListener to add.
 
- 
removeLayoutModelListenerRemoves a LayoutModelListener to be notified when changes occur.- Parameters:
- listener- the LayoutModelListener to remove.
 
- 
flushChangesvoid flushChanges()Returns true if the model knows about changes that haven't yet been told to the LayoutModelListeners.
 
-