|
||||||||||
| 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 | |
|---|---|
ContentUI |
getContentUI()
Returns the content ui for this content based on the current installed ContentManagerUI. |
javax.swing.Icon |
getDisabledIcon()
Returns the content disabled icon. |
Dockable |
getDockableDelegator()
Returns the dockable that this tab is accomodating, null if no dockable is accomodated. |
java.awt.Color |
getForeground()
Returns the content foreground color. |
int |
getMnemonic()
Returns the keyboard mnemonic for accessing this content. |
javax.swing.JPopupMenu |
getPopupMenu()
Returns the popup menu. |
java.lang.String |
getToolTipText()
Returns the content tooltip text. |
boolean |
isEnabled()
Returns whether or not the content is currently enabled. |
void |
setComponent(java.awt.Component component)
Sets the component to component. |
void |
setDisabledIcon(javax.swing.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(java.awt.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(javax.swing.JPopupMenu popupMenu)
Sets the popup menu to popupMenu. |
void |
setToolTipText(java.lang.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, 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(java.awt.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()java.awt.Color getForeground()
Color of the content foreground.setForeground(java.awt.Color)void setDisabledIcon(javax.swing.Icon disabledIcon)
icon which can be null.
disabledIcon - the icon to be displayed in the content when disabled.getDisabledIcon()javax.swing.Icon getDisabledIcon()
setDisabledIcon(javax.swing.Icon)void setToolTipText(java.lang.String toolTipText)
toolTipText which
can be null.
toolTipText - the tool tip text to be displayed for the content.getToolTipText()java.lang.String getToolTipText()
setToolTipText(String)void setEnabled(boolean enabled)
enabled - whether or not the content should be enabled.isEnabled()boolean isEnabled()
setEnabled(boolean)void setComponent(java.awt.Component component)
component.
component - the component for the contentDockable.getComponent()void setPopupMenu(javax.swing.JPopupMenu popupMenu)
popupMenu.
popupMenu - the popup menu for the content.getPopupMenu()javax.swing.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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||