Compiere Looks 1.2.1

org.compiere.swing
Interface CEditor

All Known Implementing Classes:
CButton, CCheckBox, CComboBox, CField, CPassword, CText, CTextField, CToggleButton

public interface CEditor

Compiere Editor interface

Version:
$Id: CEditor.java,v 1.1 2002/01/12 02:43:56 jjanke Exp $
Author:
Jorg Janke

Method Summary
 String getDisplay()
          Return Display Value
 Object getValue()
          Return Editor value
 boolean isMandatory()
          Is Field mandatory
 boolean isReadWrite()
          Is it possible to edit
 void setBackground(boolean error)
          Set Background based on editable / mandatory / error
 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
 

Method Detail

setReadWrite

public void setReadWrite(boolean rw)
Enable Editor

Parameters:
rw - true, if you can enter/select data

isReadWrite

public boolean isReadWrite()
Is it possible to edit

Returns:
true, if editable

setMandatory

public void setMandatory(boolean mandatory)
Set Editor Mandatory

Parameters:
mandatory - true, if you have to enter data

isMandatory

public boolean isMandatory()
Is Field mandatory

Returns:
true, if mandatory

setBackground

public void setBackground(boolean error)
Set Background based on editable / mandatory / error

Parameters:
error - if true, set background to error color, otherwise mandatory/editable

setVisible

public void setVisible(boolean visible)
Set Visible

Parameters:
visible - true if field is to be shown

setValue

public void setValue(Object value)
Set Editor to value

Parameters:
value - value of the editor

getValue

public Object getValue()
Return Editor value

Returns:
current value

getDisplay

public String getDisplay()
Return Display Value

Returns:
displayed String value

Compiere Looks 1.2.1

Copyright (c) 1999-2003 ComPiere, Inc. - Author: Jorg Janke