Class org.aswing.JToolTip

Description

Field Index

ON_TIP_TEXT_CHANGED

Inherited from Container

Inherited from Component

Inherited from EventDispatcher

Method Index

new JToolTip()
getComponent(), getOffsets(), getTipText(), getUIClassID(), isOffsetsRelatedToMouse(), setComponent(), setOffsets(), setOffsetsRelatedToMouse(), setTipText(), setUI(), updateUI()

Inherited from Container

Inherited from Component

Inherited from EventDispatcher

Constructor Detail

JToolTip

public function JToolTip()

Field Detail

ON_TIP_TEXT_CHANGED

static public ON_TIP_TEXT_CHANGED:String
When the tip text changed.
onTipTextChanged Event{source:JTextComponent}

Method Detail

updateUI

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);
   }
  

Overrides

updateUI() in org.aswing.Component

setUI

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;
 }
 

Overrides

setUI() in org.aswing.Component

getUIClassID

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.

Overrides

getUIClassID() in org.aswing.Component

setTipText

public function setTipText(t:String):Void

Sets the text to show when the tool tip is displayed. The string tipText may be null.

Parameters

tthe String to display

getTipText

public function getTipText():String

Returns the text that is shown when the tool tip is displayed. The returned value may be null.

Return

the string that displayed.

setComponent

public function setComponent(c:Component):Void

Specifies the component that the tooltip describes. The component c may be null and will have no effect.

Parameters

getComponent

public function getComponent():Component

Returns the component the tooltip applies to. The returned value may be null.

Return

the component that the tooltip describes

Overrides

getComponent() in org.aswing.Container

setOffsets

public function setOffsets(o:Point):Void

Sets the offsets of the tooltip related the described component.

Parameters

othe offsets point, delta x is o.x, delta y is o.y

getOffsets

public function getOffsets():Point

Returns the offsets of the tooltip related the described component.

Return

the offsets point, delta x is o.x, delta y is o.y

setOffsetsRelatedToMouse

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.

Parameters

bwhether the offsets is related the mouse position

isOffsetsRelatedToMouse

public function isOffsetsRelatedToMouse():Boolean

Returns whether the offsets is related the mouse position.

Return

whether the offsets is related the mouse position

See Also