|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JTabbedPane com.jidesoft.swing.JideTabbedPane com.jidesoft.document.TdiGroup
public class TdiGroup
A DocumentGroup
implementation for Tabbed-Document Interface. This implementation use
JideTabbedPane
. In most cases, it just delegates calls to under JideTabbedPane
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jidesoft.swing.JideTabbedPane |
---|
JideTabbedPane.ColorProvider, JideTabbedPane.GradientColorProvider, JideTabbedPane.IgnoreableSingleSelectionModel, JideTabbedPane.NoFocusButton, JideTabbedPane.PageLastFocusTracker, JideTabbedPane.TabListCellRenderer |
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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
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 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 | |
---|---|
TdiGroup()
Creates a TdiGroup with layoutPolicy equals SCROLL_TAB_LAYOUT. |
Method Summary | |
---|---|
void |
addDocument(DocumentComponent document)
Adds a document to the this document group. |
void |
addDocument(DocumentComponent document,
int index)
Adds a document to the this document group. |
Component |
getDocumentAt(int index)
Gets document at position index . |
int |
getDocumentCount()
Gets document count in this group. |
Component |
getSelectedDocument()
Gets component of the selected document in this group. |
int |
indexOfDocument(Component component)
Get the index of the document. |
void |
installListeners()
|
boolean |
isTabClosableAt(int tabIndex)
Overrides to get the isClosable value from DocumentComponent. |
void |
moveSelectedDocumentTo(int index)
Moves selected document to another tab index. |
void |
removeDocument(DocumentComponent document)
Removes document. |
void |
removeDocument(int index)
Removes document at index. |
void |
setSelectedDocument(Component component)
Sets selected document. |
void |
uninstallListeners()
|
void |
updateComponent(DocumentComponent document)
Deprecated. replaced by updateComponent(DocumentComponent, java.awt.Component) |
void |
updateComponent(DocumentComponent document,
Component oldComponent)
Updates the component of document. |
void |
updateTitle(DocumentComponent document)
Updates the title of document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.jidesoft.document.IDocumentGroup |
---|
getSelectedIndex |
Constructor Detail |
---|
public TdiGroup()
Method Detail |
---|
public void addDocument(DocumentComponent document)
addDocument
in interface IDocumentGroup
document
- document to be addedpublic void addDocument(DocumentComponent document, int index)
addDocument
in interface IDocumentGroup
document
- document to be addedindex
- the index of the document where it will be added.public void removeDocument(int index)
removeDocument
in interface IDocumentGroup
index
- index of the document to be removedpublic void removeDocument(DocumentComponent document)
removeDocument
in interface IDocumentGroup
document
- document to be removedpublic void updateTitle(DocumentComponent document)
updateTitle
in interface IDocumentGroup
document
- the DocumentComponent@Deprecated public void updateComponent(DocumentComponent document)
updateComponent(DocumentComponent, java.awt.Component)
updateComponent
in interface IDocumentGroup
document
- the DocumentComponentpublic void updateComponent(DocumentComponent document, Component oldComponent)
updateComponent
in interface IDocumentGroup
document
- the DocumentComponentoldComponent
- the old component of the documentpublic void setSelectedDocument(Component component)
setSelectedDocument
in interface IDocumentGroup
component
- component of the selected documentpublic Component getSelectedDocument()
getSelectedDocument
in interface IDocumentGroup
public Component getDocumentAt(int index)
index
.
getDocumentAt
in interface IDocumentGroup
index
- the index
index
public int getDocumentCount()
getDocumentCount
in interface IDocumentGroup
public void installListeners()
public void uninstallListeners()
public int indexOfDocument(Component component)
indexOfDocument
in interface IDocumentGroup
component
- the component in the document
public void moveSelectedDocumentTo(int index)
moveSelectedDocumentTo
in interface IDocumentGroup
index
- the indexpublic boolean isTabClosableAt(int tabIndex)
isTabClosableAt
in class JideTabbedPane
tabIndex
- the index.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |