Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.javatools.ui.builders
Interface BuiltTextField


public interface BuiltTextField

A BuiltTextField constructed by a TextFieldBuilder. Add the component returned by getGUI() to the toolbar area of the UI.


Method Summary
 javax.swing.JComponent getGUI()
           
 javax.swing.JLabel getLabel()
          Get the label associated with the text field.
 java.lang.String getText()
           
 javax.swing.JTextField getTextField()
           
 void setEditable(boolean isEditable)
           
 void setEnabled(boolean isEnabled)
           
 void setText(java.lang.String text)
           
 

Method Detail

getGUI

javax.swing.JComponent getGUI()
Returns:
the main component containing all of the ui to add to a container.

getTextField

javax.swing.JTextField getTextField()
Returns:
the text field. Don't add this to the UI, add the component returned by getGUI()

setEnabled

void setEnabled(boolean isEnabled)

setEditable

void setEditable(boolean isEditable)

setText

void setText(java.lang.String text)

getText

java.lang.String getText()

getLabel

javax.swing.JLabel getLabel()
Get the label associated with the text field.

When constructing a form type layout, the labels and text fields must be aligned with each other. Use the builder to build the component, then the label can be extracted via this method and added to the form in the correct place. This is easier than making the label separately as the builder does helpful things automatically such as set the mnemonic and enable/disable the label in sync with the text field.

Returns:

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.