|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.AbstractButton javax.swing.JMenuItem javax.swing.JCheckBoxMenuItem bibliothek.gui.dock.facile.menu.CloseableDockableMenuPiece.Item
protected class CloseableDockableMenuPiece.Item
An item showing the visibility state of one Dockable
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JCheckBoxMenuItem |
---|
JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem |
Nested classes/interfaces inherited from class javax.swing.JMenuItem |
---|
JMenuItem.AccessibleJMenuItem |
Nested classes/interfaces inherited from class javax.swing.AbstractButton |
---|
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
CloseableDockableMenuPiece.Item(Dockable dockable)
Creates a new item. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
|
void |
destroy()
Removes all listeners, frees as many resources as possible |
void |
setDockableState(boolean visible)
Sets whether the Dockable of this item is currently
visible or not. |
void |
titleBound(Dockable dockable,
DockTitle title)
Will be invoked when a DockTitle was bound
to a Dockable . |
void |
titleExchanged(Dockable dockable,
DockTitle title)
Invoked when the properties of a Dockable have a so dramatically
changed, that the DockTitle title is no longer
considered a good title and should be replaced. |
void |
titleIconChanged(Dockable dockable,
Icon oldIcon,
Icon newIcon)
Invoked when the title-icon of a Dockable has changed |
void |
titleTextChanged(Dockable dockable,
String oldTitle,
String newTitle)
Invoked when the title of a Dockable has changed. |
void |
titleToolTipChanged(Dockable dockable,
String oldToolTip,
String newToolTip)
Called when the tooltip of a Dockable changed. |
void |
titleUnbound(Dockable dockable,
DockTitle title)
Will be invoked when a DockTitle was unbound
from a Dockable . |
Methods inherited from class javax.swing.JCheckBoxMenuItem |
---|
getAccessibleContext, getSelectedObjects, getState, getUIClassID, paramString, setState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CloseableDockableMenuPiece.Item(Dockable dockable)
dockable
- the element that will be shown or hidden when the
user clicks onto this itemMethod Detail |
---|
public void setDockableState(boolean visible)
Dockable
of this item is currently
visible or not.
visible
- the new statepublic void destroy()
public void titleBound(Dockable dockable, DockTitle title)
DockableListener
DockTitle
was bound
to a Dockable
.
titleBound
in interface DockableListener
dockable
- the Dockable
whose title is settitle
- the new titlepublic void titleIconChanged(Dockable dockable, Icon oldIcon, Icon newIcon)
DockableListener
Dockable
has changed
titleIconChanged
in interface DockableListener
dockable
- the Dockable
whose title is changedoldIcon
- the old icon, may be null
newIcon
- the new icon, may be null
public void titleTextChanged(Dockable dockable, String oldTitle, String newTitle)
DockableListener
Dockable
has changed.
titleTextChanged
in interface DockableListener
dockable
- the Dockable
whose title is changedoldTitle
- the title before the changenewTitle
- the title after the changepublic void titleToolTipChanged(Dockable dockable, String oldToolTip, String newToolTip)
DockableListener
Dockable
changed.
titleToolTipChanged
in interface DockableListener
dockable
- the dockable whose tooltip changedoldToolTip
- the old valuenewToolTip
- the new valuepublic void titleUnbound(Dockable dockable, DockTitle title)
DockableListener
DockTitle
was unbound
from a Dockable
.
titleUnbound
in interface DockableListener
dockable
- the Dockable
whose title was removedtitle
- the remove titlepublic void titleExchanged(Dockable dockable, DockTitle title)
DockableListener
Dockable
have a so dramatically
changed, that the DockTitle
title
is no longer
considered a good title and should be replaced. The one element which shows
title
should unbind it, and request a new title.
titleExchanged
in interface DockableListener
dockable
- the source of the eventtitle
- the title that should be discarded, can be null
to alert elements which do show the null
-titlepublic void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |