|
Compiere 3.1 | |||||||||
| 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.JScrollPane
org.compiere.swing.CTextPane
public class CTextPane
Compiere TextPane - A ScrollPane with a JTextPane. Manages visibility, opaque and color consistently *
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JScrollPane |
|---|
JScrollPane.AccessibleJScrollPane, JScrollPane.ScrollBar |
| 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.JScrollPane |
|---|
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport |
| 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 | |
|---|---|
CTextPane()
Constructs a new TextPane (HTML) |
|
CTextPane(JTextPane textPane)
Create a JScrollArea with a JTextEditor |
|
CTextPane(StyledDocument doc)
Constructs a new JTextPane with the given document |
|
| Method Summary | |
|---|---|
void |
addFocusListener(FocusListener l)
Add Focus Listener |
void |
addInputMethodListener(InputMethodListener l)
Add Input Method Listener |
void |
addKeyListener(KeyListener l)
Add Key Listener |
void |
addMouseListener(MouseListener l)
Add Mouse Listener |
Action[] |
getActions()
Get Editor Actions |
Color |
getBackground()
Get Background |
int |
getCaretPosition()
Get Caret Position |
String |
getDisplay()
Return Display Value |
Component |
getFocusableComponent()
Get Focus Component |
Color |
getForeground()
Get Foreground |
InputMethodRequests |
getInputMethodRequests()
Get Input Method Requests |
String |
getText()
Get Text |
Object |
getValue()
Return Editor value |
boolean |
isEditable()
Editable |
boolean |
isMandatory()
Is Field mandatory |
boolean |
isReadWrite()
Is it possible to edit |
void |
requestFocus()
Request Focus |
boolean |
requestFocusInWindow()
Request Focus In Window |
void |
setBackground(boolean error)
Set Background based on editable / mandatory / error |
void |
setBackground(Color color)
Set Background |
void |
setCaretPosition(int pos)
Set Caret Position |
void |
setContentType(String type)
Set Content Type |
void |
setEditable(boolean edit)
Set Editable |
void |
setForeground(Color color)
Set Foreground |
void |
setInputVerifier(InputVerifier l)
Set Input Verifier |
void |
setMandatory(boolean mandatory)
Set Editor Mandatory |
void |
setMargin(Insets m)
Set Text Margin |
void |
setOpaque(boolean isOpaque)
Set Opaque |
void |
setPage(URL url)
Set Editor to page |
void |
setReadWrite(boolean rw)
Enable Editor |
void |
setText(String text)
Set Text and position top |
void |
setValue(Object value)
Set Editor to value |
void |
write(Writer out)
Write content |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.swing.CEditor |
|---|
setVisible |
| Constructor Detail |
|---|
public CTextPane()
public CTextPane(StyledDocument doc)
doc - the model to usepublic CTextPane(JTextPane textPane)
textPane - | Method Detail |
|---|
public void setMandatory(boolean mandatory)
setMandatory in interface CEditormandatory - true, if you have to enter datapublic boolean isMandatory()
isMandatory in interface CEditorpublic void setReadWrite(boolean rw)
setReadWrite in interface CEditorrw - true, if you can enter/select datapublic boolean isReadWrite()
isReadWrite in interface CEditorpublic void setBackground(boolean error)
setBackground in interface CEditorerror - if true, set background to error color, otherwise
mandatory/editablepublic void setBackground(Color color)
setBackground in class JComponentcolor - colorpublic Color getBackground()
getBackground in class Componentpublic void setForeground(Color color)
setForeground in class JComponentcolor - colorpublic Color getForeground()
getForeground in class Componentpublic void setContentType(String type)
type - e.g. text/htmlpublic void setValue(Object value)
setValue in interface CEditorvalue - value of the editorpublic Object getValue()
getValue in interface CEditorpublic String getDisplay()
getDisplay in interface CEditorpublic void setText(String text)
text - public String getText()
public void setCaretPosition(int pos)
pos - pospublic int getCaretPosition()
public void setEditable(boolean edit)
edit - editablepublic boolean isEditable()
public void setMargin(Insets m)
m - insetspublic void setOpaque(boolean isOpaque)
setOpaque in class JComponentisOpaque - opaquepublic void addFocusListener(FocusListener l)
addFocusListener in class Componentl - listenerpublic void addMouseListener(MouseListener l)
addMouseListener in class Componentl - listnerpublic void addKeyListener(KeyListener l)
addKeyListener in class Componentl - listnerpublic void addInputMethodListener(InputMethodListener l)
addInputMethodListener in class Componentl - listenerpublic InputMethodRequests getInputMethodRequests()
getInputMethodRequests in class Componentpublic void setInputVerifier(InputVerifier l)
setInputVerifier in class JComponentl - verifyerpublic void requestFocus()
requestFocus in class JComponentpublic boolean requestFocusInWindow()
requestFocusInWindow in class JComponentpublic Component getFocusableComponent()
public Action[] getActions()
public void write(Writer out)
throws IOException
out - writer
IOException
public void setPage(URL url)
throws IOException
url - url
IOException
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||