dsto.dfc.swing.panels
Class TitleShowPolicy

java.lang.Object
  extended by dsto.dfc.swing.panels.TitleShowPolicy
Direct Known Subclasses:
TitleHidePolicy

public class TitleShowPolicy
extends Object

A policy class for displaying titles in PanelManager.Panels. Titles are always displayed in windowFrames, and in the Tabbed Pane Tab. Since the Tabbed Pane Tab has a title, the title is not also displayed as a tool tip.


Field Summary
protected static String CHANGED
           
protected  String changeIndicator
          indicate whether a window has beed edited
protected  String name
           
protected static String UNCHANGED
           
 
Constructor Summary
TitleShowPolicy()
           
 
Method Summary
 boolean getChanged()
           
 String getName()
           
 String getTabDisplayText()
           
 String getToolTipText()
          No tooltip will be displayed
 String getWindowDisplayText()
          Append an asterisk to the title if the window has been edited.
 boolean isShowingName()
           
 void setChanged(boolean changed)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANGED

protected static final String CHANGED
See Also:
Constant Field Values

UNCHANGED

protected static final String UNCHANGED
See Also:
Constant Field Values

name

protected String name

changeIndicator

protected String changeIndicator
indicate whether a window has beed edited

Constructor Detail

TitleShowPolicy

public TitleShowPolicy()
Method Detail

setName

public void setName(String name)

getName

public String getName()

isShowingName

public boolean isShowingName()

setChanged

public void setChanged(boolean changed)

getChanged

public boolean getChanged()

getWindowDisplayText

public String getWindowDisplayText()
Append an asterisk to the title if the window has been edited.


getTabDisplayText

public String getTabDisplayText()

getToolTipText

public String getToolTipText()
No tooltip will be displayed



Copyright © 2008 Commonwealth of Australia