|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.extended.tab.PaneData<T>
public final class PaneData<T extends DocumentData>
Data for single tabbed pane within document pane. It basically contains tabbed pane and opened documents list.
WebDocumentPane
Field Summary | |
---|---|
protected java.util.List<T> |
data
Pane documents. |
protected DefaultFocusTracker |
focusTracker
Pane focus tracker. |
protected WebTabbedPane |
tabbedPane
Actual tabbed pane component. |
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 |
Constructor Summary | |
---|---|
PaneData(WebDocumentPane<T> documentPane)
Constructs new PaneData for the specified WebDocumentPane. |
Method Summary | |
---|---|
void |
activate()
Activates this pane within WebDocumentPane. |
void |
add(T document)
Adds new document into this pane. |
void |
add(T document,
int index)
Adds new document into this pane at the specified index. |
boolean |
close(int index)
Closes document at the specified index in the active pane. |
boolean |
close(java.lang.String id)
Closes document with the specified ID. |
boolean |
close(T document)
Closes the specified document. |
void |
closeAll()
Closes all document in this group. |
void |
closeSelected()
Closes selected document. |
boolean |
contains(java.lang.String documentId)
Returns whether document with the specified ID is in this pane or not. |
boolean |
contains(T document)
Returns whether specified document is in this pane or not. |
int |
count()
Returns pane documents count. |
protected javax.swing.JComponent |
createTabComponent(T document)
Returns new tab component. |
PaneData<T> |
findClosestPane()
Returns closest PaneData. |
T |
get(int index)
Returns pane document at the specified index. |
T |
get(java.lang.String id)
Returns pane document with the specified ID. |
java.awt.Component |
getComponent()
Returns actual component behind this structure element. |
java.util.List<T> |
getData()
Returns pane documents. |
WebDocumentPane |
getDocumentPane()
Returns parent WebDocumentPane. |
T |
getSelected()
Returns pane's selected document. |
WebTabbedPane |
getTabbedPane()
Returns actual tabbed pane component. |
int |
indexOf(java.lang.String id)
Returns index of the document with the specified ID. |
int |
indexOf(T document)
Returns index of the specified document. |
void |
merge()
Merges this pane with its neighbour. |
void |
mergeAll()
Merges all panes within WebDocumentPane. |
void |
mergeIfEmpty()
Merges this pane with its neighbour if it is empty. |
void |
open(T document)
Opens document in this pane. |
boolean |
remove(int index)
Closes document at the specified index in the active pane. |
boolean |
remove(java.lang.String id)
Closes document with the specified ID. |
boolean |
remove(T document)
Closes the specified document. |
void |
rotate()
Changes parent split orientation if this pane is located within a split. |
void |
setSelected(int index)
Sets selected document index. |
void |
setSelected(java.lang.String id)
Sets pane's selected document ID. |
void |
setSelected(T document)
Sets selected document. |
void |
split(T document,
int direction)
Splits the specified document into a separate pane. |
protected void |
updateTabbedPaneCustomizer(WebDocumentPane<T> documentPane)
Updates tabbed pane customizer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final WebTabbedPane tabbedPane
protected final DefaultFocusTracker focusTracker
protected java.util.List<T extends DocumentData> data
Constructor Detail |
---|
public PaneData(WebDocumentPane<T> documentPane)
documentPane
- parent WebDocumentPaneMethod Detail |
---|
protected void updateTabbedPaneCustomizer(WebDocumentPane<T> documentPane)
documentPane
- parent WebDocumentPanepublic java.awt.Component getComponent()
getComponent
in interface StructureData<T extends DocumentData>
public PaneData<T> findClosestPane()
findClosestPane
in interface StructureData<T extends DocumentData>
public WebDocumentPane getDocumentPane()
public WebTabbedPane getTabbedPane()
public java.util.List<T> getData()
public int count()
public boolean contains(T document)
document
- document to look for
public boolean contains(java.lang.String documentId)
documentId
- ID of the document to look for
public void add(T document)
document
- document to addpublic void add(T document, int index)
document
- document to addindex
- index to add atprotected javax.swing.JComponent createTabComponent(T document)
document
- document to create tab component for
public void open(T document)
document
- document to openpublic T get(int index)
index
- document index
public T get(java.lang.String id)
id
- document ID
public T getSelected()
public void setSelected(java.lang.String id)
id
- ID of the document to selectpublic void setSelected(T document)
document
- document to selectpublic void setSelected(int index)
index
- index of the document to selectpublic int indexOf(java.lang.String id)
id
- document ID
public int indexOf(T document)
document
- document
public boolean remove(int index)
index
- index of the document to closepublic boolean remove(java.lang.String id)
id
- ID of the document to closepublic boolean remove(T document)
document
- document to closepublic void closeAll()
public boolean close(int index)
index
- index of the document to closepublic boolean close(java.lang.String id)
id
- ID of the document to closepublic boolean close(T document)
document
- document to closepublic void closeSelected()
public void activate()
public void split(T document, int direction)
document
- document to splitdirection
- split directionpublic void mergeIfEmpty()
public void rotate()
public void merge()
public void mergeAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |