|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.ui.ExpansionTip.Adapter
public abstract static class ExpansionTip.Adapter
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 |
---|
protected ExpansionTip.Adapter(javax.swing.JComponent component)
JComponent
.Method Detail |
---|
public javax.swing.JComponent getComponent()
public abstract java.awt.Rectangle getContainingBounds(java.awt.Point position)
position
- The position to test, relative to the origin of the adapted component, coordinates.public java.awt.Dimension getPreferredSize()
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()
public abstract java.awt.Component getSubcomponent()
getContainingBounds(java.awt.Point)
. The result is indeterminate if that point was not contained by an expandable component.public java.awt.Color getExpandedBorderColor()
ExpansionTip.Adapter
implementation returns UIManager.getColor("Separator.foreground")
if not null, and otherwise returns getComponent().getForeground()
.protected void fireStateChanged()
getContainingBounds(java.awt.Point)
is unaffected.public void ancestorAdded(javax.swing.event.AncestorEvent event)
ancestorAdded
in interface javax.swing.event.AncestorListener
public void ancestorMoved(javax.swing.event.AncestorEvent event)
ancestorMoved
in interface javax.swing.event.AncestorListener
public void ancestorRemoved(javax.swing.event.AncestorEvent event)
ancestorRemoved
in interface javax.swing.event.AncestorListener
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |