|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.infonode.tabbedpanel.hover.TitledTabTabbedPanelHoverAction
public class TitledTabTabbedPanelHoverAction
TitledTabTabbedPanelHoverAction is an action that makes it easy to change
properties for a hovered TitledTab
and the TabbedPanel
it is a
member of. The action is meant to be set as a HoverListener
for a
TitledTab in the
TitledTabProperties
.
The action can be configured to add the TabbedPanelProperties only when the highlighted TitledTab is hovered or when any of the TitledTabs are hovered.
This hover action contains a TitledTabProperties object that will be added as super object to the hovered titled tab and then automatically removed when the titled tab is no longer hovered. It also contains a TabbedPanelProperties object that will be added as super object to the tabbed panel that the hovered titled tab is a member of. The TabbedPanelProperties are automatically removed from the tabbed panel if the hovered titled tab is removed.
Note: This action is not meant to be set as hover listener
for a Tabbed Panel (or any of its areas). For TabbedPanel, use
TabbedPanelTitledTabHoverAction
instead.
TabbedPanel
,
TitledTab
,
TitledTabProperties
,
TabbedPanelProperties
,
TabbedPanelTitledTabHoverAction
Field Summary | |
---|---|
private boolean |
applied
|
private boolean |
onlyHighlighted
|
private TabbedPanelProperties |
tabbedPanelProperties
|
private TabAdapter |
tabListener
|
private TitledTabProperties |
titledTabProperties
|
Constructor Summary | |
---|---|
TitledTabTabbedPanelHoverAction()
Creates a TitledTabTabbedPanelHoverAction containing an empty TitledTabProperties object and an empty TabbedPanelProperties object. |
|
TitledTabTabbedPanelHoverAction(boolean allTabs)
Creates a TitledTabTabbedPanelHoverAction containing an empty TitledTabProperties object and an empty TabbedPanelProperties object. |
|
TitledTabTabbedPanelHoverAction(TitledTabProperties titledTabProperties,
TabbedPanelProperties tabbedPanelProperties)
Creates a TitledTabTabbedPanelHoverAction containing with the given TitledTabProperties object and the given TabbedPanelProperties object. |
|
TitledTabTabbedPanelHoverAction(TitledTabProperties titledTabProperties,
TabbedPanelProperties tabbedPanelProperties,
boolean allTabs)
Creates a TitledTabTabbedPanelHoverAction containing with the given TitledTabProperties object and the given TabbedPanelProperties object. |
Method Summary | |
---|---|
private void |
applyTabbedPanel(TabbedPanel tabbedPanel)
|
TabbedPanelProperties |
getTabbedPanelProperties()
Gets the TabbedPanelProperties object for this action. |
TitledTabProperties |
getTitledTabProperties()
Gets the TitledTabProperties object for this action. |
void |
mouseEntered(HoverEvent event)
Called when the mouse enters the hoverable component |
void |
mouseExited(HoverEvent event)
Called when the mouse exits the hoverable component |
private void |
removeTabbedPanel(TabbedPanel tabbedPanel)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private TabbedPanelProperties tabbedPanelProperties
private TitledTabProperties titledTabProperties
private boolean applied
private boolean onlyHighlighted
private TabAdapter tabListener
Constructor Detail |
---|
public TitledTabTabbedPanelHoverAction()
public TitledTabTabbedPanelHoverAction(boolean allTabs)
allTabs
- true if the TabbedPanelProperties should be applied to the
tabbed panel when a tab is hovered, false if it should only be
applied when the the highlighted tab is hoveredpublic TitledTabTabbedPanelHoverAction(TitledTabProperties titledTabProperties, TabbedPanelProperties tabbedPanelProperties)
titledTabProperties
- reference to a TitledTabProperties objecttabbedPanelProperties
- reference to a TabbedPanelProperties objectpublic TitledTabTabbedPanelHoverAction(TitledTabProperties titledTabProperties, TabbedPanelProperties tabbedPanelProperties, boolean allTabs)
titledTabProperties
- reference to a TitledTabProperties objecttabbedPanelProperties
- reference to a TabbedPanelProperties objectallTabs
- true if the TabbedPanelProperties should be applied to the
tabbed panel when a tab is hovered, false if it should only be
applied when the the highlighted tab is hoveredMethod Detail |
---|
public TitledTabProperties getTitledTabProperties()
public TabbedPanelProperties getTabbedPanelProperties()
public void mouseEntered(HoverEvent event)
HoverListener
mouseEntered
in interface HoverListener
event
- the hover eventpublic void mouseExited(HoverEvent event)
HoverListener
mouseExited
in interface HoverListener
event
- the hover eventprivate void applyTabbedPanel(TabbedPanel tabbedPanel)
private void removeTabbedPanel(TabbedPanel tabbedPanel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |