com.japisoft.multipanes
Class BasicTitledPane

java.lang.Object
  |
  +--com.japisoft.multipanes.BasicTitledPane
All Implemented Interfaces:
TitledPane

public class BasicTitledPane
extends java.lang.Object
implements TitledPane

Simple titledPane


Constructor Summary
BasicTitledPane(java.lang.String name, java.lang.String title, javax.swing.Icon icon, java.lang.String tooltip, javax.swing.JComponent view)
           
BasicTitledPane(java.lang.String name, java.lang.String title, javax.swing.JComponent view)
          All parameters are required, so they can't be null
BasicTitledPane(java.lang.String name, java.lang.String title, java.lang.String tooltip, javax.swing.JComponent view)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Listener about the user interface properties like title, icon or tooltip properties name is binded on the swing Action.key
 void close()
          Called when the titlePanel is closed by the user
 void dispose()
          The titlePane has been removed from the multipanes
 java.awt.Color getBackground()
           
 java.awt.Color getForeground()
           
 javax.swing.Icon getIcon()
           
 java.lang.String getName()
           
 java.lang.String getTitle()
           
 java.lang.String getToolTip()
           
 javax.swing.JComponent getView()
           
 boolean isEnabled()
          Enabled / Disabled
 void open()
          Called when the titledPane is opened by the user
 void setBackground(java.awt.Color background)
           
 void setEnabled(boolean enabled)
           
 void setForeground(java.awt.Color foreground)
           
 void setIcon(javax.swing.Icon icon)
           
 void setTitle(java.lang.String title)
           
 void setToolTip(java.lang.String tooltip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTitledPane

public BasicTitledPane(java.lang.String name,
                       java.lang.String title,
                       javax.swing.Icon icon,
                       java.lang.String tooltip,
                       javax.swing.JComponent view)
Parameters:
name - Name of the titledPane, it can't be null
title - Title of the titledPane, it can't be null
icon - Major icon, it can be null
tooltip - help for the titledPane, it can be null

BasicTitledPane

public BasicTitledPane(java.lang.String name,
                       java.lang.String title,
                       javax.swing.JComponent view)
All parameters are required, so they can't be null


BasicTitledPane

public BasicTitledPane(java.lang.String name,
                       java.lang.String title,
                       java.lang.String tooltip,
                       javax.swing.JComponent view)
Method Detail

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface TitledPane
Returns:
the main title of the panel. It can't be null

setTitle

public void setTitle(java.lang.String title)

getIcon

public javax.swing.Icon getIcon()
Specified by:
getIcon in interface TitledPane
Returns:
an icon for the panel, it can be null

setIcon

public void setIcon(javax.swing.Icon icon)

getToolTip

public java.lang.String getToolTip()
Specified by:
getToolTip in interface TitledPane
Returns:
a toolTip for the panel header, it can be null

setToolTip

public void setToolTip(java.lang.String tooltip)

getName

public java.lang.String getName()
Specified by:
getName in interface TitledPane
Returns:
a name for this panel

getView

public javax.swing.JComponent getView()
Specified by:
getView in interface TitledPane
Returns:
the panel content

open

public void open()
Description copied from interface: TitledPane
Called when the titledPane is opened by the user

Specified by:
open in interface TitledPane

close

public void close()
Description copied from interface: TitledPane
Called when the titlePanel is closed by the user

Specified by:
close in interface TitledPane

setEnabled

public void setEnabled(boolean enabled)

isEnabled

public boolean isEnabled()
Description copied from interface: TitledPane
Enabled / Disabled

Specified by:
isEnabled in interface TitledPane

dispose

public void dispose()
Description copied from interface: TitledPane
The titlePane has been removed from the multipanes

Specified by:
dispose in interface TitledPane

setBackground

public void setBackground(java.awt.Color background)

setForeground

public void setForeground(java.awt.Color foreground)

getBackground

public java.awt.Color getBackground()
Specified by:
getBackground in interface TitledPane
Returns:
a color for the titled pane background.

getForeground

public java.awt.Color getForeground()
Specified by:
getForeground in interface TitledPane
Returns:
a color for the titled pane foreground

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Description copied from interface: TitledPane
Listener about the user interface properties like title, icon or tooltip properties name is binded on the swing Action.key

Specified by:
addPropertyChangeListener in interface TitledPane