|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Content
A content is a wrapper of a component decorated with some properties like a title, an icon, etc. The visualization of a content depends on specific platform implementation. A platform implementation can use a JTabbedPane or a JDesktopPane for example. A PropertyChangeEvent is fired for the following properties:
| Method Summary | |
|---|---|
void |
detach(Content onContent,
AggregationPosition onPosition)
Detach this content aggregating it on the passed content using the passed position. |
void |
detach(Content onContent,
int onIndex,
AggregationPosition onPosition)
Detach this content aggregating it on the passed content using the passed position. |
void |
detachByReference(Content refContent,
AggregationPosition onPosition)
Detach this content aggregating it using the passed position into the content window that contains the refContent. |
ContentUI |
getContentUI()
Returns the content ui for this content based on the current installed ContentManagerUI. |
Icon |
getDisabledIcon()
Returns the content disabled icon. |
Dockable |
getDockableDelegator()
Returns the dockable that this tab is accomodating, null if no dockable is accomodated. |
Color |
getForeground()
Returns the content foreground color. |
int |
getMnemonic()
Returns the keyboard mnemonic for accessing this content. |
JPopupMenu |
getPopupMenu()
Returns the popup menu. |
RepresentativeAnchorDescriptor<Content> |
getRepresentativeAnchorDescriptor()
Returns the representative anchor descriptor used to modify the behaviours of that object. |
String |
getToolTipText()
Returns the content tooltip text. |
boolean |
isEnabled()
Returns whether or not the content is currently enabled. |
void |
reattach(Object... constraints)
Reattach a detached content using tha passed constraints. |
void |
setComponent(Component component)
Sets the component to component. |
void |
setDisabledIcon(Icon disabledIcon)
Sets the disabled icon to icon which can be null. |
void |
setEnabled(boolean enabled)
Sets whether or not the content is enabled. |
void |
setForeground(Color foreground)
Sets the foreground color foreground which can be
null, in which case the content's foreground color
will default to the foreground color of this Content. |
void |
setMnemonic(int mnemonic)
Sets the keyboard mnemonic for accessing this content. |
void |
setPopupMenu(JPopupMenu popupMenu)
Sets the popup menu to popupMenu. |
void |
setToolTipText(String toolTipText)
Sets the tool tip text to toolTipText which
can be null. |
| Methods inherited from interface org.noos.xing.mydoggy.Dockable |
|---|
ensureVisible, getComponent, getDockableManager, getIcon, getId, getTitle, isDetached, isFlashing, isMaximized, isMinimized, isSelected, isVisible, setDetached, setFlashing, setFlashing, setIcon, setMaximized, setMinimized, setSelected, setTitle |
| Methods inherited from interface org.noos.xing.mydoggy.Observable |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Method Detail |
|---|
void setForeground(Color foreground)
foreground which can be
null, in which case the content's foreground color
will default to the foreground color of this Content.
foreground - the color to be displayed as the content's foregroundgetForeground()Color getForeground()
Color of the content foreground.setForeground(java.awt.Color)void setDisabledIcon(Icon disabledIcon)
icon which can be null.
disabledIcon - the icon to be displayed in the content when disabled.getDisabledIcon()Icon getDisabledIcon()
setDisabledIcon(javax.swing.Icon)void setToolTipText(String toolTipText)
toolTipText which
can be null.
toolTipText - the tool tip text to be displayed for the content.getToolTipText()String getToolTipText()
setToolTipText(String)void setEnabled(boolean enabled)
enabled - whether or not the content should be enabled.isEnabled()boolean isEnabled()
setEnabled(boolean)void setComponent(Component component)
component.
component - the component for the contentDockable.getComponent()void setPopupMenu(JPopupMenu popupMenu)
popupMenu.
popupMenu - the popup menu for the content.getPopupMenu()JPopupMenu getPopupMenu()
setPopupMenu(javax.swing.JPopupMenu)void setMnemonic(int mnemonic)
VK_XXX
keycodes defined in java.awt.event.KeyEvent.
Mnemonics are case-insensitive, therefore a key event
with the corresponding keycode would cause the button to be
activated whether or not the Shift modifier was pressed.
mnemonic - the key code which represents the mnemonicgetMnemonic()int getMnemonic()
ContentUI getContentUI()
Dockable getDockableDelegator()
null if no dockable is accomodated.
null if no dockable is accomodated.ContentManager.addContent(Dockable)
void detach(Content onContent,
int onIndex,
AggregationPosition onPosition)
onContent - the content used as relative position. It must be already visible.onIndex - the relative index used if onPosition == DEFAULT.onPosition - the position used to detach the content.
IllegalArgumentException - if onContent is null.
void detach(Content onContent,
AggregationPosition onPosition)
onContent - the content used as relative position. It must be already visible.onPosition - the position used to detach the content.
IllegalArgumentException - if onContent is null.
void detachByReference(Content refContent,
AggregationPosition onPosition)
refContent - the refContent used to identify a content window.onPosition - the position used to detach the content.void reattach(Object... constraints)
constraints - the constraints used to reattach the content.RepresentativeAnchorDescriptor<Content> getRepresentativeAnchorDescriptor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||