pt.despodata.java.ddata.table
Class CellProperties

java.lang.Object
  extended bypt.despodata.java.ddata.table.CellProperties
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
DDataCheckboxEditor, DDataCheckboxRenderer, DDataDDataComboEditor, DDataDDataComboRenderer, DDataDefaultRendererTable, DDataEachRowEditor, DDataEachRowRenderer, DDataTextAreaEditor, DDataTextAreaRenderer, DDataTextFieldEditor, DDataTextFieldRenderer

public class CellProperties
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
static byte CHECKBOX
           
static byte COMBOBOX
           
static byte DATA
           
static byte FIELD
           
static byte FILECHOOSER
           
static byte ICON
           
static byte MULTILINETEXT
           
static byte TEXT
           
 
Constructor Summary
CellProperties()
          Construtor default define um campo do tipo de texto
CellProperties(boolean editable, boolean validateOnLostFocus, boolean autoFormat, boolean required, long maxValue, long minValue, int maxLength, java.lang.String dbDataType, int numDecimais, boolean onlyDigits)
           
CellProperties(boolean editable, boolean validateOnLostFocus, boolean autoFormat, boolean required, java.lang.Object maxValue, java.lang.Object minValue, int maxLength, java.lang.String dbDataType, java.lang.String text, java.lang.String table, java.lang.String column, java.lang.String referenceTable, java.lang.String descriptionColumn, java.lang.String referencePK, java.util.ArrayList aditionalColumns, DDataControlFilterListener filter, java.lang.String where, boolean showCode, boolean showDescription, boolean pk, boolean fk, boolean showExpansionButton, int numDecimais, java.awt.Color backGroundColor, java.awt.Color foreGroundColor, int delegateType, boolean onlyDigits, boolean isAutoSum, int[] rowsToSum)
           
CellProperties(boolean editable, java.lang.String text)
          Checkbox
CellProperties(java.sql.Connection _con, java.lang.String _table, java.lang.String _code, java.lang.String _desc, java.lang.String _where, boolean _showCode)
           
CellProperties(java.sql.Connection _con, java.lang.String _table, java.lang.String _code, java.lang.String _desc, java.lang.String _where, boolean _showCode, java.lang.String[] _aditionalColumns)
           
CellProperties(int _tipo)
           
CellProperties(int _tipo, boolean _editable)
           
CellProperties(java.lang.String table, boolean isPk, boolean showDesc)
           
CellProperties(java.lang.String _dbDataType, long min, long max, int _maxLength, boolean _required, boolean _validateOnLostFocus, boolean _editable)
          Construtor utilizado para definir campos de texto
CellProperties(java.lang.String table, java.lang.String column, boolean isPk, boolean showDesc)
           
