HeaderPanelpublic class HeaderPanel extends InsetsPanel
Fields Summary |
---|
private String | headerText | private Header | header | private int | preferredHeight |
Constructors Summary |
---|
public HeaderPanel()
this("", 55);
| public HeaderPanel(String s)
this(s, 55);
| public HeaderPanel(String s, int i)
headerText = null;
header = null;
headerText = s;
preferredHeight = i;
setLayout(new BorderLayout());
add(header = new Header(s), "North");
|
Methods Summary |
---|
public java.awt.Dimension | getMinimumSize()
return getPreferredSize();
| public java.awt.Dimension | getPreferredSize()
Dimension dimension = new Dimension(getSize().width, preferredHeight);
return dimension;
| public java.lang.String | getText()
if(header != null)
{
return header.getText();
} else
{
return headerText;
}
| public void | setText(java.lang.String s)
headerText = s;
if(header != null)
{
header.setText(s);
}
|
|