fi.hut.tml.xsmiles.gui.components.awt
Class AWTTextArea

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.components.general.ComponentBase
      extended byfi.hut.tml.xsmiles.gui.components.awt.AWTStylableComponent
          extended byfi.hut.tml.xsmiles.gui.components.awt.AWTTextComponent
              extended byfi.hut.tml.xsmiles.gui.components.awt.AWTInput
                  extended byfi.hut.tml.xsmiles.gui.components.awt.AWTTextArea
All Implemented Interfaces:
java.util.EventListener, java.awt.event.FocusListener, XComponent, XInput, XSecret, XText, XTextArea

public class AWTTextArea
extends AWTInput
implements XTextArea

The only addition is add and remove this is extended from SwingComponent, which will add captions and styling etc

Author:
Mikko Honkala

Field Summary
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTInput
echoChar, isSecret
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTTextComponent
fGUI, insideChangeEvent, textcomponent
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTStylableComponent
hiddenFrame
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase
content, currentFont, currentZoom, defaultBGColor, defaultFont, defaultSize, fInputMode, hintText, style
 
Fields inherited from interface fi.hut.tml.xsmiles.gui.components.XInput
ENTER_STROKED
 
Constructor Summary
AWTTextArea(java.lang.String s, GUI g)
           
 
Method Summary
 void append(java.lang.String text)
           
 java.awt.Component createContent()
          creates the content component
 void setCaretPosition(int pos)
           
 void setWordWrapping(boolean wrap)
           
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTInput
addActionListener, getMinimumSize, getPassword, init, removeActionListener, removeBorders, setEnabled
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTTextComponent
addFocusListener, addTextListener, focusGained, focusLost, getDefaultBackgroundColor, getEditable, getText, removeFocusListener, removeTextListener, setEditable, setText
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTStylableComponent
addHelpListener, createHint, getHiddenFrame, getPreferredSize, isCaption, removeHelpListener, setBackground, setHintRecursively, setHintText, sizeComponent
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase
addMouseListener, getAddableComponent, getComponent, getDefaultSize, getEnabled, getFormatter, getHeight, getSizableComponent, getSize, getStylableComponent, getStyle, getWidth, getX, getY, removeMouseListener, setBounds, setDefaultSize, setFocus, setFont, setForeground, setInputMode, setStyle, setVisible, setZoom, sizeComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fi.hut.tml.xsmiles.gui.components.XText
addTextListener, getEditable, getText, removeTextListener, setEditable, setText
 
Methods inherited from interface fi.hut.tml.xsmiles.gui.components.XComponent
addActionListener, addFocusListener, addHelpListener, addMouseListener, getComponent, getEnabled, getHeight, getSize, getStyle, getWidth, getX, getY, removeActionListener, removeFocusListener, removeHelpListener, removeMouseListener, setBackground, setBounds, setEnabled, setFocus, setForeground, setHintText, setInputMode, setStyle, setVisible, setZoom
 

Constructor Detail

AWTTextArea

public AWTTextArea(java.lang.String s,
                   GUI g)
Method Detail

createContent

public java.awt.Component createContent()
creates the content component

Overrides:
createContent in class AWTInput

setWordWrapping

public void setWordWrapping(boolean wrap)
Specified by:
setWordWrapping in interface XTextArea

append

public void append(java.lang.String text)
Specified by:
append in interface XTextArea

setCaretPosition

public void setCaretPosition(int pos)
Specified by:
setCaretPosition in interface XTextArea


X-Smiles 1.2