CellProperties(java.lang.String table, java.lang.String column, boolean isFk, boolean showDesc, java.lang.String refTable, java.lang.String desColumn, java.lang.String refColumn)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 java.lang.String[] getAditionalColumn()
           
 java.lang.String getAditionalColumn(int index)
           
 java.awt.Color getBackGroundColor()
           
 java.lang.String getColumn()
          retorna o nome da coluna de codigo
 java.lang.String getDbDataType()
          Retorna o tipo do campo
 int getDelegateType()
           
 java.lang.String getDescriptionColumn()
          Retorna o nome da coluna de descrição
 DDataControlFilterListener getFilter()
           
 java.awt.Color getForeGroundColor()
           
 int getMaxLenght()
          Deprecated.  
 int getMaxLength()
          retorna o tamanho maximo do campo
 java.lang.Object getMaxValue()
          Retorna o valor máximo do campo
 long getMaxValueLong()
          Retorna o valor máximo do campo
 java.lang.Object getMinValue()
          Retorna o valor minimo
 long getMinValueLong()
          Retorna o valor minimo
 int getNumDecimais()
           
 java.lang.String getReferencePK()
           
 java.lang.String getReferenceTable()
           
 boolean getShowCode()
           
 boolean getShowDescription()
           
 java.lang.String getTable()
          retorna o nome da tabela
 java.lang.String getText()
          Retorna o texto da Checkbox
 java.lang.String getWhereClause()
          Retorna a clausula where
 boolean isAutoFormat()
          Se a celula tem formatação automatica retorna true
 boolean isAutoSum()
           
 boolean isEditable()
          se a celula é editavel retorna true
 boolean isFK()
          É chave estrangeira
 boolean isOnlyDigits()
           
 boolean isPK()
          É chave primaria
 boolean isRequired()
          Se a celula tem preenchimento obrigatorio retorna true
 boolean isShowExpansionButton()
          devolve se deve mostrar botão de expansão
 boolean isValidateOnLostFocus()
          Se a celula validar no lost focus retorn true
 void setAditionalColumn(int index, java.lang.String _column)
           
 void setAditionalColumn(java.lang.String[] _columns)
           
 void setAutoFormat(boolean _autoFormat)
          Define se a celula faz formatação automática
 void setAutSum(boolean autosum)
           
 void setBackGroundColor(java.awt.Color bgColor)
           
 void setColumn(java.lang.String _code)
          Define o nome do campo de codigo
 void setDbDataType(java.lang.String _dbDataType)
          Define o tipo de campo
 void setDelegateType(int _delegateType)
           
 void setDescriptionColumn(java.lang.String _desc)
          Define o nome da coluna de descrição
 void setEditable(boolean _editable)
          Define se a coluna é editavel
 void setFilter(DDataControlFilterListener _filter)
           
 void setFK(boolean _fk)
          Atribui se o campo é chave estrangeira
 void setForeGroundColor(java.awt.Color fgColor)
           
 void setMaxLenght(int _maxLength)
          Deprecated.  
 void setMaxLength(int _maxLength)
          Define tamanho maximo do campo
 void setMaxValue(long _maxValue)
           
 void setMaxValue(java.lang.Object _maxValue)
          Define o valor máximo do campo
 void setMinValue(long _minValue)
          Define o valor minimo para o campo
 void setMinValue(java.lang.Object _minValue)
           
 void setNumDecimais(int num)
           
 void setOnlyDigits(boolean _onlyDigits)
           
 void setPK(boolean _pk)
          Atribui se o campo é chave primaria
 void setReferencePK(java.lang.String _referencePK)
           
 void setReferenceTable(java.lang.String refTable)
          Define o nome da tabela de referencia
 void setRequired(boolean _required)
          Define se a celula tem preenchimento obrigatorio
 void setShowCode(boolean _showCode)
           
 void setShowDescription(boolean _showDescription)
           
 void setShowExpansionButton(boolean _showExpansionButton)
          Deve mostrar botão de expansão
 void setTable(java.lang.String _table)
          Define o nome da tabela
 void setText(java.lang.String _text)
          Define o texto para as checkbox
 void setValidateOnLostFocus(boolean _validateOnLostFocus)
          Define se a celula faz validação no lost focus
 void setWhereClause(java.lang.String _where)
          Define clausula where
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXT

public static final byte TEXT
See Also:
Constant Field Values

MULTILINETEXT

public static final byte MULTILINETEXT
See Also:
Constant Field Values

COMBOBOX

public static final byte COMBOBOX
See Also:
Constant Field Values

CHECKBOX

public static final byte CHECKBOX
See Also:
Constant Field Values

FIELD

public static final byte FIELD
See Also:
Constant Field Values

ICON

public static final byte ICON
See Also:
Constant Field Values

DATA

public static final byte DATA
See Also:
Constant Field Values

FILECHOOSER

public static final byte FILECHOOSER
See Also:
Constant Field Values
Constructor Detail

CellProperties

