T
- type of the page componentpublic interface IPage<T extends javax.swing.JComponent> extends IPageCompCreator<T>, HasRIcon
IMultiPageComp
.
Pages that wish to get notified about them being selected or deselected must create and return a page component which implements
IPageSelectedListener
.
Closeable pages (if isCloseable()
returns true) can be notified about being closed (and can even veto it) by creating and returning a page component
which implements the IPageClosingListener
.
If a returned page component implements the IPageDisposedListener
interface, IPageDisposedListener.pageDisposed()
will be properly called
before the page component is disposed.
IMultiPageComp
,
IGuiFactory.newPage(String, IRIcon, boolean, IPageCompCreator)
,
IPageCompCreator
Modifier and Type | Method and Description |
---|---|
java.util.List<IPage<?>> |
getChildList()
Returns the child page list of this page.
If there are child pages returned, this page will be a node in the tree and the returned child pages will appear under this page. |
java.lang.String |
getDisplayName()
Returns the display name of the page.
|
IPage<?> |
getParent()
Returns the parent page of the page (if there is any).
|
IRIcon |
getRicon()
Returns the ricon of the page.
|
boolean |
isCloseable()
Tells if the page is closeable.
|
void |
setParent(IPage<?> parent)
Sets the parent of this page.
|
createPageComp
java.lang.String getDisplayName()
IRIcon getRicon()
boolean isCloseable()
void setParent(IPage<?> parent)
parent
- parent page to be setIPage<?> getParent()
java.util.List<IPage<?>> getChildList()
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.