Module com.iamsoft.util.ui
Package com.iamsoft.util.ui.swing.mdi
Class InternalFrameListModel<T extends JInternalFrame>
java.lang.Object
com.iamsoft.util.ui.swing.mdi.InternalFrameListModel<T>
- Type Parameters:
T
- Frame type.
- All Implemented Interfaces:
Serializable
,ListModel<T>
Maintains an ordered list of internal frames. List is ordered by last focus. When focus
is transferred, a list data changed event is fired, spanning from 0 to the original
index of the new focus owner. Thus all 'add' and 'remove' events correspond to a
true window opening or closing. Note that, when split pane view is enabled, the
true order of the internal frames may not match the list model's order. The desktop
is guaranteed to be reorganized, however, as soon split pane view is disabled (and
before any related CardLayout PropertyChangeEvents events are fired).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInternalFrameListModel
(InternalFrameContentListModel pInternalFrameContentListModel) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListDataListener
(ListDataListener pListener) protected void
fireContentsChanged
(Object pSrc, int pIdx0, int pIdx1) protected void
fireIntervalAdded
(Object pSrc, int pIdx0, int pIdx1) protected void
fireIntervalRemoved
(Object pSrc, int pIdx0, int pIdx1) getElementAt
(int pIdx) int
getSize()
void
removeListDataListener
(ListDataListener pListener) toStringList
(Collection<? extends JInternalFrame> pColl) Construct list of frame titles.
-
Constructor Details
-
InternalFrameListModel
-
-
Method Details
-
getElementAt
-
getSize
public int getSize() -
toStringList
Construct list of frame titles. For debugging purposes. -
addListDataListener
- Specified by:
addListDataListener
in interfaceListModel<T extends JInternalFrame>
-
removeListDataListener
- Specified by:
removeListDataListener
in interfaceListModel<T extends JInternalFrame>
-
fireContentsChanged
-
fireIntervalAdded
-
fireIntervalRemoved
-