|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextArea
org.tentackle.print.PrintTextArea
public class PrintTextArea
TextArea for printing in PrintPanels
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTextArea |
|---|
JTextArea.AccessibleJTextArea |
| Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
|---|
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.text.JTextComponent |
|---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PrintTextArea()
Creates a text area. |
|
PrintTextArea(String text)
Creates a text area. |
|
PrintTextArea(String text,
int rows,
int columns)
Creates a text area. |
|
| Method Summary | |
|---|---|
Object |
getPrintValue()
Gets the value to be printed |
boolean |
isAutoHeight()
Gets the autoHeight flag. |
boolean |
isAutoWidth()
Gets the autoWidth flag. |
void |
setAutoHeight(boolean autoHeight)
Determines whether the textarea's height should be adjusted after setPrintValue(java.lang.Object). |
void |
setAutoWidth(boolean autoWidth)
Determines whether the textarea's width should be adjusted after setPrintValue(java.lang.Object). |
void |
setPrintValue(Object value)
Sets the value to be printed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PrintTextArea(String text,
int rows,
int columns)
text - the textrows - the number of rows, 0 = derive from textcolumns - the number of columns, 0 = derive from textpublic PrintTextArea(String text)
text - the textpublic PrintTextArea()
| Method Detail |
|---|
public void setAutoHeight(boolean autoHeight)
setPrintValue(java.lang.Object).
autoHeight - true if adjust, false if fixedPrintPanel.getDynamicSize()public boolean isAutoHeight()
public void setAutoWidth(boolean autoWidth)
setPrintValue(java.lang.Object).
autoWidth - true if adjust, false if fixedPrintPanel.getDynamicSize()public boolean isAutoWidth()
public Object getPrintValue()
PrintComponent
getPrintValue in interface PrintComponentpublic void setPrintValue(Object value)
If the autoHeight or autoWidth feature is enabled the
size of the textarea will be adjusted according to
the value. The new size of the panel can be retrieved
by PrintPanel.getDynamicSize() and set in
the report, for example Report.setLineSize(java.awt.Dimension).
setPrintValue in interface PrintComponentvalue - PrintPanel.getPreferredSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||