com.japisoft.multipanes
Interface TitledPane

All Known Implementing Classes:
BasicTitledPane

public interface TitledPane

Interface for the multipanes content. This content is a row with a button, click on this button will show the panel content. The button is built using the provided properties (getTitle, getIcon, getToolTip), the panel content is available by the getView. Not that this is more optimized to build the panel content only if this is requested, once.


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
 

Method Detail

getTitle

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

getIcon

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

getToolTip

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

getName

public java.lang.String getName()
Returns:
a name for this panel

getView

public javax.swing.JComponent getView()
Returns:
the panel content

open

public void open()
Called when the titledPane is opened by the user


close

public void close()
Called when the titlePanel is closed by the user


isEnabled

public boolean isEnabled()
Enabled / Disabled


dispose

public void dispose()
The titlePane has been removed from the multipanes


getBackground

public java.awt.Color getBackground()
Returns:
a color for the titled pane background.

getForeground

public java.awt.Color getForeground()
Returns:
a color for the titled pane foreground

addPropertyChangeListener

public 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