Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.services.swingx

Class ComponentBorderPanel

com.gentleware.services.swingx.ComponentBorderPanel
All known Subclassifier:
CheckBoxBorderPanel


public class ComponentBorderPanel


Title: ComponentBorderPanel

Description: A panel that is decorated with a border similar to TitledBorder, but that displays any component instead of a title string.

Copyright: Copyright (c) 2002

Company: Gentleware AG


 Inner Classifier Summary
private   ComponentBorderPanel.ZeroLayoutManager
A very specific layout manager, that puts the title component at (12, 0) using it's preferred size and puts the main component at (0, 0) using the parent container's size. 
arrow_up
 

 Attribute Summary
private JPanel  _mainPanel
a panel to wrap the main component, so that the titled (line) border can be set without changing the border of the main component itself  
private JPanel  _titlePanel
a panel to wrap the title component, so that an empty border with a little space to the left can be set without changing the title component's border itself  
arrow_up
 

 Constructor Summary
public   ComponentBorderPanel(JComponent titleComponent, Container mainComponent)
Create a panel that shows a line border with the titleComponent at the top (overlaying the border) and the main component in the center. 
arrow_up
 

 Method Summary
private void   updateBorder()
Updates the titled (line) border. 
public void   updateUI()
Updates the border when the LAF changes. 
arrow_up
 

Tagged Values
static false
gentleware-imported-line-number 13
gentleware-imported-package-statement-line-number 1
 

 Inner Classifier Detail

ComponentBorderPanel.ZeroLayoutManager

private  ComponentBorderPanel.ZeroLayoutManager

A very specific layout manager, that puts the title component at (12, 0) using it's preferred size and puts the main component at (0, 0) using the parent container's size.  
arrow_up
 Attribute Detail

_mainPanel

private JPanel _mainPanel

a panel to wrap the main component, so that the titled (line) border can be set without changing the border of the main component itself  
arrow_up


_titlePanel

private JPanel _titlePanel

a panel to wrap the title component, so that an empty border with a little space to the left can be set without changing the title component's border itself  
arrow_up
 Constructor Detail

ComponentBorderPanel

public com.gentleware.services.swingx.ComponentBorderPanel ComponentBorderPanel(JComponent titleComponent, Container mainComponent)


Create a panel that shows a line border with the titleComponent at the top (overlaying the border) and the main component in the center.  
Parameters:
titleComponent -
mainComponent -
Returns:
arrow_up
 Method Detail

updateBorder

private void updateBorder()


Updates the titled (line) border. Uses the current LAF's TitledBorder.border setting. Will adjust the border top insets according to the title component's height. Is called whenever the LAF changes.  
arrow_up


updateUI

public void updateUI()


Updates the border when the LAF changes.  
arrow_up
Created  2004 - 12 - 1

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.