|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.tabbedpanel.hover.TabbedPanelTitledTabHoverAction
public class TabbedPanelTitledTabHoverAction
TabbedPanelTitledTabHoverAction is an action that makes it easy to change
properties for a hovered TabbedPanel
containing TitledTab
s.
The action is meant to be set as a HoverListener
for the entire
tabbed panel, the tab area, the tab area components area and/or the content
area in their corresponding properties objects.
The action can be configured to add the TitledTabProperties to all tabs or only the highlighted tab.
This hover action contains a TabbedPanelProperties object that will be added as super object to the hovered tabbed panel and then automatically removed when the area is no longer hovered. It also contains a TitledTabProperties object that will be added as super object to all titled tabs in the hovered tabbed panel and then removed when the tabbed panel is no longer hovered.
If a titled tab is added to the tabbed panel while the tabbed panel is hovered, the action will automatically add the TitledTabProperties to the titled tab. If a titled tab is removed while the tabbed panel is hovered, the properties will automatically be removed.
Note: This action is not meant to be set as hover listener
in the TitledTabProperties for a titled tab. For TitledTab, use
TitledTabTabbedPanelHoverAction
instead.
TabbedPanel
,
TitledTab
,
TabbedPanelProperties
,
TabAreaProperties
,
TabAreaComponentsProperties
,
TabbedPanelContentPanelProperties
,
TitledTabTabbedPanelHoverAction
,
TitledTabProperties
Field Summary | |
---|---|
private boolean |
onlyHighlighted
|
private TabbedPanelProperties |
tabbedPanelProperties
|
private TabAdapter |
tabListener
|
private TitledTabProperties |
titledTabProperties
|
Constructor Summary | |
---|---|
TabbedPanelTitledTabHoverAction()
Creates a TabbedPanelTitledTabHoverAction containing an empty TabbedPanelProperties object and an empty TitledTabProperties object. |
|
TabbedPanelTitledTabHoverAction(boolean allTabs)
Creates a TabbedPanelTitledTabHoverAction containing an empty TabbedPanelProperties object and an empty TitledTabProperties object. |
|
TabbedPanelTitledTabHoverAction(TabbedPanelProperties tabbedPanelProperties,
TitledTabProperties titledTabProperties)
Creates a TabbedPanelTitledTabHoverAction with the given TabbedPanelProperties object and the given TitledTabProperties object. |
|
TabbedPanelTitledTabHoverAction(TabbedPanelProperties tabbedPanelProperties,
TitledTabProperties titledTabProperties,
boolean allTabs)
Creates a TabbedPanelTitledTabHoverAction with the given TabbedPanelProperties object and the given TitledTabProperties object. |
Method Summary | |
---|---|
private void |
applyTitledTabProperties(TabbedPanel tabbedPanel,
TitledTab titledTab)
|
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 |
removeTitledTabProperties(TabbedPanel tabbedPanel,
TitledTab titledTab)
|
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 onlyHighlighted
private TabAdapter tabListener
Constructor Detail |
---|
public TabbedPanelTitledTabHoverAction()
public TabbedPanelTitledTabHoverAction(boolean allTabs)
allTabs
- true if TitledTabProperties should be applied to all tabs,
false if only to the highlighted tabpublic TabbedPanelTitledTabHoverAction(TabbedPanelProperties tabbedPanelProperties, TitledTabProperties titledTabProperties)
tabbedPanelProperties
- reference to a TabbedPanelProperties objecttitledTabProperties
- reference to a TitledTabProperties objectpublic TabbedPanelTitledTabHoverAction(TabbedPanelProperties tabbedPanelProperties, TitledTabProperties titledTabProperties, boolean allTabs)
tabbedPanelProperties
- reference to a TabbedPanelProperties objecttitledTabProperties
- reference to a TitledTabProperties objectallTabs
- true if TitledTabProperties should be applied to all tabs,
false if only to the highlighted tabMethod 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 applyTitledTabProperties(TabbedPanel tabbedPanel, TitledTab titledTab)
private void removeTitledTabProperties(TabbedPanel tabbedPanel, TitledTab titledTab)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |