Package org.compiere.swing
Interface CEditor
-
- All Known Subinterfaces:
VEditor
- All Known Implementing Classes:
CButton
,CCheckBox
,CComboBox
,CComboBoxEditable
,CConnectionEditor
,CField
,CPassword
,CPrinter
,CTextArea
,CTextField
,CTextPane
,CToggleButton
,VAccount
,VAssignment
,VBinary
,VButton
,VChart
,VCheckBox
,VColor
,VComboBox
,VDate
,VFile
,VImage
,VLocation
,VLocator
,VLookup
,VMemo
,VNumber
,VPassword
,VPAttribute
,VPaymentEditor
,VString
,VText
,VTextLong
,VURL
public interface CEditor
Adempiere Editor interface- Version:
- $Id: CEditor.java,v 1.2 2006/07/30 00:52:24 jjanke Exp $
- Author:
- Jorg Janke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDisplay()
Return Display ValueObject
getValue()
Return Editor valueboolean
isMandatory()
Is Field mandatoryboolean
isReadWrite()
Is it possible to editvoid
setBackground(boolean error)
Set Background based on editable / mandatory / errorvoid
setMandatory(boolean mandatory)
Set Editor Mandatoryvoid
setReadWrite(boolean rw)
Enable Editorvoid
setValue(Object value)
Set Editor to valuevoid
setVisible(boolean visible)
Set Visible
-
-
-
Method Detail
-
setReadWrite
void setReadWrite(boolean rw)
Enable Editor- Parameters:
rw
- true, if you can enter/select data
-
isReadWrite
boolean isReadWrite()
Is it possible to edit- Returns:
- true, if editable
-
setMandatory
void setMandatory(boolean mandatory)
Set Editor Mandatory- Parameters:
mandatory
- true, if you have to enter data
-
isMandatory
boolean isMandatory()
Is Field mandatory- Returns:
- true, if mandatory
-
setBackground
void setBackground(boolean error)
Set Background based on editable / mandatory / error- Parameters:
error
- if true, set background to error color, otherwise mandatory/editable
-
setVisible
void setVisible(boolean visible)
Set Visible- Parameters:
visible
- true if field is to be shown
-
setValue
void setValue(Object value)
Set Editor to value- Parameters:
value
- value of the editor
-
getValue
Object getValue()
Return Editor value- Returns:
- current value
-
getDisplay
String getDisplay()
Return Display Value- Returns:
- displayed String value
-
-