public static interface IOContainer.Provider
Modifier and Type | Method and Description |
---|---|
void |
add(JComponent comp,
IOContainer.CallBacks cb)
Provided component should be added to parent container
|
JComponent |
getSelected()
Currently selected io component should be returned
|
boolean |
isActivated()
Checks whether parent container is activated
|
boolean |
isCloseable(JComponent comp)
Checks whether comp can be closed (e.g.
|
void |
open()
Parent container for should be opened
|
void |
remove(JComponent comp)
Provided component should be removed from parent container
|
void |
requestActive()
Parent container for should be activated
|
void |
requestVisible()
Parent container for should be selected (if opened)
|
void |
select(JComponent comp)
Provided component should be selected
|
void |
setIcon(JComponent comp,
Icon icon)
Should set icon for provided component
|
void |
setTitle(JComponent comp,
String name)
Should set title for provided component (e.g.
|
void |
setToolbarActions(JComponent comp,
Action[] toolbarActions)
Should set toolbar actions for provided component
|
void |
setToolTipText(JComponent comp,
String text)
Should set title for provided component (e.g.
|
void open()
void requestActive()
void requestVisible()
boolean isActivated()
void add(JComponent comp, IOContainer.CallBacks cb)
comp
- component to addcb
- callbacks for component notifications or null if component does not need notificationsvoid remove(JComponent comp)
comp
- component to removevoid select(JComponent comp)
comp
- component to selectJComponent getSelected()
void setTitle(JComponent comp, String name)
comp
- component for which title should be setname
- component titlevoid setToolTipText(JComponent comp, String text)
comp
- component for which title should be settext
- component tool tip textvoid setIcon(JComponent comp, Icon icon)
comp
- component for which icon should seticon
- component iconvoid setToolbarActions(JComponent comp, Action[] toolbarActions)
comp
- toolbarActions
- toolbar actions for componentboolean isCloseable(JComponent comp)
comp
- component which should be closeable