Ejemplo 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
Ejemplo n.º 2
0
 /**
  * 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
Ejemplo 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