|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTabbedPane
ilog.views.appframe.swing.mdi.IlvMDITabbedPane
public class IlvMDITabbedPane
Implementation of the IlvMDIClient interface
that manages child IlvMDITab containers.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTabbedPane |
|---|
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
DEFAULT_SETTINGS_NAME
Default name for tabbed panes within the settings. |
static String |
PANE_CLASS_ATTRIBUTE
Name of the attribute that stores the class of the pane to construct. |
static String |
TABBED_PANE_SETTINGS_TYPE
Settings type for storing preferences of a tabbed pane |
| Fields inherited from class javax.swing.JTabbedPane |
|---|
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface ilog.views.appframe.swing.mdi.IlvMDIClient |
|---|
DEFAULT_WINDOW_LIST_COMMAND |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
IlvMDITabbedPane()
Creates a new MDI tabbed pane. |
|
| Method Summary | |
|---|---|
void |
addMDICLientListener(MDIClientListener listener)
Adds the specified MDI client listener to receive events from this MDI client. |
void |
addViewContainer(IlvMDIViewContainer viewContainer)
Adds a newly created tab to the tabbed pane. |
protected IlvMDITab |
createTab(IlvDocument document)
Factory method for creating a tab for the specified document. |
IlvMDIViewContainer |
createViewContainer(IlvDocument document)
Creates a new MDI tab for the specified document. |
protected void |
fireMDIClientEvent(int id,
IlvMDIViewContainer container)
Fires a client event for the specified id event
and the specified container. |
IlvMDIViewContainer |
getActiveViewContainer()
Returns the MDI tab currently active in the MDI client. |
IlvApplication |
getApplication()
Returns the application associated with this tabbed pane. |
Container |
getClientContainer()
Returns the container that owns all the MDI child containers. |
String |
getDocumentListActionCommand()
Gets the command name of the action list that is used for displaying the list of opened documents in this MDI client. |
IlvSettings |
getSettings()
Returns the settings that initialize the tabbed pane. |
IlvSettingsElement |
getSettingsElement()
Returns the settings element that provides the settings for this MDI tabbed pane. |
String |
getSettingsName()
Returns the name that identifies the MDI tab pane within the settings. |
IlvSettingsQuery |
getSettingsQuery()
Returns the query that selects the settings element that provides the settings of this MDI tabbed pane. |
String |
getSettingsType()
Returns the type of the settings elements that provides the settings for MDI tab panes. |
protected void |
readSettings(IlvSettingsElement settingsElement)
Initializes the tabbed pane with the specified settings element. |
void |
remove(Component component)
Removes the specified Component from the tabbed pane. |
void |
remove(int index)
Removes the tab which corresponds to the specified index. |
void |
removeAll()
Removes all the tabs and their corresponding components. |
void |
removeMDIClientListener(MDIClientListener listener)
Removes the specified MDI client listener so that it no longer receives MDI client events from this MDI client. |
void |
removeTabAt(int index)
Removes the tab at the specified index. |
void |
setApplication(IlvApplication application)
Sets the application associated with this tabbed pane. |
void |
setDocumentListActionCommand(String command)
Sets the command name of the action list that is used for displaying the list of opened documents in this MDI client. |
void |
setSelectedIndex(int index)
Sets the selected index for this tabbed pane. |
void |
setSettings(IlvSettings settings)
Sets the settings that initialize the tabbed pane. |
void |
setSettingsElement(IlvSettingsElement element)
Forces the settings of the MDI tabbed pane to be read and written from the specified settings element. |
void |
setSettingsName(String settingsName)
Sets the name that identifies the MDI tab pane within the settings. |
void |
setSettingsQuery(IlvSettingsQuery query)
Sets the query that selects the settings element that provides the settings for this MDI tabbed pane. |
void |
setSettingsType(String settingsType)
Sets the type of the settings elements that provides the settings for MDI tabbed panes. |
void |
setTitleAt(int index,
String title)
Sets the title at index to title, which
can be null. |
void |
setTitleFrame(JFrame frame)
Sets the frame whose title will be completed with the title of the active tab of this tabbed pane. |
void |
setToolTipTextAt(int index,
String toolTipText)
Sets the tooltip text at index to
toolTipText, which can be null. |
protected void |
writeSettings(IlvSettingsElement settingsElement)
Writes the settings of the MDI tabbed pane. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String TABBED_PANE_SETTINGS_TYPE
public static String PANE_CLASS_ATTRIBUTE
IlvMDITab are constructed.
public static String DEFAULT_SETTINGS_NAME
| Constructor Detail |
|---|
public IlvMDITabbedPane()
| Method Detail |
|---|
public IlvSettings getSettings()
setSettings(ilog.views.appframe.settings.IlvSettings)public void setSettings(IlvSettings settings)
settings - The new settings of the tabbed pane.getSettings()public String getSettingsName()
name attribute of the
settings element that provides the settings for the associated object.
If no name has been specified using the method setSettingsName(java.lang.String),
null is returned.
setSettingsName(java.lang.String),
getSettingsElement(),
getSettingsQuery()public void setSettingsName(String settingsName)
settingsName - The new settings name.public String getSettingsType()
TABBED_PANE_SETTINGS_TYPE string if no
settings type has been specified with the method setSettingsType(java.lang.String).readSettings(ilog.views.appframe.settings.IlvSettingsElement),
setSettingsType(java.lang.String)public void setSettingsType(String settingsType)
settingsType - The new settings type.readSettings(ilog.views.appframe.settings.IlvSettingsElement),
getSettingsType()public void setSettingsQuery(IlvSettingsQuery query)
query - The new settings query.getSettingsQuery()public IlvSettingsQuery getSettingsQuery()
If a query has been specified with the method setSettingsQuery(ilog.views.appframe.settings.IlvSettingsQuery),
it is returned. Otherwise, a query is built for selecting a settings
root element with the type returned by getSettingsType() and the
value of the name attribute equal to the name returned
by getSettingsName(). If getSettingsName() returns
null, the query selects the first encountered root element
with the settings type given by the method getSettingsType().
setSettingsQuery(ilog.views.appframe.settings.IlvSettingsQuery),
#see #getSettingsTypepublic void setSettingsElement(IlvSettingsElement element)
getSettings() with the query getSettingsQuery().
element - The settings element that provides the settings for the
MDI tabbed pane.getSettingsElement()public IlvSettingsElement getSettingsElement()
setSettingsElement(ilog.views.appframe.settings.IlvSettingsElement) method, it is returned. Otherwise,
the settings element is selected from the settings given by the
getSettings() method, with the query returned by
getSettingsQuery().
null if no settings
element could be found.setSettingsElement(ilog.views.appframe.settings.IlvSettingsElement),
getSettingsQuery()public IlvMDIViewContainer getActiveViewContainer()
getActiveViewContainer in interface IlvMDIClientnull if the MDI
client does not contain MDI tabs.public void addMDICLientListener(MDIClientListener listener)
null, no exception is thrown and no
action is performed.
addMDICLientListener in interface IlvMDIClientlistener - The MDI client listener to add.public void removeMDIClientListener(MDIClientListener listener)
listener is null, no exception is thrown
and no action is performed.
removeMDIClientListener in interface IlvMDIClientlistener - The MDI client listener to remove.public Container getClientContainer()
getClientContainer in interface IlvMDIClientpublic IlvMDIViewContainer createViewContainer(IlvDocument document)
createViewContainer in interface IlvMDIContainerTemplateIlvMDITab class.IlvMDIContainerTemplate.addViewContainer(ilog.views.appframe.docview.IlvMDIViewContainer)public void addViewContainer(IlvMDIViewContainer viewContainer)
addViewContainer in interface IlvMDIContainerTemplateviewContainer - The newly created tab to add.