public CellProperties(boolean editable,
                      boolean validateOnLostFocus,
                      boolean autoFormat,
                      boolean required,
                      java.lang.Object maxValue,
                      java.lang.Object minValue,
                      int maxLength,
                      java.lang.String dbDataType,
                      java.lang.String text,
                      java.lang.String table,
                      java.lang.String column,
                      java.lang.String referenceTable,
                      java.lang.String descriptionColumn,
                      java.lang.String referencePK,
                      java.util.ArrayList aditionalColumns,
                      DDataControlFilterListener filter,
                      java.lang.String where,
                      boolean showCode,
                      boolean showDescription,
                      boolean pk,
                      boolean fk,
                      boolean showExpansionButton,
                      int numDecimais,
                      java.awt.Color backGroundColor,
                      java.awt.Color foreGroundColor,
                      int delegateType,
                      boolean onlyDigits,
                      boolean isAutoSum,
                      int[] rowsToSum)

CellProperties

public CellProperties()
Construtor default define um campo do tipo de texto


CellProperties

public CellProperties(java.lang.String _dbDataType,
                      long min,
                      long max,
                      int _maxLength,
                      boolean _required,
                      boolean _validateOnLostFocus,
                      boolean _editable)
Construtor utilizado para definir campos de texto

Parameters:
min -
max -
_required -

CellProperties

public CellProperties(java.sql.Connection _con,
                      java.lang.String _table,
                      java.lang.String _code,
                      java.lang.String _desc,
                      java.lang.String _where,
                      boolean _showCode)

CellProperties

public CellProperties(java.sql.Connection _con,
                      java.lang.String _table,
                      java.lang.String _code,
                      java.lang.String _desc,
                      java.lang.String _where,
                      boolean _showCode,
                      java.lang.String[] _aditionalColumns)

CellProperties

public CellProperties(boolean editable,
                      boolean validateOnLostFocus,
                      boolean autoFormat,
                      boolean required,
                      long maxValue,
                      long minValue,
                      int maxLength,
                      java.lang.String dbDataType,
                      int numDecimais,
                      boolean onlyDigits)

CellProperties

public CellProperties(java.lang.String table,
                      boolean isPk,
                      boolean showDesc)

CellProperties

public CellProperties(java.lang.String table,
                      java.lang.String column,
                      boolean isPk,
                      boolean showDesc)

CellProperties

public CellProperties(java.lang.String table,
                      java.lang.String column,
                      boolean isFk,
                      boolean showDesc,
                      java.lang.String refTable,
                      java.lang.String desColumn,
                      java.lang.String refColumn)

CellProperties

public CellProperties(boolean editable,
                      java.lang.String text)
Checkbox


CellProperties

public CellProperties(int _tipo)

CellProperties

public CellProperties(int _tipo,
                      boolean _editable)
Method Detail

isEditable

public boolean isEditable()
se a celula é editavel retorna true


setEditable

public void setEditable(boolean _editable)
Define se a coluna é editavel


isValidateOnLostFocus

public boolean isValidateOnLostFocus()
Se a celula validar no lost focus retorn true


setValidateOnLostFocus

public void setValidateOnLostFocus(boolean _validateOnLostFocus)
Define se a celula faz validação no lost focus


isAutoFormat

public boolean isAutoFormat()
Se a celula tem formatação automatica retorna true


setAutoFormat

public void setAutoFormat(boolean _autoFormat)
Define se a celula faz formatação automática


isRequired

public boolean isRequired()
Se a celula tem preenchimento obrigatorio retorna true


setRequired

public void setRequired(boolean _required)
Define se a celula tem preenchimento obrigatorio


setMaxValue

public void setMaxValue(java.lang.Object _maxValue)
Define o valor máximo do campo


setMaxValue

public void setMaxValue(long _maxValue)

getMaxValueLong

public long getMaxValueLong()
Retorna o valor máximo do campo


getMaxValue

public java.lang.Object getMaxValue()
Retorna o valor máximo do campo


setMinValue

public void setMinValue(long _minValue)
Define o valor minimo para o campo


setMinValue

public void setMinValue(java.lang.Object _minValue)

