uic.widgets
Class GroupBox.AbstractCollapsableBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by uic.widgets.GroupBox.AbstractCollapsableBorder
All Implemented Interfaces:
Serializable, Border
Enclosing class:
GroupBox

public abstract static class GroupBox.AbstractCollapsableBorder
extends AbstractBorder

For a collapsable groupBox we show a border that, when clicked, will collapse the groupbox. The border should additionally have the methods of this class since a groupbox will want to show a title on the border somewhere.

See Also:
Serialized Form

Field Summary
protected  int borderType
           
 
Constructor Summary
GroupBox.AbstractCollapsableBorder()
           
 
Method Summary
 int getBorderShadow()
           
 int getBorderShape()
           
protected  void paintText(Component c, Graphics g, String title, int leftOffset, int baseline)
           
protected  void setBorderType(int type)
           
abstract  void setTitle(String title)
          Set the title on the border to be shown on an un-collapsed box
 
Methods inherited from class javax.swing.border.AbstractBorder
getBorderInsets, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque, paintBorder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

borderType

protected int borderType
Constructor Detail

GroupBox.AbstractCollapsableBorder

public GroupBox.AbstractCollapsableBorder()
Method Detail

setTitle

public abstract void setTitle(String title)
Set the title on the border to be shown on an un-collapsed box


setBorderType

protected void setBorderType(int type)

getBorderShape

public int getBorderShape()

getBorderShadow

public int getBorderShadow()

paintText

protected void paintText(Component c,
                         Graphics g,
                         String title,
                         int leftOffset,
                         int baseline)


Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence