new JToolTip()
static public ON_TIP_TEXT_CHANGED:String
public function updateUI():Void
Description copied from Component
Resets the UI property to a value from the current look and feel.
Component
subclasses must override this method
like this:
public void updateUI() { setUI((SliderUI)UIManager.getUI(this); }
public function setUI(newUI:ToolTipUI):Void
Description copied from Component
Sets the look and feel delegate for this component.
Component
subclasses generally override this method
to narrow the argument type. For example, in JSlider
:
public void setUI(SliderUI newUI) { super.setUI(newUI); }
Additionally Component
subclasses must provide a
getUI
method that returns the correct type. For example:
public SliderUI getUI() { return (SliderUI)ui; }
public function getUIClassID():String
Description copied from Component
Returns the UIDefaults
key used to
look up the name of the org.aswing.plaf.ComponentUI
class that defines the look and feel
for this component. Most applications will never need to
call this method. Subclasses of Component
that support
pluggable look and feel should override this method to
return a UIDefaults
key that maps to the
ComponentUI
subclass that defines their look and feel.
public function setTipText(t:String):Void
Sets the text to show when the tool tip is displayed. The string tipText may be null.
t | the String to display |
public function getTipText():String
Returns the text that is shown when the tool tip is displayed. The returned value may be null.
the string that displayed.
public function setComponent(c:Component):Void
Specifies the component that the tooltip describes. The component c may be null and will have no effect.
public function getComponent():Component
Returns the component the tooltip applies to. The returned value may be null.
the component that the tooltip describes
public function setOffsets(o:Point):Void
Sets the offsets of the tooltip related the described component.
o | the offsets point, delta x is o.x, delta y is o.y |
public function getOffsets():Point
Returns the offsets of the tooltip related the described component.
the offsets point, delta x is o.x, delta y is o.y
public function setOffsetsRelatedToMouse(b:Boolean):Void
Sets whether the offsets
is related the mouse position, otherwise
it will be related the described component position.
This change will be taked effect at the next showing, current showing will no be changed.
b | whether the offsets is related the mouse position
|