de.cbse.jeasy
Class JETableHeaderBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by de.cbse.jeasy.JETableHeaderBorder
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border

 class JETableHeaderBorder
extends javax.swing.border.AbstractBorder

Used for showing the filter or sort sign in the table header.

See a demonstration in the program JEasyExample tab "Table sum and sort".

Author:
Harry Pfohl

Constructor Summary
JETableHeaderBorder(java.awt.Color color, java.awt.Insets insets, boolean isFiltered, java.lang.Boolean sortOrder)
           
 
Method Summary
 boolean isBorderOpaque()
           
 void paintBorder(java.awt.Component color, java.awt.Graphics g2, int x, int y, int width, int height)
           
 
Methods inherited from class javax.swing.border.AbstractBorder
getBorderInsets, getBorderInsets, getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JETableHeaderBorder

public JETableHeaderBorder(java.awt.Color color,
                           java.awt.Insets insets,
                           boolean isFiltered,
                           java.lang.Boolean sortOrder)
Method Detail

paintBorder

public void paintBorder(java.awt.Component color,
                        java.awt.Graphics g2,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface javax.swing.border.Border
Overrides:
paintBorder in class javax.swing.border.AbstractBorder

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface javax.swing.border.Border
Overrides:
isBorderOpaque in class javax.swing.border.AbstractBorder