|
||||||||||
| PREV CLASS 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
org.tbee.swing.JTabbedPane<T>
T - public class JTabbedPane<T>
Extends JTabbedPane with synchronous loading. Please note there is a special JPA version making sure the correct EM is used by the async thread.
| Nested Class Summary | |
|---|---|
static interface |
JTabbedPane.LoadAsyncFailureListener
|
static class |
JTabbedPane.LoadOnDemand<T>
|
| 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 | |
|---|---|
static String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| 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 | |
|---|---|
JTabbedPane()
|
|
JTabbedPane(int tabPlacement)
|
|
JTabbedPane(int tabPlacement,
int tabLayoutPolicy)
|
|
| Method Summary | |
|---|---|
void |
add(Component component,
Object constraints,
JTabbedPane.LoadOnDemand<T> loadOnDemand)
|
void |
addLoadAsyncFailureListener(JTabbedPane.LoadAsyncFailureListener listener)
LoadAsyncFailureListener |
void |
fireLoadAsyncFailure(Throwable t)
|
protected void |
fireStateChanged()
|
boolean |
getDelayLoading()
DelayLoading: |
int |
getLoadingDelayPeriod()
LoadingDelayPeriod: |
boolean |
getShowRefreshing()
ShowRefreshing: |
protected void |
loadSelectedTab()
Actually load |
protected Object |
loadSelectedTab(JTabbedPane.LoadOnDemand<T> loadOnDemand,
T loadOnDemandObject)
This method is here so the JPA version of JTabbedPane has a hook |
protected void |
loadSelectedTab(JTabbedPane.LoadOnDemand<T> loadOnDemand,
T loadOnDemandObject,
long jobId,
int selectedIndex,
Component selectedComponent)
This method is here so the JPA version of JTabbedPane has a hook |
void |
removeLoadAsyncFailureListener(JTabbedPane.LoadAsyncFailureListener listener)
|
void |
setDelayLoading(boolean value)
|
void |
setLoadingDelayPeriod(int value)
|
void |
setLoadOnDemandObject(T object)
Set the new load-on-demand base |
void |
setShowRefreshing(boolean value)
|
JTabbedPane |
withDelayLoading(boolean value)
|
JTabbedPane |
withLoadingDelayPeriod(int value)
|
JTabbedPane<T> |
withShowRefreshing(boolean value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String SOURCECODE_VERSION
| Constructor Detail |
|---|
public JTabbedPane()
public JTabbedPane(int tabPlacement,
int tabLayoutPolicy)
tabPlacement - tabLayoutPolicy - public JTabbedPane(int tabPlacement)
tabPlacement - | Method Detail |
|---|
public boolean getShowRefreshing()
public void setShowRefreshing(boolean value)
public JTabbedPane<T> withShowRefreshing(boolean value)
public boolean getDelayLoading()
public void setDelayLoading(boolean value)
public JTabbedPane withDelayLoading(boolean value)
public int getLoadingDelayPeriod()
public void setLoadingDelayPeriod(int value)
public JTabbedPane withLoadingDelayPeriod(int value)
public void setLoadOnDemandObject(T object)
public void add(Component component,
Object constraints,
JTabbedPane.LoadOnDemand<T> loadOnDemand)
protected void fireStateChanged()
fireStateChanged in class JTabbedPaneprotected void loadSelectedTab()
protected void loadSelectedTab(JTabbedPane.LoadOnDemand<T> loadOnDemand,
T loadOnDemandObject,
long jobId,
int selectedIndex,
Component selectedComponent)
loadOnDemand - loadOnDemandObject - jobId - selectedIndex - selectedComponent -
protected Object loadSelectedTab(JTabbedPane.LoadOnDemand<T> loadOnDemand,
T loadOnDemandObject)
loadOnDemand - loadOnDemandObject -
public void addLoadAsyncFailureListener(JTabbedPane.LoadAsyncFailureListener listener)
public void removeLoadAsyncFailureListener(JTabbedPane.LoadAsyncFailureListener listener)
public void fireLoadAsyncFailure(Throwable t)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||