Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.javatools.ui
Class ExpansionTip.Adapter

java.lang.Object
  extended by oracle.javatools.ui.ExpansionTip.Adapter
All Implemented Interfaces:
java.awt.event.ComponentListener, java.awt.event.FocusListener, java.util.EventListener, javax.swing.event.AncestorListener
Enclosing class:
ExpansionTip

public abstract static class ExpansionTip.Adapter
extends java.lang.Object
implements javax.swing.event.AncestorListener, java.awt.event.ComponentListener, java.awt.event.FocusListener

An adapter that encapsulates component-specific logic needed by the expansion tip.


Constructor Summary
protected ExpansionTip.Adapter(javax.swing.JComponent component)
          Creates an adapter for a JComponent.
 
Method Summary
 void ancestorAdded(javax.swing.event.AncestorEvent event)
           
 void ancestorMoved(javax.swing.event.AncestorEvent event)
           
 void ancestorRemoved(javax.swing.event.AncestorEvent event)
           
 void componentHidden(java.awt.event.ComponentEvent e)
           
 void componentMoved(java.awt.event.ComponentEvent e)
           
 void componentResized(java.awt.event.ComponentEvent e)
           
 void componentShown(java.awt.event.ComponentEvent e)
           
protected  void fireStateChanged()
          Notify the expansion tip to revalidate a showing expansion.
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 javax.swing.JComponent getComponent()
          Gets the adapted component.
abstract  java.awt.Rectangle getContainingBounds(java.awt.Point position)
          Gets the visible (unexpanded) bounds of the expandable subcomponent containing a point, or null if none.
 java.awt.Color getExpandedBorderColor()
          Gets the color to use for the border of the expanded region.
 java.awt.Dimension getPreferredSize()
          Gets the preferred size of the expandable subcomponent containing the point last passed to getContainingBounds(java.awt.Point).
abstract  java.awt.Component getSubcomponent()
          Gets the expandable subcomponent containing the point last passed to getContainingBounds(java.awt.Point).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpansionTip.Adapter

protected ExpansionTip.Adapter(javax.swing.JComponent component)
Creates an adapter for a JComponent.

Method Detail

getComponent

public javax.swing.JComponent getComponent()
Gets the adapted component.


getContainingBounds

public abstract java.awt.Rectangle getContainingBounds(java.awt.Point position)
Gets the visible (unexpanded) bounds of the expandable subcomponent containing a point, or null if none. The expandable subcomponent may be the adapted component, but is more likely to be a renderer or other subcomponent.

Parameters:
position - The position to test, relative to the origin of the adapted component, coordinates.
Returns:
the rectangle of the containing component, or null.

getPreferredSize

public java.awt.Dimension getPreferredSize()
Gets the preferred size of the expandable subcomponent containing the point last passed to getContainingBounds(java.awt.Point). The result is indeterminate if that point was not contained by an expandable component. The default ExpansionTip.Adapter implementation returns getSubcomponent().getPreferredSize()


getSubcomponent

public abstract java.awt.Component getSubcomponent()
Gets the expandable subcomponent containing the point last passed to getContainingBounds(java.awt.Point). The result is indeterminate if that point was not contained by an expandable component.


getExpandedBorderColor

public java.awt.Color getExpandedBorderColor()
Gets the color to use for the border of the expanded region. The default ExpansionTip.Adapter implementation returns UIManager.getColor("Separator.foreground") if not null, and otherwise returns getComponent().getForeground().


fireStateChanged

protected void fireStateChanged()
Notify the expansion tip to revalidate a showing expansion. An adapter need not notify if it can determine that the the expandable subcomponent containing the point last passed to getContainingBounds(java.awt.Point) is unaffected.


ancestorAdded

public void ancestorAdded(javax.swing.event.AncestorEvent event)
Specified by:
ancestorAdded in interface javax.swing.event.AncestorListener

ancestorMoved

public void ancestorMoved(javax.swing.event.AncestorEvent event)
Specified by:
ancestorMoved in interface javax.swing.event.AncestorListener

ancestorRemoved

public void ancestorRemoved(javax.swing.event.AncestorEvent event)
Specified by:
ancestorRemoved in interface javax.swing.event.AncestorListener

componentHidden

public void componentHidden(java.awt.event.ComponentEvent e)
Specified by:
componentHidden in interface java.awt.event.ComponentListener

componentMoved

public void componentMoved(java.awt.event.ComponentEvent e)
Specified by:
componentMoved in interface java.awt.event.ComponentListener

componentResized

public void componentResized(java.awt.event.ComponentEvent e)
Specified by:
componentResized in interface java.awt.event.ComponentListener

componentShown

public void componentShown(java.awt.event.ComponentEvent e)
Specified by:
componentShown in interface java.awt.event.ComponentListener

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Specified by:
focusLost in interface java.awt.event.FocusListener

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

Copyright © 1997, 2011, Oracle. All rights reserved.