Adempiere 3.5.2a

org.compiere.model
Class MColor

java.lang.Object
  extended by org.compiere.model.PO
      extended by org.compiere.model.X_AD_Color
          extended by org.compiere.model.MColor
All Implemented Interfaces:
Serializable, Comparator, I_AD_Color, I_Persistent, Evaluatee

public class MColor
extends X_AD_Color

Color Persistent Object Model (DisplayType=27)

Version:
$Id: MColor.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.compiere.model.X_AD_Color
COLORTYPE_AD_Reference_ID, COLORTYPE_Gradient, COLORTYPE_Line, COLORTYPE_NormalFlat, COLORTYPE_TexturePicture, STARTPOINT_AD_Reference_ID, STARTPOINT_East, STARTPOINT_North, STARTPOINT_NorthEast, STARTPOINT_NorthWest, STARTPOINT_South, STARTPOINT_SouthEast, STARTPOINT_SouthWest, STARTPOINT_West
 
Fields inherited from class org.compiere.model.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
 
Fields inherited from interface org.compiere.model.I_AD_Color
accessLevel, COLUMNNAME_AD_Color_ID, COLUMNNAME_AD_Image_ID, COLUMNNAME_Alpha, COLUMNNAME_Alpha_1, COLUMNNAME_Blue, COLUMNNAME_Blue_1, COLUMNNAME_ColorType, COLUMNNAME_Green, COLUMNNAME_Green_1, COLUMNNAME_ImageAlpha, COLUMNNAME_IsDefault, COLUMNNAME_LineDistance, COLUMNNAME_LineWidth, COLUMNNAME_Name, COLUMNNAME_Red, COLUMNNAME_Red_1, COLUMNNAME_RepeatDistance, COLUMNNAME_StartPoint, Model, Table_ID, Table_Name
 
Constructor Summary
MColor(Properties ctx, int AD_Color_ID, String trxName)
          Color Model
 
Method Summary
 CompiereColor getAdempiereColor()
          Get AdempiereColor.
protected  Object loadSpecial(ResultSet rs, int index)
          Load Special data (images, ..).
protected  String saveNewSpecial(Object value, int index)
          Save Special Data.
 String toString()
          String Representation
 
Methods inherited from class org.compiere.model.X_AD_Color
get_AccessLevel, getAD_Color_ID, getAD_Image_ID, getAD_Image, getAlpha_1, getAlpha, getBlue_1, getBlue, getColorType, getGreen_1, getGreen, getImageAlpha, getKeyNamePair, getLineDistance, getLineWidth, getName, getRed_1, getRed, getRepeatDistance, getStartPoint, initPO, isDefault, setAD_Color_ID, setAD_Image_ID, setAlpha_1, setAlpha, setBlue_1, setBlue, setColorType, setGreen_1, setGreen, setImageAlpha, setIsDefault, setLineDistance, setLineWidth, setName, setRed_1, setRed, setRepeatDistance, setStartPoint
 
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, compare, copyValues, copyValues, createAttachment, delete_Accounting, delete_Tree, delete, delete, deleteEx, deleteEx, dump, dump, equals, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_Table_ID, get_TableName, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_new, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadComplete, loadDefaults, lock, save, save, saveEx, saveEx, saveNew_getID, saveReplica, saveUpdate, set_ColumnUpdateable, set_CustomColumn, set_TrxName, set_TrxName, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setDoc, setDocWorkflowMgr, setIsActive, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, unlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.compiere.model.I_Persistent
save
 

Constructor Detail

MColor

public MColor(Properties ctx,
              int AD_Color_ID,
              String trxName)
Color Model

Parameters:
ctx - context
AD_Color_ID - color
trxName - transaction
Method Detail

toString

public String toString()
String Representation

Overrides:
toString in class X_AD_Color
Returns:
string

loadSpecial

protected Object loadSpecial(ResultSet rs,
                             int index)
                      throws SQLException
Load Special data (images, ..). To be extended by sub-classes

Overrides:
loadSpecial in class PO
Parameters:
rs - result set
index - zero based index
Returns:
value
Throws:
SQLException

saveNewSpecial

protected String saveNewSpecial(Object value,
                                int index)
Save Special Data. AD_Image_ID (Background)

Overrides:
saveNewSpecial in class PO
Parameters:
value - value
index - index
Returns:
SQL code for INSERT VALUES clause

getAdempiereColor

public CompiereColor getAdempiereColor()
Get AdempiereColor. see org.compiere.grid.ed.VColor#getAdempiereColor

Returns:
AdempiereColor

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.