| javax.swing.table.DefaultTableCellRenderer br.com.igor.beans.table.SortableTabelHeaderRenderer
SortableTabelHeaderRenderer | public class SortableTabelHeaderRenderer extends DefaultTableCellRenderer (Code) | | Este componente é um Renderer para o Header de um JTable que controla a operação de "sort"
author: Igor Regis da Silva Simoes |
SortableTabelHeaderRenderer | public SortableTabelHeaderRenderer()(Code) | | Cria uma nova instância de SortableTabelHeader
|
getTableCellRendererComponent | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)(Code) | | Sobrescreve o método da superclasse para retornar um renderer formatado, conforme descrito acima
Parameters: table - JTable Tabela que será configurada por este renderer Parameters: value - Object Valor que será exibido pelo renderer Parameters: isSelected - boolean Indicando se a célula está selecionada Parameters: hasFocus - boolean indicando se a célual possui o foco Parameters: row - int Linha da célula Parameters: column - int Coluna da célula Retorna o Compoment responsável por renderizar o valor da célula |
isSorted | public boolean isSorted(int column)(Code) | | Getter for property sorted.
Parameters: column - Coluna da tabela Value of property sorted. |
setSorted | public void setSorted(boolean sorted, int column)(Code) | | Setter for property sorted.
Parameters: sorted - New value of property sorted. Parameters: column - Coluna da tabela |
Fields inherited from javax.swing.table.DefaultTableCellRenderer | protected static Border noFocusBorder(Code)(Java Doc)
|
Methods inherited from javax.swing.table.DefaultTableCellRenderer | protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc) public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)(Code)(Java Doc) public void invalidate()(Code)(Java Doc) public boolean isOpaque()(Code)(Java Doc) public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc) public void repaint(Rectangle r)(Code)(Java Doc) public void repaint()(Code)(Java Doc) public void revalidate()(Code)(Java Doc) public void setBackground(Color c)(Code)(Java Doc) public void setForeground(Color c)(Code)(Java Doc) protected void setValue(Object value)(Code)(Java Doc) public void updateUI()(Code)(Java Doc) public void validate()(Code)(Java Doc)
|
|
|