Class EmptyBigLayoutModel
java.lang.Object
docking.widgets.fieldpanel.internal.EmptyBigLayoutModel
- All Implemented Interfaces:
LayoutModel
,Iterable<Layout>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayoutModelListener
(LayoutModelListener listener) Adds a LayoutModelListener to be notified when changes occur.void
Returns 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.boolean
Returns true if every index returns a non-null layout and all the layouts are the same height.void
removeLayoutModelListener
(LayoutModelListener listener) Removes a LayoutModelListener to be notified when changes occur.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface docking.widgets.fieldpanel.LayoutModel
iterator, iterator
-
Constructor Details
-
EmptyBigLayoutModel
public EmptyBigLayoutModel()
-
-
Method Details
-
addLayoutModelListener
Description copied from interface:LayoutModel
Adds a LayoutModelListener to be notified when changes occur.- Specified by:
addLayoutModelListener
in interfaceLayoutModel
- Parameters:
listener
- the LayoutModelListener to add.
-
flushChanges
public void flushChanges()Description copied from interface:LayoutModel
Returns true if the model knows about changes that haven't yet been told to the LayoutModelListeners.- Specified by:
flushChanges
in interfaceLayoutModel
-
getIndexAfter
Description copied from interface:LayoutModel
Returns the closest larger index in the model that has a non-null layout.- Specified by:
getIndexAfter
in interfaceLayoutModel
- 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.
-
getIndexBefore
Description copied from interface:LayoutModel
Returns the closest smaller index in the model that has a non-null layout.- Specified by:
getIndexBefore
in interfaceLayoutModel
- 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.
-
getLayout
Description copied from interface:LayoutModel
Returns a layout for the given index.- Specified by:
getLayout
in interfaceLayoutModel
- Parameters:
index
- the index of the layout to retrieve.
-
getPreferredViewSize
Description copied from interface:LayoutModel
Returns the width of the largest possible layout.- Specified by:
getPreferredViewSize
in interfaceLayoutModel
-
getNumIndexes
Description copied from interface:LayoutModel
Returns the total number of indexes.- Specified by:
getNumIndexes
in interfaceLayoutModel
-
isUniform
public boolean isUniform()Description copied from interface:LayoutModel
Returns true if every index returns a non-null layout and all the layouts are the same height.- Specified by:
isUniform
in interfaceLayoutModel
-
removeLayoutModelListener
Description copied from interface:LayoutModel
Removes a LayoutModelListener to be notified when changes occur.- Specified by:
removeLayoutModelListener
in interfaceLayoutModel
- Parameters:
listener
- the LayoutModelListener to remove.
-