getMinValueLong

public long getMinValueLong()
Retorna o valor minimo


getMinValue

public java.lang.Object getMinValue()
Retorna o valor minimo


setMaxLength

public void setMaxLength(int _maxLength)
Define tamanho maximo do campo


getMaxLength

public int getMaxLength()
retorna o tamanho maximo do campo


setMaxLenght

public void setMaxLenght(int _maxLength)
Deprecated.  

Define tamanho maximo do campo


getMaxLenght

public int getMaxLenght()
Deprecated.  

retorna o tamanho maximo do campo


setDbDataType

public void setDbDataType(java.lang.String _dbDataType)
Define o tipo de campo


getDbDataType

public java.lang.String getDbDataType()
Retorna o tipo do campo


setText

public void setText(java.lang.String _text)
Define o texto para as checkbox


getText

public java.lang.String getText()
Retorna o texto da Checkbox


setTable

public void setTable(java.lang.String _table)
Define o nome da tabela


getTable

public java.lang.String getTable()
retorna o nome da tabela


setColumn

public void setColumn(java.lang.String _code)
Define o nome do campo de codigo


getColumn

public java.lang.String getColumn()
retorna o nome da coluna de codigo


setPK

public void setPK(boolean _pk)
Atribui se o campo é chave primaria


isPK

public boolean isPK()
É chave primaria


setFK

public void setFK(boolean _fk)
Atribui se o campo é chave estrangeira


isFK

public boolean isFK()
É chave estrangeira


setShowExpansionButton

public void setShowExpansionButton(boolean _showExpansionButton)
Deve mostrar botão de expansão

Parameters:
_showExpansionButton - Flag

isShowExpansionButton

public boolean isShowExpansionButton()
devolve se deve mostrar botão de expansão


setReferenceTable

public void setReferenceTable(java.lang.String refTable)
Define o nome da tabela de referencia


getReferenceTable

public java.lang.String getReferenceTable()

setDescriptionColumn

public void setDescriptionColumn(java.lang.String _desc)
Define o nome da coluna de descrição


getDescriptionColumn

public java.lang.String getDescriptionColumn()
Retorna o nome da coluna de descrição


setReferencePK

public void setReferencePK(java.lang.String _referencePK)

getReferencePK

public java.lang.String getReferencePK()

setWhereClause

public void setWhereClause(java.lang.String _where)
Define clausula where


getWhereClause

public java.lang.String getWhereClause()
Retorna a clausula where


setShowDescription

public void setShowDescription(boolean _showDescription)

getShowDescription

public boolean getShowDescription()

setShowCode

public void setShowCode(boolean _showCode)

getShowCode

public boolean getShowCode()

getBackGroundColor

public java.awt.Color getBackGroundColor()

setBackGroundColor

public void setBackGroundColor(java.awt.Color bgColor)

getForeGroundColor

public java.awt.Color getForeGroundColor()

setForeGroundColor

public void setForeGroundColor(java.awt.Color fgColor)

setDelegateType

public void setDelegateType(int _delegateType)

getDelegateType

public int getDelegateType()

setOnlyDigits

public void setOnlyDigits(boolean _onlyDigits)

isOnlyDigits

public boolean isOnlyDigits()

clone

public java.lang.Object clone()

setAditionalColumn

public void setAditionalColumn(int index,
                               java.lang.String _column)

setAditionalColumn

public void setAditionalColumn(java.lang.String[] _columns)

getAditionalColumn

public java.lang.String getAditionalColumn(int index)

getAditionalColumn

public java.lang.String[] getAditionalColumn()

setFilter

public void setFilter(DDataControlFilterListener _filter)

getFilter

public DDataControlFilterListener getFilter()

getNumDecimais

public int getNumDecimais()

setNumDecimais

public void setNumDecimais(int num)

isAutoSum

public boolean isAutoSum()

setAutSum

public void setAutSum(boolean autosum)

equals

public boolean equals(java.lang.Object o)