|
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
org.compiere.db.CConnectionEditor
public class CConnectionEditor
Connection Editor.
| Nested Class Summary | |
|---|---|
class |
CConnectionEditor.CConnectionEditor_MouseListener
MouseListener |
| 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.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 | |
|---|---|
CConnectionEditor()
Connection Editor creating new Connection |
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener l)
Add Action Listener |
String |
getDisplay()
Return Display Value |
Object |
getValue()
Return Editor value |
boolean |
isMandatory()
Is Field mandatory |
boolean |
isReadWrite()
Is it possible to edit |
static void |
main(String[] args)
Test Method |
void |
removeActionListener(ActionListener l)
Remove Action Listener |
void |
setBackground(boolean error)
Set Background based on editable / mandatory / error |
void |
setBackground(Color color)
Set Background color |
void |
setDisplay()
Update Display with Connection info |
void |
setMandatory(boolean mandatory)
Set Editor Mandatory |
void |
setReadWrite(boolean rw)
Enable Editor |
void |
setValue(Object value)
Set Editor to value |
void |
setVisible(boolean visible)
Set Visible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CConnectionEditor()
| Method Detail |
|---|
public void setReadWrite(boolean rw)
setReadWrite in interface CEditorrw - true, if you can enter/select datapublic boolean isReadWrite()
isReadWrite in interface CEditorpublic void setMandatory(boolean mandatory)
setMandatory in interface CEditormandatory - true, if you have to enter datapublic boolean isMandatory()
isMandatory 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 - public void setVisible(boolean visible)
setVisible in interface CEditorsetVisible in class JComponentvisible - true if field is to be shownpublic 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 setDisplay()
public void removeActionListener(ActionListener l)
l - public void addActionListener(ActionListener l)
l - public static void main(String[] args)
args -
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||