Text Map Class: Methods


suntest.javastar.lib.JSTextMapping Methods

Method Description
computeText(Component) The method that computes the association between the Component and a String.

computeText(Component)

Syntax

Description

Implement this method to return the string you want to associate with the Component passed in. This is useful for things that behave like buttons (meaning, they have stable text). A text map is not usually helpful for mutable text components (such as TextComponents).

This method returns text to associate with c. If no text should be associated, it should return null.

Parameters




Send feedback to JavaStar-feedback@suntest.com
Copyright © 1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303. All rights reserved.