com.japisoft.framework.dockable
Interface DockableFrameTitleBar

All Known Implementing Classes:
DefaultTitleBar

public interface DockableFrameTitleBar

Author:
(c) 2003 JAPISOFT

Method Summary
 void addButton(javax.swing.JButton button)
          Add a new button for acting on the DockableFrame
 void addSeparator()
          Add a separator for the buttons
 void focusMode(boolean focused)
          Reset the focus for this titled bar
 javax.swing.Icon getIcon()
           
 java.lang.String getTitle()
           
 javax.swing.JComponent getView()
           
 void prepare()
          Prepare the title bar component to be shown once all buttons have been added
 void removeAllButtons()
          Remove all buttons
 void setBackground(java.awt.Color color)
          Reset the color for the background header.
 void setForeground(java.awt.Color color)
          Update the foreground color.
 void setIcon(javax.swing.Icon icon)
          Update the icon
 void setTitle(java.lang.String title)
          Update the title
 

Method Detail

getTitle

public java.lang.String getTitle()
Returns:
the dockableFrame title

setTitle

public void setTitle(java.lang.String title)
Update the title


getIcon

public javax.swing.Icon getIcon()
Returns:
an icon for this title bar

setIcon

public void setIcon(javax.swing.Icon icon)
Update the icon


addButton

public void addButton(javax.swing.JButton button)
Add a new button for acting on the DockableFrame


addSeparator

public void addSeparator()
Add a separator for the buttons


removeAllButtons

public void removeAllButtons()
Remove all buttons


prepare

public void prepare()
Prepare the title bar component to be shown once all buttons have been added


getView

public javax.swing.JComponent getView()
Returns:
the view of the title bar. This is the final component

focusMode

public void focusMode(boolean focused)
Reset the focus for this titled bar


setBackground

public void setBackground(java.awt.Color color)
Reset the color for the background header. Use a null value for restoring the initial value


setForeground

public void setForeground(java.awt.Color color)
Update the foreground color. Use a null value for restoring the initial value