Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
Andrej Podhradsky edited this page Mar 7, 2014 · 5 revisions

API / Abstract

  • Text / AbstractText

Implementation(s)

  • DefaultText
  • LabeledText

Usage

DefaultText

Look up a text with index 0

Text defaultText = new DefaultText(0);

Look up a text with text value "text"

Text defaultText2 = new DefaultText("text");

LabeledText

Look up a text with label "Text label"

Text labeledText = new LabeledText("Text label");

Shared functionality

Get text value of the text

String text = defaultText.getText();

Get tool tip text of the text

String text = labeledText.getToolTipText();

Set text to value "Some text"

defaultText.setText("Some text");
Clone this wiki locally