Esempio n. 1
0
 /**
  * Set Background based on editable / mandatory / error
  *
  * @param error if true, set background to error color, otherwise mandatory/editable
  */
 @Override
 public void setBackground(boolean error) {
   if (error) setBackground(AdempierePLAF.getFieldBackground_Error());
   else if (!isReadWrite()) setBackground(AdempierePLAF.getFieldBackground_Inactive());
   else if (isMandatory()) setBackground(AdempierePLAF.getFieldBackground_Mandatory());
   else setBackground(AdempierePLAF.getFieldBackground_Normal());
 } //  setBackground
 /**
  * Set Background based on editable / mandatory / error
  *
  * @param error if true, set background to error color, otherwise mandatory/editable
  */
 public void setBackground(boolean error) {
   Color c = null;
   if (error) c = AdempierePLAF.getFieldBackground_Error();
   else if (!m_rw) c = AdempierePLAF.getFieldBackground_Inactive();
   else if (m_mandatory) c = AdempierePLAF.getFieldBackground_Mandatory();
   else c = AdempierePLAF.getFieldBackground_Normal();
   setBackground(c);
 } //  setBackground
Esempio n. 3
0
 /**
  * Set Background
  *
  * @param error Error
  */
 public void setBackground(boolean error) {
   if (error) setBackground(AdempierePLAF.getFieldBackground_Error());
   else if (!m_readWrite) setBackground(AdempierePLAF.getFieldBackground_Inactive());
   else if (m_mandatory) setBackground(AdempierePLAF.getFieldBackground_Mandatory());
   else setBackground(AdempierePLAF.getInfoBackground());
 } //	setBackground